Add a schema to a REST request record to define the request's expected data structure.
Antes de Iniciar
You must define at least one REST API resource and at least one schema in the REST API before defining the request structure.Role required: web_service_admin
Procedimento
-
Navigate to a new REST Request record in one of the following ways.
If you navigate through a scripted REST API record, most fields in the REST Request record are pre-populated.
| Option | Procedure |
|---|
| Navigate through a scripted REST API record |
- Navigate to .
- Select a scripted REST API record.
- In the Resources related list, select a resource.
- In the Request Schema tab, select New.
|
| Navigate directly to a new REST Request record |
- Navigate to and enter sys_ws_request_spec.form.
- In the API field, select an API.
- In the API resource field, select the API resource whose request schema you want to specify.
- In the Version field, select the API resource version.
- In the Http method field, select the method whose request schema you want to specify (for example, PUT).
|
-
In the Schema field, find or enter the schema you want to define the structure and format of the resource's request body.
-
In the Description field, summarize the expected format of the REST request.
-
Select Submit.
Resultado
The schema you used to define the request body structure is included in the exportable OpenAPI specification in the REST API Explorer. For more information about exporting OpenAPI specifications, see Export to OpenAPI specification.