Skip to content

Commit

Permalink
[cbermudez97] refs #4 Add cbermudez97_espec.yml file
Browse files Browse the repository at this point in the history
  • Loading branch information
cbermudez97 committed Feb 21, 2019
1 parent 689397b commit a77fb4f
Showing 1 changed file with 65 additions and 0 deletions.
65 changes: 65 additions & 0 deletions cbermudez97_espec.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
openapi: 3.0.0
info:
title: Python to .Net
description: Still whitout description.
version: 0.25.1
servers:
- url: http://www.skycoin.net
description: Main Skycoin server
- url: http://staging.node.skycoin.net
description: Internal staging server for developer.
components:
securitySchemes:
CsrfTokenAuth: # arbitrary name for the security scheme
type: apiKey
in: header # can be "header", "query" or "cookie"
name: X-CSRF-TOKEN # name of the header, query parameter or cookie
schemas:
genericError:
description: This is a generic error that should be default response
type: object
properties:
code:
type: integer
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

0 comments on commit a77fb4f

Please sign in to comment.