Skip to content

Instantly share code, notes, and snippets.

@ZerNico
Created December 21, 2019 18:09
Show Gist options
  • Select an option

  • Save ZerNico/5b90e7c3bf3a01f60b1127e615a5f39a to your computer and use it in GitHub Desktop.

Select an option

Save ZerNico/5b90e7c3bf3a01f60b1127e615a5f39a to your computer and use it in GitHub Desktop.
openapi: 3.0.0
info:
title: PotatoAPI
version: '1.0'
description: ''
servers:
- url: 'https://api.potatoproject.co/api'
paths:
/user/create/:
post:
summary: ''
operationId: post-user-create
responses:
'201':
description: Created
content:
application/json:
schema:
type: object
properties:
username:
type: string
email:
type: string
requestBody:
content:
application/json:
schema:
type: object
properties:
useranme:
type: string
email:
type: string
password:
type: string
description: Create user account
description: ''
/user/token/:
post:
summary: ''
operationId: post-user-token
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
properties:
token:
type: string
examples: {}
requestBody:
content:
application/json:
schema:
type: object
properties:
username:
type: string
password:
type: string
description: ''
/ota/builds/:
get:
summary: Your GET endpoint
tags: []
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
properties:
count:
type: integer
next:
type: string
previous:
type: string
results:
type: array
items:
type: object
properties:
id:
type: string
user:
type: string
url:
type: string
build_date:
type: string
build_type:
type: string
device:
type: string
dish:
type: string
filename:
type: string
md5:
type: string
notes:
type: string
size:
type: string
version:
type: string
operationId: get-ota-builds
post:
summary: ''
operationId: post-ota-builds
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
properties:
id:
type: integer
user:
type: integer
url:
type: string
build_date:
type: integer
build_type:
type: string
device:
type: string
dish:
type: string
filename:
type: string
md5:
type: string
notes:
type: string
size:
type: integer
version:
type: string
security:
- Authorization: []
requestBody:
content:
application/json:
schema:
type: object
properties:
url:
type: string
build_date:
type: integer
build_type:
type: string
device:
type: string
dish:
type: string
filename:
type: string
md5:
type: string
notes:
type: string
size:
type: integer
version:
type: string
application/xml:
schema:
type: object
properties: {}
components:
schemas: {}
securitySchemes:
Authorization:
name: Token
type: apiKey
in: header
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment