Skip to Main Content

ORDS, SODA & JSON in the Database

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!

New to rest services. Template should end with a slash?

juliojgsMay 20 2022

Hi,
While developing my first rest service, a POST request ending on an insert in a table, I encountered an issue with the :forward_location parameter , that was taking me to a bad address, instead of taking me to the GET service for the row.

:forward_location := './'||l_new_id;

where l_new_id is where I stored the id for the row I have just inserted.
I fixed it adding an slash at the end of the URI template.
Is this the good practice? (defining the uri template with a slash at the end)
or should I concat something ('./' ?) to the :forward_location ?

:forward_location := './'||l_new_id;
This post has been answered by thatJeffSmith-Oracle on May 20 2022
Jump to Answer
Comments
Post Details
Added on May 20 2022
2 comments
337 views