Create a REST module

post

/ords/rest/modules/

Creates a REST module.

Request

There are no request parameters for this operation.

Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
Show Source
  • 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.
  • Comment text.
  • 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.
  • Publication status. Valid values: PUBLISHED (default) or NOT_PUBLISHED.
  • Name of the owning RESTful service module. Case sensitive.
  • Set the allowed origins for the module containing the web service call.
  • 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.
Back to Top

Response

Supported Media Types

200 Response

Source code of the REST module to be created. Used for showcode.
Body ()
Root Schema : ResourceItem
Type: object
Additional Properties Allowed: true
Show Source
Nested Schema : LinkRelation
Type: object
Show Source

201 Response

Details of the REST module that has been successfully created.
Body ()
Root Schema : ResourceItem
Type: object
Additional Properties Allowed: true
Show Source
Nested Schema : LinkRelation
Type: object
Show Source

404 Response

No name or base_path parameter provided.

409 Response

A module with that name or base path already exists.
Back to Top