REST enable an object

post

/ords/rest/autorest/

ENABLE_OBJECT enables Oracle REST Data Services access to a specified table or view in a schema.

Request

There are no request parameters for this operation.

Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
Show Source
  • Controls whether Oracle REST Data Services should require user authorization before allowing access to the Oracle REST Data Services metadata for this object. If this value is TRUE, then the service is protected by the following roles: oracle.dbtools.autorest.any.schema, oracle.dbtools.role.autorest...
  • Alias of the object.
  • Name of the table or view.
  • 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

201 Response

A REST enabled object in the schema.
Body ()
Root Schema : ResourceItem
Type: object
Additional Properties Allowed: true
Show Source
Nested Schema : LinkRelation
Type: object
Show Source

403 Response

You do not have permission to enable a REST object.

404 Response

A REST Object does not exist.

409 Response

A REST enabled object with that alias already exists.
Back to Top