Get the OpenAPI 2.0 specification for a project version
get
https://{your_site_interface}/determinations-server/project/v2/{project-name}/{project-version}/swagger.json
This operation retrieves the OpenAPI 2.0 specification that describes the operations and the expected inputs and outputs for decision assessments for the project version in development.
Request
Path Parameters
-
project-name(required): string
Name of the project
-
project-version(required): string
The version of the project to use. Use 'draftOrLatest' for the draft (if there is one) or latest version, or specify a version number.
There's no request body for this operation.
Security
-
Authorization: apiKey
Type:
apiKeyDescription:Obtain a bearer token from https://{your_site_interface}/opa-hub/api/12.2.17/auth and use it in the Authorization header as: Bearer {token}. -
oauth2_opa: oauth2
Type:
oauth2Description:POST the OAuth2 Client Credentials parameters to https://{your_site_interface}/opa-hub/api/12.2.17/auth and use the access token from the response in the Authorization header.
Response
Supported Media Types
- application/json
200 Response
The OpenAPI 2.0 specification describing the operations and required input to perform decision assessments on the project version.
Root Schema : openApiSpec
Type:
objectThe OpenAPI 2.0 specification in JSON format describing the decision service operations.
404 Response
The requested resource does not exist.