Skip to content

Commit

Permalink
try inline openapi spec
Browse files Browse the repository at this point in the history
  • Loading branch information
asjohnston-asf committed May 1, 2024
1 parent ea39f5f commit 7ccada6
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 25 deletions.
26 changes: 25 additions & 1 deletion apps/api/cloudformation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,31 @@ Resources:
ProtocolType: HTTP
Target: !GetAtt Lambda.Arn
CredentialsArn: !GetAtt ApiRole.Arn
BodyS3Location: openapi.yml
Body:
openapi: 3.1.0
info:
title: Sample API
description: Optional multiline or single-line description in [CommonMark](http://commonmark.org/help/) or HTML.
version: 0.1.9
servers:
- url: http://api.example.com/v1
description: Optional server description, e.g. Main (production) server
- url: http://staging-api.example.com
description: Optional server description, e.g. Internal staging server for testing
paths:
/users:
get:
summary: Returns a list of users.
description: Optional extended description in CommonMark or HTML.
responses:
'200': # status code
description: A JSON array of user names
content:
application/json:
schema:
type: array
items:
type: string

ApiOverrides:
Type: AWS::ApiGatewayV2::ApiGatewayManagedOverrides
Expand Down
24 changes: 0 additions & 24 deletions apps/api/openapi.yml

This file was deleted.

0 comments on commit 7ccada6

Please sign in to comment.