Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to handle slash character '/' in RESTful API

I am using ADF 12.2.1.1 and develop EO, VO and publish to RESTful API. If a table only have one key column, I can use the key value to operate single row in RESTful API URL like:

http://127.0.0.1:7101/CVCLNP/rest/1/units/AB

But if the key value includes slash character '/' like A/B, the published URL is like http://127.0.0.1:7101/CVCLNP/rest/1/units/A%2FB

And visit this URL will get the incorrect key value: A instead of A/B.

pastedImage_6.png

pastedImage_8.png

For GET method I have a workaround that using parameter q to search the key value like http://127.0.0.1:7101/CVCLNP/rest/1/units/?q=UnitOfMeasure=A%2FB

pastedImage_9.png

But I cannot DELETE the key value A/B by RESTful API.

Is this a ADF limitation or bug?

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 19 2016
Added on Sep 21 2016
0 comments
496 views