Home > Back-end >  Oracle ORDS REST modules - optional parameters in handler
Oracle ORDS REST modules - optional parameters in handler

Time:10-30

To create a handler, it seems that I would need to create a template with a URI template to create bindings.

However, the bindings seem to me only possible as a path structure (e.g. /:id/:records/:department) instead of being searchParams (?id=1&department=IT)

How could I allow optional parameters in the URL for handlers?

CodePudding user response:

You can use binds or parameters, or even a mix.

enter image description here

Confirm your APIs have been created, and call the API...

In this case a

GET http://localhost:8080/ords/hr/parameters/headers-classic?id=4

enter image description here

  • Related