@host=http://localhost:8088
@token=Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoxLCJleHAiOjE3NDU0MTExMDYsIm5iZiI6MTc0NDgwNjI5Nn0.1CshygaU01D763hElVG4j7Rj-bkOP3gawQio3xei0RQ

@md5=959e5310105c96e653f10b74e5bdc36b
@idx=9
### upload chunk
POST {{host}}/v1/uploads/{{md5}}/chunks/{{idx}} HTTP/1.1
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW

------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="file"; filename="0"
Content-Type: application/octet-stream

< ./fixtures/files/{{idx}}
------WebKitFormBoundary7MA4YWxkTrZu0gW--


### complete upload
POST {{host}}/v1/uploads/{{md5}}/complete HTTP/1.1
Content-Type: application/json

{
    "md5": "{{md5}}",
    "filename": "camera.mp4",
    "mime": "video/mp4",
    "chunks": 30
}

### get medias
GET {{host}}/v1/medias HTTP/1.1
Content-Type: application/json

### get oss token
GET {{host}}/v1/admin/uploads/token HTTP/1.1
Content-Type: application/json

### get medias
GET {{host}}/v1/admin/medias HTTP/1.1
Content-Type: application/json

### get posts
GET {{host}}/v1/admin/posts?page=10 HTTP/1.1
Content-Type: application/json
Authorization: {{token}}

### get posts with keyword
GET {{host}}/v1/admin/posts?page=1&limit=10&keyword=99123 HTTP/1.1
Content-Type: application/json

### delete posts
DELETE  {{host}}/v1/admin/posts/103 HTTP/1.1

### get users
GET {{host}}/v1/admin/users HTTP/1.1
Content-Type: application/json

### get orders
GET {{host}}/v1/admin/orders HTTP/1.1
Content-Type: application/json

### get posts
GET {{host}}/v1/posts HTTP/1.1
Content-Type: application/json
Cookie: token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoxMDAxLCJleHAiOjE3NDY1MzU4MjYsIm5iZiI6MTc0NTkzMTAxNn0.Vg8LqDQLkpEvohBYEPSTPrGzKAyMNJ_m7uSm3NBbuDM

### get orders
GET {{host}}/v1/posts/mine HTTP/1.1
Content-Type: application/json


### precheck
GET {{host}}/v1/admin/uploads/pre-uploaded-check/abc.mp4 HTTP/1.1
Content-Type: application/json
authorization: {{token}}


### get media url
GET {{host}}/v1/admin/medias/6 HTTP/1.1
Authorization: {{token}}

### get statistics
GET {{host}}/v1/admin/statistics HTTP/1.1
Authorization: {{token}}

### get user profile
GET {{host}}/v1/users/profile HTTP/1.1
Authorization: {{token}}


