oracle-rest-data-services

How to create custom endpoint which does not have primary id as required parameter


In Oracle VBCS in a Business Object, I am creating an Object function that is exposed as a REST endpoint but it's making the primary id mandatory I want to have an endpoint that does not require the primary key.

I added a simple addUserDemo function but its endpoints were created like this.

enter image description here

enter image description here

Can anyone suggest how to remove {User_Id} from the URL?


Solution

  • Object functions always work on a specific row in an object. You can create a dummy object that has only one row and is marked as containing setup data - and have the function run on that one. https://blogs.oracle.com/vbcs/post/service-methods-for-business-objects-in-visual-builder