# Create URL bug for adaptor rm tool sample

**URL:** <https://forum.open-services.net/t/create-url-bug-for-adaptor-rm-tool-sample/676>\
**Category:** OSLC implementations\
**Created:** [November 5, 2022, 10:03pm UTC](https://forum.open-services.net/t/create-url-bug-for-adaptor-rm-tool-sample/676 "2022-11-05T22:03:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![onsDridi](https://forum.open-services.net/user_avatar/forum.open-services.net/onsdridi/32/218_2.png) [@onsDridi](https://forum.open-services.net/u/onsDridi)\
**Post date:** [November 5, 2022, 10:03pm UTC](https://forum.open-services.net/t/create-url-bug-for-adaptor-rm-tool-sample/676/1 "2022-11-05T22:03:15Z")

</div>

Hello ,

I downloaded the the sample **[lyo-adaptor-sample-modelling](https://github.com/OSLC/lyo-adaptor-sample-modelling)** and ran the adaptor-rm-webapp correctly. All urls are working fine except the url : [http://localhost:8083/adaptor-rm/services/requirements/create](http://localhost:8083/adaptor-rm/services/requirements/create) . I can’t create a requirement using the creation factory . I have this bug :

 ![Capture d’écran 2022-11-05 à 22.53.41](https://forum.open-services.net/uploads/default/original/1X/0c1e712964ae200bffa84054b80e1b242e0a7a3c.png)

I even created my own application using lyon designer and it’s the same for the creation factory part, I still have the same bug : 404 not found .

Any idea ?  
Thank you so much

---

<div class="post-metadata">

**Author:** ![jad](https://forum.open-services.net/user_avatar/forum.open-services.net/jad/32/42_2.png) [@jad](https://forum.open-services.net/u/jad)\
**Post date:** [November 5, 2022, 10:52pm UTC](https://forum.open-services.net/t/create-url-bug-for-adaptor-rm-tool-sample/676/2 "2022-11-05T22:52:01Z")

</div>

Hi @onsDridi

Most likely you are doing a GET on that creationFactory (I am guessing since I see input from a browser). For a creation you need to do a POST. and for that , you need to use applications like Postman. Plus, you need to send the resource you are creating in the body.

Otherwise, can I suggest you use the OSLC Reference Implementation ([GitHub - oslc-op/refimpl](https://github.com/oslc-op/refimpl)) instead of the sample adaptors? The sample adaptors are just to simple, and have not been updated for a while.  
In the refernce implementation, you can also see how a client is used to call the creation factory.

---

<div class="post-metadata">

**Author:** ![onsDridi](https://forum.open-services.net/user_avatar/forum.open-services.net/onsdridi/32/218_2.png) [@onsDridi](https://forum.open-services.net/u/onsDridi)\
**Post date:** [November 7, 2022, 8:45am UTC](https://forum.open-services.net/t/create-url-bug-for-adaptor-rm-tool-sample/676/3 "2022-11-07T08:45:45Z")

</div>

Hello jad,

Thank you for your response . When I use postman to create my ressource , I get this error :

 ![Capture d’écran 2022-11-07 à 09.43.50](https://forum.open-services.net/uploads/default/original/1X/9cfd1651a4eb2de9d940c520c12d88d28128e196.png)

---

<div class="post-metadata">

**Author:** ![onsDridi](https://forum.open-services.net/user_avatar/forum.open-services.net/onsdridi/32/218_2.png) [@onsDridi](https://forum.open-services.net/u/onsDridi)\
**Post date:** [November 7, 2022, 3:18pm UTC](https://forum.open-services.net/t/create-url-bug-for-adaptor-rm-tool-sample/676/4 "2022-11-07T15:18:55Z")

</div>

It’s the same problem with the refimpl sample . For the OSLC server-rm , I used postman to create a requirement :

 ![Capture d’écran 2022-11-07 à 16.18.07](https://forum.open-services.net/uploads/default/original/1X/3c4a0a0bd63c8c78f2a05a9a0fa9cf30606b09b9.png)

and I got the same error !

---

<div class="post-metadata">

**Author:** ![jad](https://forum.open-services.net/user_avatar/forum.open-services.net/jad/32/42_2.png) [@jad](https://forum.open-services.net/u/jad)\
**Post date:** [November 8, 2022, 9:46am UTC](https://forum.open-services.net/t/create-url-bug-for-adaptor-rm-tool-sample/676/5 "2022-11-08T09:46:16Z")

</div>

Hi

The resource you are sending does not seem to be valid. It lookes like basic json, but you need to send rdf.

Tips is to do a GET on a resource that exists. And, then copy the response as the body for your POST request.
