Skip to main content

API 1 - Swagger Petstore

mpc2 (1.01)

Download OpenAPI specification:Download

/account/reset

Request Body schema: application/json
username
required
string

Responses

Request samples

Content type
application/json
{
  • "username": "string"
}

Response samples

Content type
application/json
{ }

/account/{id}

path Parameters
id
required
string

Responses

Response samples

Content type
application/json
{
  • "account_id": 0,
  • "username": "string",
  • "password": "string",
  • "email": "string",
  • "status": "string",
  • "token": "string"
}

/saving_policy/{id}

path Parameters
id
required
string

Responses

Response samples

Content type
application/json
{
  • "saving_policy_id": 0,
  • "max_time": 0,
  • "resolution_name": "string"
}

/saving_policy/{id}

path Parameters
id
required
string
query Parameters
max_time
string
resolution_name
string

Responses

Response samples

Content type
application/json
{ }

/saving_policy/{id}

path Parameters
id
required
string

Responses

Response samples

Content type
application/json
{ }

/saving_policy

Responses

Response samples

Content type
application/json
[
  • {
    }
]

/saving_policy

query Parameters
max_time
required
string
resolution_name
required
string

Responses

Response samples

Content type
application/json
{
  • "ID": 0
}

/hardware/{id}

path Parameters
id
required
string

Responses

Response samples

Content type
application/json
{
  • "hardware_id": 0,
  • "account_id": 0,
  • "device_id": "string",
  • "max_resolution": "string",
  • "channel_name": "string",
  • "playback_url": "string",
  • "ingest_endpoint": "string",
  • "stream_key": "string",
  • "device_name": "string",
  • "arn": "string",
  • "s3_recording_prefix": "string"
}

/hardware/{id}

path Parameters
id
required
string
query Parameters
name
string
max_resolution
string

Responses

Response samples

Content type
application/json
{ }

/hardware/{id}

path Parameters
id
required
string

Responses

Response samples

Content type
application/json
{ }

/resolution

Responses

Response samples

Content type
application/json
[
  • {
    }
]

/resolution

query Parameters
height
required
string
width
required
string
resolution_name
required
string

Responses

Response samples

Content type
application/json
{ }

/hardware/register

Authorizations:
api_key
Request Body schema: application/json
device_id
required
string
max_resolution
required
string
channel_name
required
string
playback_url
required
string
ingest_endpoint
required
string
stream_key
required
string
device_name
required
string
arn
required
string
s3_recording_prefix
string

Responses

Request samples

Content type
application/json
{
  • "device_id": "string",
  • "max_resolution": "string",
  • "channel_name": "string",
  • "playback_url": "string",
  • "ingest_endpoint": "string",
  • "stream_key": "string",
  • "device_name": "string",
  • "arn": "string",
  • "s3_recording_prefix": "string"
}

Response samples

Content type
application/json
{
  • "hardware_id": 0,
  • "account_id": 0,
  • "device_id": "string",
  • "max_resolution": "string",
  • "channel_name": "string",
  • "playback_url": "string",
  • "ingest_endpoint": "string",
  • "stream_key": "string",
  • "device_name": "string",
  • "arn": "string",
  • "s3_recording_prefix": "string"
}

/saving_policy/{id}/hardware/{hardware_id}

path Parameters
hardware_id
required
string
id
required
string

Responses

Response samples

Content type
application/json
{ }

/notification/{id}

path Parameters
id
required
string

Responses

Response samples

Content type
application/json
{
  • "notification_id": 0,
  • "notification_type": 0,
  • "criteria_id": 0
}

/notification/{id}

path Parameters
id
required
string
query Parameters
notification_type
string
criteria_id
string

Responses

Response samples

Content type
application/json
{ }

/notification/{id}

path Parameters
id
required
string

Responses

Response samples

Content type
application/json
{ }

/notification/{id}/add/{hardware_id}

path Parameters
hardware_id
required
string
id
required
string

Responses

Response samples

Content type
application/json
{ }

/hardware/all

Request Body schema: application/json
token
string

Responses

Request samples

Content type
application/json
{
  • "token": "string"
}

Response samples

Content type
application/json
{ }

/saving_policy/{id}/add/{hardware_id}

path Parameters
hardware_id
required
string
id
required
string

Responses

Response samples

Content type
application/json
{ }

/recording/{id}

path Parameters
id
required
string

Responses

Response samples

Content type
application/json
{
  • "recording_id": 0,
  • "hardware_id": 0,
  • "account_id": 0,
  • "file_name": "string",
  • "timestamp": "2019-08-24T14:15:22Z",
  • "date": "2019-08-24"
}

/recording/{id}

path Parameters
id
required
string
query Parameters
hardware_id
string
timestamp
string
date
string
file_name
string
account_id
string

Responses

Response samples

Content type
application/json
{ }

/recording/{id}

path Parameters
id
required
string

Responses

Response samples

Content type
application/json
{ }

/account/code

Request Body schema: application/json
username
required
string
code
required
string

Responses

Request samples

Content type
application/json
{
  • "username": "string",
  • "code": "string"
}

Response samples

Content type
application/json
{ }

/notification

Responses

Response samples

Content type
application/json
[
  • {
    }
]

/notification

query Parameters
hardware_id
string
notification_type
required
string
criteria_id
required
string

Responses

Response samples

Content type
application/json
{
  • "ID": 0
}

/criteria/{id}

path Parameters
id
required
string

Responses

Response samples

Content type
application/json
{
  • "criteria_id": 0,
  • "criteria_type": 0,
  • "magnitude": 0,
  • "duration": 0
}

/criteria/{id}

path Parameters
id
required
string
query Parameters
criteria_type
string
duration
string
magnitude
string

Responses

Response samples

Content type
application/json
{ }

/criteria/{id}

path Parameters
id
required
string

Responses

Response samples

Content type
application/json
{ }

/resolution/{name}

path Parameters
name
required
string

Responses

Response samples

Content type
application/json
{
  • "resolution_name": "string",
  • "width": 0,
  • "height": 0
}

/resolution/{name}

path Parameters
name
required
string
query Parameters
width
string
height
string
resolution_name
string

Responses

Response samples

Content type
application/json
{ }

/resolution/{name}

path Parameters
name
required
string

Responses

Response samples

Content type
application/json
{ }

/file/all

Request Body schema: application/json
token
string

Responses

Request samples

Content type
application/json
{
  • "token": "string"
}

Response samples

Content type
application/json
[
  • {
    }
]

/account/password

Request Body schema: application/json
username
required
string
token
string
password
required
string
code
required
string

Responses

Request samples

Content type
application/json
{
  • "username": "string",
  • "token": "string",
  • "password": "string",
  • "code": "string"
}

Response samples

Content type
application/json
{ }

/recording

Responses

Response samples

Content type
application/json
[
  • {
    }
]

/recording

query Parameters
hardware_id
required
string
year
string
hour
string
minute
string
file_name
required
string
second
string
month
string
date
string
timestamp
string
account_id
required
string

Responses

Response samples

Content type
application/json
{
  • "ID": 0
}

/account/livestream/device

Request Body schema: application/json
token
required
string
device_id
required
string

Responses

Request samples

Content type
application/json
{
  • "token": "string",
  • "device_id": "string"
}

Response samples

Content type
application/json
{ }

/account/email/device

Request Body schema: application/json
token
required
string
device_id
required
string

Responses

Request samples

Content type
application/json
{
  • "token": "string",
  • "device_id": "string"
}

Response samples

Content type
application/json
{ }

/path

Responses

Response samples

Content type
application/json
{ }

/recording/start

Request Body schema: application/json
token
required
string
device_id
required
string

Responses

Request samples

Content type
application/json
{
  • "token": "string",
  • "device_id": "string"
}

Response samples

Content type
application/json
{ }

/hardware

Responses

Response samples

Content type
application/json
[
  • {
    }
]

/hardware

query Parameters
name
required
string
max_resolution
required
string

Responses

Response samples

Content type
application/json
{
  • "ID": 0
}

/criteria

Responses

Response samples

Content type
application/json
[
  • {
    }
]

/criteria

query Parameters
criteria_type
required
string
duration
required
string
magnitude
required
string

Responses

Response samples

Content type
application/json
{ }

/account/profile

Request Body schema: application/json
token
string

Responses

Request samples

Content type
application/json
{
  • "token": "string"
}

Response samples

Content type
application/json
{ }

/hardware/newname

Request Body schema: application/json
token
string

Responses

Request samples

Content type
application/json
{
  • "token": "string"
}

Response samples

Content type
application/json
{ }

/account/verify/token

Request Body schema: application/json
token
string

Responses

Request samples

Content type
application/json
{
  • "token": "string"
}

Response samples

Content type
application/json
{ }

/notification/{id}/hardware

path Parameters
id
required
string

Responses

Response samples

Content type
application/json
[
  • {
    }
]

/account/signin

Request Body schema: application/json
username
required
string
password
required
string

Responses

Request samples

Content type
application/json
{
  • "username": "string",
  • "password": "string"
}

Response samples

Content type
application/json
{ }

/recording/is_recording

Request Body schema: application/json
token
required
string
device_id
required
string

Responses

Request samples

Content type
application/json
{
  • "token": "string",
  • "device_id": "string"
}

Response samples

Content type
application/json
{ }

/recording/stop

Request Body schema: application/json
token
required
string
device_id
required
string

Responses

Request samples

Content type
application/json
{
  • "token": "string",
  • "device_id": "string"
}

Response samples

Content type
application/json
{ }

/

Request Body schema: application/json
object (Empty)

Responses

Request samples

Content type
application/json
{ }

Response samples

Content type
No sample

/

Request Body schema: application/json
object (Empty)

Responses

Request samples

Content type
application/json
{ }

Response samples

Content type
application/json
{
  • "server_information": "string"
}

/account/add/device

Responses

Response samples

Content type
application/json
{ }

/hardware/delete

Request Body schema: application/json
token
required
string
device_id
required
string

Responses

Request samples

Content type
application/json
{
  • "token": "string",
  • "device_id": "string"
}

Response samples

Content type
application/json
{ }

/file/delete

Request Body schema: application/json
token
required
string
file_name
required
string

Responses

Request samples

Content type
application/json
{
  • "token": "string",
  • "file_name": "string"
}

Response samples

Content type
application/json
{ }

/notification/{id}/hardware/{hardware_id}

path Parameters
hardware_id
required
string
id
required
string

Responses

Response samples

Content type
application/json
{ }

/account

Responses

Response samples

Content type
application/json
[
  • {
    }
]

/account

query Parameters
password
required
string
username
required
string
email
required
string

Responses

Response samples

Content type
application/json
{
  • "ID": 0
}

/hardware/code

Request Body schema: application/json
token
required
string
code
required
string

Responses

Request samples

Content type
application/json
{
  • "token": "string",
  • "code": "string"
}

Response samples

Content type
application/json
{ }

/account/get/device

Request Body schema: application/json
token
required
string
device_id
required
string

Responses

Request samples

Content type
application/json
{
  • "token": "string",
  • "device_id": "string"
}

Response samples

Content type
application/json
{ }

/hardware/share

Request Body schema: application/json
token
required
string
device_id
required
string

Responses

Request samples

Content type
application/json
{
  • "token": "string",
  • "device_id": "string"
}

Response samples

Content type
application/json
{ }

/account/delete

Request Body schema: application/json
token
string

Responses

Request samples

Content type
application/json
{
  • "token": "string"
}

Response samples

Content type
application/json
{ }

/saving_policy/{id}/hardware

path Parameters
id
required
string

Responses

Response samples

Content type
application/json
[
  • {
    }
]

/email

Request Body schema: application/json
ToMail
required
string
Subject
required
string
LetterBody
required
string

Responses

Request samples

Content type
application/json
{
  • "ToMail": "string",
  • "Subject": "string",
  • "LetterBody": "string"
}

Response samples

Content type
application/json
{ }

/account/signup

Request Body schema: application/json
username
required
string
password
required
string
email
required
string

Responses

Request samples

Content type
application/json
{
  • "username": "string",
  • "password": "string",
  • "email": "string"
}

Response samples

Content type
application/json
{ }

/account/verify/device

header Parameters
x-api-key
string
Content-type
string
Request Body schema: application/json
token
required
string
device_id
required
string

Responses

Request samples

Content type
application/json
{
  • "token": "string",
  • "device_id": "string"
}

Response samples

Content type
application/json
{ }