Skip to content

Instantly share code, notes, and snippets.

@wardenlym
Created September 28, 2018 08:49
Show Gist options
  • Save wardenlym/547b24a57fa489535308383931972c19 to your computer and use it in GitHub Desktop.
Save wardenlym/547b24a57fa489535308383931972c19 to your computer and use it in GitHub Desktop.
audio-api
swagger: '2.0'
info:
description: >-
Document for a sample audio api server.
version: 1.0.0
title: Audio API Server
host: audio-api.wardenlym.com
basePath: /v1
tags:
- name: Portal
description: user & app management
- name: Audio
description: audio connection server dispatching
schemes:
#- https
- http
paths:
/portal/create_app:
post:
tags:
- Portal
summary: Add a new app
description: ''
consumes:
- application/json
produces:
- application/json
parameters:
- in: body
name: body
description: Pet object that needs to be added to the store
required: true
schema:
$ref: '#/definitions/AppInfo'
responses:
'405':
description: Invalid input
security:
- access_token: []
securityDefinitions:
access_token:
type: apiKey
name: access_token
in: header
definitions:
ErrResponse:
type: object
properties:
err_code:
type: integer
err_msg:
type: string
AppInfo:
type: object
properties:
appid:
type: integer
RoomInfo:
type: object
properties:
roomid:
type: integer
format: int64
ipv4:
type: string
port:
type: integer
pwd:
type: string
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment