openapi: 3.2.0 info: title: Folio Application Discovery API version: v1 description: 'Operations tagged application-discovery across 2 of this provider''s published API definitions: folio-mgr-applications-am-openapi.json, folio-mgr-applications-am-openapi.yml. Each path carries the servers of the definition it was published in.' servers: - url: http://localhost:8081 description: Locally deployed server tags: - name: application-discovery paths: /applications/discovery: get: operationId: searchApplicationsDiscovery description: Retrieve discovery information for applications matching a CQL query, organized by application. tags: - application-discovery parameters: - $ref: '#/components/parameters/cql-query' - $ref: '#/components/parameters/query-offset' - $ref: '#/components/parameters/query-limit' responses: '200': description: Application discovery information grouped by application content: application/json: schema: $ref: '#/components/schemas/applicationDiscoveries' '400': $ref: '#/components/responses/bad-request' '500': $ref: '#/components/responses/internal-server-error' summary: Search applications discovery x-summary-source: derived servers: - url: http://localhost:8081 description: Locally deployed server /applications/{id}/discovery: get: operationId: getDiscovery description: Retrieve module discovery info for application referenced by id. tags: - application-discovery parameters: - $ref: '#/components/parameters/path-entity-id' - $ref: '#/components/parameters/query-offset' - $ref: '#/components/parameters/query-limit' responses: '200': description: An application discovery content: application/json: schema: $ref: '#/components/schemas/moduleDiscoveries' '400': $ref: '#/components/responses/bad-request' '500': $ref: '#/components/responses/internal-server-error' summary: Get discovery x-summary-source: derived servers: - url: http://localhost:8081 description: Locally deployed server components: schemas: moduleDiscoveries: $schema: http://json-schema.org/draft-04/schema# type: object description: Collection of discovery information for modules that comprise an application properties: discovery: description: Discovery information for the modules that comprise this application type: array id: moduleDiscovery items: $ref: '#/components/schemas/moduleDiscovery' totalRecords: readOnly: true description: The total number of records matching the provided criteria type: integer format: int64 required: - discovery parameter: description: List of key/value parameters of an error $schema: http://json-schema.org/draft-04/schema# type: object properties: key: description: Parameter key type: string value: description: Parameter value type: string moduleDiscovery: $schema: http://json-schema.org/draft-04/schema# type: object description: Module discovery information x-implements: - org.folio.common.domain.model.Artifact allOf: - $ref: '#/components/schemas/artifact' properties: location: description: A url address of module where its been deployed type: string required: - location parameters: description: List of key/value parameters of an error $schema: http://json-schema.org/draft-04/schema# type: array items: $ref: '#/components/schemas/parameter' errorCode: $schema: http://json-schema.org/draft-04/schema# type: string description: Error message code enum: - unknown_error - service_error - validation_error - not_found_error - found_error applicationDiscoveries: $schema: http://json-schema.org/draft-04/schema# type: object description: Collection of discovery information organized by application properties: applicationDiscoveries: description: Discovery information grouped by application type: array items: $ref: '#/components/schemas/applicationDiscovery' totalRecords: readOnly: true description: The total number of applications matching the provided criteria type: integer required: - applicationDiscoveries version: $schema: http://json-schema.org/draft-04/schema# description: A universally unique identifier (UUID), this is a 128-bit number used to identify a record and is shown in hex with dashes, for example 6312d172-f0cf-40f6-b27d-9fa8feaf332f; the UUID version must be from 1-5; see https://dev.folio.org/guides/uuids/ type: string pattern: ^(\d+)\.(\d+)\.(\d+)(?:-([\dA-Za-z-]+(?:\.[\dA-Za-z-]+)*))?(?:\+[\dA-Za-z-]+)?$ artifact: $schema: http://json-schema.org/draft-04/schema# title: Application Artifact Schema description: Artifact Descriptor for Application Manager Installer type: object properties: id: description: A Name-Version id for identifying this artifact type: string name: description: Artifact name type: string version: description: The version of an artifact (semantic version approach) $ref: '#/components/schemas/version' additionalProperties: false required: - name - version error: description: An error $schema: http://json-schema.org/draft-04/schema# type: object properties: message: type: string description: Error message text type: type: string description: Error message type code: description: Error message code $ref: '#/components/schemas/errorCode' parameters: description: Error message parameters $ref: '#/components/schemas/parameters' applicationDiscovery: $schema: http://json-schema.org/draft-04/schema# type: object description: Discovery information for a single application properties: applicationId: description: The application identifier type: string discovery: description: Discovery information for the modules that comprise this application type: array items: $ref: '#/components/schemas/moduleDiscovery' required: - applicationId - discovery errors: description: A set of errors $schema: http://json-schema.org/draft-04/schema# type: object properties: errors: id: errors description: List of errors type: array items: $ref: '#/components/schemas/error' total_records: description: Total number of errors type: integer responses: bad-request: description: Error response if request body contains validation error (in json format) content: application/json: schema: $ref: '#/components/schemas/errors' internal-server-error: description: Error response for unhandled or critical server exceptions, e.g. NullPointerException. content: application/json: schema: $ref: '#/components/schemas/errors' parameters: query-offset: in: query required: false name: offset description: Skip over a number of elements by specifying an offset value for the query. schema: type: integer minimum: 0 default: 0 path-entity-id: in: path required: true name: id description: Entity/document id schema: type: string query-limit: in: query required: false name: limit description: Limit the number of elements returned in the response. schema: type: integer minimum: 0 maximum: 500 default: 10 cql-query: name: query in: query description: A CQL query string with search conditions. schema: type: string x-refined-from: - folio-mgr-applications-am-openapi.json - folio-mgr-applications-am-openapi.yml