Create a REST module
post
/ords/rest/modules/
Creates a REST module.
Request
Supported Media Types
- application/json
Root Schema : schema
Type:
Show Source
object
-
base_path:
string
The base of the URI that is used to access this RESTful service. Example: hr/ means that all URIs starting with hr/ will be serviced by this resource module.
-
comments(optional):
string
Comment text.
-
items_per_page(optional):
integer
The default pagination for a resource handler HTTP operation GET method, that is, the number of rows to return on each page of a JSON format result set based on a database query. Default: 25.
-
module_status(optional):
string
Publication status. Valid values: PUBLISHED (default) or NOT_PUBLISHED.
-
name:
string
Name of the owning RESTful service module. Case sensitive.
-
origins_allowed(optional):
string
Set the allowed origins for the module containing the web service call.
-
run_mode(optional):
string
Its value can be 'codePreview', which would make the endpoint respond with the code the backend would have executed. When the parameter is not provided, the endpoint will respond with the results of the operation execution.
Response
Supported Media Types
- application/json
200 Response
Source code of the REST module to be created. Used for showcode.
201 Response
Details of the REST module that has been successfully created.