Define a REST API schema
Specify the expected data structure for requests or responses within a REST API by defining a schema.
Vorbereitungen
Role required: web_service_admin
Warum und wann dieser Vorgang ausgeführt wird
Schemas are records that define the structure and format of request and response bodies and headers for a REST API in the OpenAPI 3.0.1 format. When you define a schema in the ServiceNow AI Platform, the schema is used to define the structure of requests and responses within the associated REST API. The schema data for the requests and responses is then available in the exportable OpenAPI specification for the API. For more information about exporting OpenAPI specifications, see Export to OpenAPI specification.
Prozedur
Nächste Maßnahme
Define additional schemas as needed. Use the schemas to specify the expected structure and format in a REST request or response. For more information, see Define an API resource request structure or Define an API resource response structure.