Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding OAS and Backstage.io catalog-info.yaml #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions catalog-info.yaml
Original file line number Diff line number Diff line change
@@ -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: {}
37 changes: 37 additions & 0 deletions sloganator.yaml
Original file line number Diff line number Diff line change
@@ -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: {}