From d8c9e5750d075e9842efdac6ebf8690780139371 Mon Sep 17 00:00:00 2001 From: maciejhubert <47540428+maciejhubert@users.noreply.github.com> Date: Wed, 15 Jul 2020 18:04:54 +0200 Subject: [PATCH] api example 4 --- api-example4.yaml | 49 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 api-example4.yaml diff --git a/api-example4.yaml b/api-example4.yaml new file mode 100644 index 0000000..86fe7a8 --- /dev/null +++ b/api-example4.yaml @@ -0,0 +1,49 @@ +openapi: 3.0.0 +info: + description: Short API description + version: "0.1" + title: API Documentation Title + termsOfService: "" + contact: + email: email@example.com + url: http://example.com + license: + name: MIT License + url: https://opensource.org/licenses/mit-license.php +servers: + - url: http://api.example.com +tags: + - name: project + description: Operations on projects +paths: + /projects: + get: + tags: + - project + description: Get all projects + operationId: findProjects + responses: + "200": + description: Successful operation + content: + application/json: + schema: + type: array + items: + $ref: "#/components/schemas/Project" +components: + schemas: + Project: + type: object + required: + - id + - name + properties: + id: + type: integer + format: int64 + name: + type: string +externalDocs: + description: Find out more about our project + url: https://example.com/docs/