From 765ba14a888ad681a2ca5fc952d2d0eb39a4906d Mon Sep 17 00:00:00 2001 From: Shiun Hwang Date: Fri, 21 Oct 2022 10:15:05 -0700 Subject: [PATCH] Adding OAS and Backstage catalog yaml --- catalog-info.yaml | 46 ++++++++++++++++++++++++++++++++++++++++++++++ sloganator.yaml | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 83 insertions(+) create mode 100644 catalog-info.yaml create mode 100644 sloganator.yaml diff --git a/catalog-info.yaml b/catalog-info.yaml new file mode 100644 index 0000000..1f0479a --- /dev/null +++ b/catalog-info.yaml @@ -0,0 +1,46 @@ +apiVersion: backstage.io/v1alpha1 +kind: API +metadata: + name: sloganator + description: Generate slogans +spec: + type: openapi + lifecycle: production + owner: engineering + definition: | + openapi: 3.0.1 + info: + title: lambda-slogantor + description: Generate slogans + version: "0.1" + servers: + - url: https://4krgs6alv6.execute-api.us-west-2.amazonaws.com + paths: + /prod/slogan: + get: + description: Generate slogan based on query + parameters: + - name: q + in: query + required: true + style: form + explode: true + schema: + type: string + example: APIs + responses: + "200": + description: The generated slogan + content: + application/json: + schema: + type: object + properties: {} + examples: + "0": + value: '"APIs isn''t a spaceship. It''s a time machine."' + servers: + - url: https://4krgs6alv6.execute-api.us-west-2.amazonaws.com + servers: + - url: https://4krgs6alv6.execute-api.us-west-2.amazonaws.com + components: {} diff --git a/sloganator.yaml b/sloganator.yaml new file mode 100644 index 0000000..88b23a4 --- /dev/null +++ b/sloganator.yaml @@ -0,0 +1,37 @@ +--- +openapi: 3.0.1 +info: + title: lambda-slogantor + description: Generate slogans + version: "0.1" +servers: +- url: https://4krgs6alv6.execute-api.us-west-2.amazonaws.com +paths: + /prod/slogan: + get: + description: Generate slogan based on query + parameters: + - name: q + in: query + required: true + style: form + explode: true + schema: + type: string + example: APIs + responses: + "200": + description: The generated slogan + content: + application/json: + schema: + type: object + properties: {} + examples: + "0": + value: '"APIs isn''t a spaceship. It''s a time machine."' + servers: + - url: https://4krgs6alv6.execute-api.us-west-2.amazonaws.com + servers: + - url: https://4krgs6alv6.execute-api.us-west-2.amazonaws.com +components: {}