Skip to content

Commit

Permalink
[spec] Update base Spec
Browse files Browse the repository at this point in the history
  • Loading branch information
stdevMac committed Feb 28, 2019
1 parent 3c6b106 commit ea2f0df
Showing 1 changed file with 1 addition and 39 deletions.
40 changes: 1 addition & 39 deletions espec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,42 +24,4 @@ components:
format: int64
message:
type: string
paths:
/somePath:
get:
summary: This is a example of a get method.
description: Some description, is not optional.
responses:
'200': # status code
description: A response of arrays
content:
application/json:
schema:
type: array
items:
type: string
default:
$ref : '#/components/schemas/genericError'
post:
summary: This is a example of a post method.
description: Some description, is not optional.

security:
- CsrfTokenAuth: []

responses:
'200': # status code
description: A response of arrays
content:
application/json:
schema:
type: array
items:
type: string
default:
$ref : '#/components/schemas/genericError'

# To remember :
# Every post method should use security schema.
# Feel free to use and reuse components
# I think, at some point, someone should use oneOf and anyOf, pls take a look
paths:

0 comments on commit ea2f0df

Please sign in to comment.