Skip to content

Commit

Permalink
增加云端录像接口文档
Browse files Browse the repository at this point in the history
  • Loading branch information
vanjoge committed Jan 31, 2024
1 parent 6757f2e commit 5fb536b
Showing 1 changed file with 279 additions and 0 deletions.
279 changes: 279 additions & 0 deletions cdvr.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,279 @@

# CDVR

Base URLs:

* address : http://server_ip:30889


# Record

## GET /Record/Start

GET /Record/Start

### Params

|Name|Location|Type|Required|Description|
|---|---|---|---|---|
|Sim|query|string| no |none|
|Channel|query|string| no |none|
|Protocol|query|integer| no |none|

> Response Examples
> 200 Response
```json
{
"result": 0,
"resultNote": "string",
"detail": "string"
}
```

### Responses

|HTTP Status Code |Meaning|Description|Data schema|
|---|---|---|---|
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Success|[RecordRet](#schemarecordret)|

## GET /Record/Stop

GET /Record/Stop

### Params

|Name|Location|Type|Required|Description|
|---|---|---|---|---|
|Sim|query|string| no |none|
|Channel|query|string| no |none|
|Protocol|query|integer| no |none|

> Response Examples
> 200 Response
```json
{
"result": 0,
"resultNote": "string",
"detail": "string"
}
```

### Responses

|HTTP Status Code |Meaning|Description|Data schema|
|---|---|---|---|
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Success|[RecordRet](#schemarecordret)|

## POST /Record/Open

POST /Record/Open

> Body Parameters
```json
[
{
"sim": "string",
"channel": [
"string"
],
"protocol": 0
}
]
```

### Params

|Name|Location|Type|Required|Description|
|---|---|---|---|---|
|body|body|[DeviceInfo](#schemadeviceinfo)| no |none|

> Response Examples
> 200 Response
```json
{
"result": 0,
"resultNote": "string",
"detail": "string"
}
```

### Responses

|HTTP Status Code |Meaning|Description|Data schema|
|---|---|---|---|
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Success|[RecordRet](#schemarecordret)|

## POST /Record/BatchStart

POST /Record/BatchStart

> Body Parameters
```json
[
{
"sim": "string",
"channel": [
"string"
],
"protocol": 0
}
]
```

### Params

|Name|Location|Type|Required|Description|
|---|---|---|---|---|
|body|body|[DeviceInfo](#schemadeviceinfo)| no |none|

> Response Examples
> 200 Response
```json
{
"result": 0,
"resultNote": "string",
"detail": "string"
}
```

### Responses

|HTTP Status Code |Meaning|Description|Data schema|
|---|---|---|---|
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Success|[RecordRet](#schemarecordret)|

## POST /Record/BatchStop

POST /Record/BatchStop

> Body Parameters
```json
[
{
"sim": "string",
"channel": [
"string"
],
"protocol": 0
}
]
```

### Params

|Name|Location|Type|Required|Description|
|---|---|---|---|---|
|body|body|[DeviceInfo](#schemadeviceinfo)| no |none|

> Response Examples
> 200 Response
```json
{
"result": 0,
"resultNote": "string",
"detail": "string"
}
```

### Responses

|HTTP Status Code |Meaning|Description|Data schema|
|---|---|---|---|
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Success|[RecordRet](#schemarecordret)|

## POST /Record/Close

POST /Record/Close

> Body Parameters
```json
[
{
"sim": "string",
"channel": [
"string"
],
"protocol": 0
}
]
```

### Params

|Name|Location|Type|Required|Description|
|---|---|---|---|---|
|body|body|[DeviceInfo](#schemadeviceinfo)| no |none|

> Response Examples
> 200 Response
```json
{
"result": 0,
"resultNote": "string",
"detail": "string"
}
```

### Responses

|HTTP Status Code |Meaning|Description|Data schema|
|---|---|---|---|
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Success|[RecordRet](#schemarecordret)|

## POST /Record/QueryVideoFiles

POST /Record/QueryVideoFiles

> Body Parameters
```json
{
"timeStart": "string",
"timeEnd": "string",
"devices": [
{
"sim": "string",
"channel": [
"string"
],
"protocol": 0
}
]
}
```

### Params

|Name|Location|Type|Required|Description|
|---|---|---|---|---|
|body|body|[QueryDevicesVideoFiles](#schemaquerydevicesvideofiles)| no |none|

> Response Examples
> 200 Response
```json
"string"
```

### Responses

|HTTP Status Code |Meaning|Description|Data schema|
|---|---|---|---|
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Success|string|

0 comments on commit 5fb536b

Please sign in to comment.