Get a spec file

View as Markdown
Gets the contents of an API specification's file.

Authentication

x-api-keystring
API Key authentication via header
OR
Authorizationstring
A valid [SCIM API key](https://learning.postman.com/docs/administration/scim-provisioning/scim-provisioning-overview/#generating-scim-api-key) for calls to SCIM endpoints.
OR
AuthorizationBasic

Basic authentication of the form Basic <base64(username:password)>.

Path parameters

specIdstringRequired
The spec's ID.
filePathstringRequired
The path to the file.

Response

Successful Response
idstring
The file's ID.
namestring
The file's name.
pathstring
The file's path.
createdByinteger
The user ID of the user that created the file.
updatedByinteger
The ID of the user who updated the file.
createdAtdatetime
The date and time at which the file was created.
updatedAtdatetime
The date and time at which the file was updated.
typeenum

The type of file:

  • ROOT — A file containing the full OpenAPI structure and references other (DEFAULT) spec files.
  • DEFAULT — A file referenced by the ROOT file.
contentstring
The file's stringified contents.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
500
Internal Server Error