{
	"info": {
		"_postman_id": "3bfaa312-8c4a-4975-b20a-903cf5089b04",
		"name": "cdn.express/~/api",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
		"_exporter_id": "2813394"
	},
	"item": [
		{
			"name": "directory",
			"item": [
				{
					"name": "create",
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "{{token}}",
									"type": "string"
								}
							]
						},
						"method": "PUT",
						"header": [],
						"body": {
							"mode": "formdata",
							"formdata": [
								{
									"key": "path",
									"value": "/new directory/",
									"type": "text"
								}
							]
						},
						"url": {
							"raw": "https://{{domain}}/~/api/directory",
							"protocol": "https",
							"host": [
								"{{domain}}"
							],
							"path": [
								"~",
								"api",
								"directory"
							]
						}
					},
					"response": []
				},
				{
					"name": "get",
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "{{token}}",
									"type": "string"
								}
							]
						},
						"method": "GET",
						"header": [],
						"url": {
							"raw": "https://{{domain}}/~/api/directory?path=/",
							"protocol": "https",
							"host": [
								"{{domain}}"
							],
							"path": [
								"~",
								"api",
								"directory"
							],
							"query": [
								{
									"key": "path",
									"value": "/"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "get recursive",
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "{{token}}",
									"type": "string"
								}
							]
						},
						"method": "GET",
						"header": [],
						"url": {
							"raw": "https://{{domain}}/~/api/directory?path=/&recursive=1&iterator=1",
							"protocol": "https",
							"host": [
								"{{domain}}"
							],
							"path": [
								"~",
								"api",
								"directory"
							],
							"query": [
								{
									"key": "path",
									"value": "/"
								},
								{
									"key": "recursive",
									"value": "1"
								},
								{
									"key": "iterator",
									"value": "1"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "rename",
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "{{token}}",
									"type": "string"
								}
							]
						},
						"method": "POST",
						"header": [],
						"body": {
							"mode": "formdata",
							"formdata": [
								{
									"key": "path",
									"value": "/new directory/",
									"type": "text"
								},
								{
									"key": "dest",
									"value": "/directory/",
									"type": "text"
								},
								{
									"key": "overwrite",
									"value": "0",
									"type": "text"
								}
							]
						},
						"url": {
							"raw": "https://{{domain}}/~/api/directory",
							"protocol": "https",
							"host": [
								"{{domain}}"
							],
							"path": [
								"~",
								"api",
								"directory"
							]
						}
					},
					"response": []
				},
				{
					"name": "delete",
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "{{token}}",
									"type": "string"
								}
							]
						},
						"method": "DELETE",
						"header": [],
						"url": {
							"raw": "https://{{domain}}/~/api/directory?path=/new/",
							"protocol": "https",
							"host": [
								"{{domain}}"
							],
							"path": [
								"~",
								"api",
								"directory"
							],
							"query": [
								{
									"key": "path",
									"value": "/new/"
								}
							]
						}
					},
					"response": []
				}
			]
		},
		{
			"name": "file",
			"item": [
				{
					"name": "upload",
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "{{token}}",
									"type": "string"
								}
							]
						},
						"method": "PUT",
						"header": [],
						"body": {
							"mode": "file",
							"file": {
								"src": ""
							}
						},
						"url": {
							"raw": "https://{{domain}}/~/api/file?path=/test.json&overwrite=0",
							"protocol": "https",
							"host": [
								"{{domain}}"
							],
							"path": [
								"~",
								"api",
								"file"
							],
							"query": [
								{
									"key": "path",
									"value": "/test.json"
								},
								{
									"key": "overwrite",
									"value": "0"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "get",
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "{{token}}",
									"type": "string"
								}
							]
						},
						"method": "GET",
						"header": [],
						"url": {
							"raw": "https://{{domain}}/~/api/file?path=/test.json",
							"protocol": "https",
							"host": [
								"{{domain}}"
							],
							"path": [
								"~",
								"api",
								"file"
							],
							"query": [
								{
									"key": "path",
									"value": "/test.json"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "info",
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "{{token}}",
									"type": "string"
								}
							]
						},
						"method": "HEAD",
						"header": [],
						"url": {
							"raw": "https://{{domain}}/~/api/file?path=/test.json",
							"protocol": "https",
							"host": [
								"{{domain}}"
							],
							"path": [
								"~",
								"api",
								"file"
							],
							"query": [
								{
									"key": "path",
									"value": "/test.json"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "rename",
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "{{token}}",
									"type": "string"
								}
							]
						},
						"method": "POST",
						"header": [],
						"body": {
							"mode": "formdata",
							"formdata": [
								{
									"key": "path",
									"value": "test.json",
									"type": "text"
								},
								{
									"key": "dest",
									"value": "test new.json",
									"type": "text"
								},
								{
									"key": "overwrite",
									"value": "0",
									"type": "text"
								}
							]
						},
						"url": {
							"raw": "https://{{domain}}/~/api/file",
							"protocol": "https",
							"host": [
								"{{domain}}"
							],
							"path": [
								"~",
								"api",
								"file"
							]
						}
					},
					"response": []
				},
				{
					"name": "delete",
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "{{token}}",
									"type": "string"
								}
							]
						},
						"method": "DELETE",
						"header": [],
						"url": {
							"raw": "https://{{domain}}/~/api/file?path=/test new.json",
							"protocol": "https",
							"host": [
								"{{domain}}"
							],
							"path": [
								"~",
								"api",
								"file"
							],
							"query": [
								{
									"key": "path",
									"value": "/test new.json"
								}
							]
						}
					},
					"response": []
				}
			]
		},
		{
			"name": "share",
			"item": [
				{
					"name": "get",
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "{{token}}",
									"type": "string"
								}
							]
						},
						"method": "GET",
						"header": [],
						"url": {
							"raw": "https://{{domain}}/~/api/share?id=qiLWa4XBhShL",
							"protocol": "https",
							"host": [
								"{{domain}}"
							],
							"path": [
								"~",
								"api",
								"share"
							],
							"query": [
								{
									"key": "id",
									"value": "qiLWa4XBhShL"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "get Copy",
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "{{token}}",
									"type": "string"
								}
							]
						},
						"method": "GET",
						"header": [],
						"url": {
							"raw": "https://{{domain}}/~/api/share?id=qiLWa4XBhShL",
							"protocol": "https",
							"host": [
								"{{domain}}"
							],
							"path": [
								"~",
								"api",
								"share"
							],
							"query": [
								{
									"key": "id",
									"value": "qiLWa4XBhShL"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "create",
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "{{token}}",
									"type": "string"
								}
							]
						},
						"method": "PUT",
						"header": [],
						"url": {
							"raw": "https://{{domain}}/~/api/share?path=/c&write=1&deathtime=0",
							"protocol": "https",
							"host": [
								"{{domain}}"
							],
							"path": [
								"~",
								"api",
								"share"
							],
							"query": [
								{
									"key": "path",
									"value": "/c"
								},
								{
									"key": "write",
									"value": "1"
								},
								{
									"key": "deathtime",
									"value": "0"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "access",
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "{{token}}",
									"type": "string"
								}
							]
						},
						"method": "POST",
						"header": [],
						"body": {
							"mode": "formdata",
							"formdata": [
								{
									"key": "write",
									"value": "1",
									"type": "text"
								}
							]
						},
						"url": {
							"raw": "https://{{domain}}/~/api/share?id=qiLWa4XBhShL",
							"protocol": "https",
							"host": [
								"{{domain}}"
							],
							"path": [
								"~",
								"api",
								"share"
							],
							"query": [
								{
									"key": "id",
									"value": "qiLWa4XBhShL"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "delete",
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "{{token}}",
									"type": "string"
								}
							]
						},
						"method": "DELETE",
						"header": [],
						"url": {
							"raw": "https://{{domain}}/~/api/share?id=qiLWa4XBhShL",
							"protocol": "https",
							"host": [
								"{{domain}}"
							],
							"path": [
								"~",
								"api",
								"share"
							],
							"query": [
								{
									"key": "id",
									"value": "qiLWa4XBhShL"
								}
							]
						}
					},
					"response": []
				}
			]
		},
		{
			"name": "link",
			"item": [
				{
					"name": "create",
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "{{token}}",
									"type": "string"
								}
							]
						},
						"method": "GET",
						"header": [],
						"url": {
							"raw": "https://{{domain}}/~/api/link/?path=/image.jpg&time=0&ip",
							"protocol": "https",
							"host": [
								"{{domain}}"
							],
							"path": [
								"~",
								"api",
								"link",
								""
							],
							"query": [
								{
									"key": "path",
									"value": "/image.jpg"
								},
								{
									"key": "time",
									"value": "0"
								},
								{
									"key": "ip",
									"value": null
								}
							]
						}
					},
					"response": []
				}
			]
		},
		{
			"name": "login",
			"event": [
				{
					"listen": "test",
					"script": {
						"exec": [
							"const jsonData = pm.response.json();",
							"pm.test('token', () => {",
							"    pm.expect(jsonData.data.token).to.be.a('string');",
							"    pm.environment.set('token', jsonData.data.token);",
							"})",
							""
						],
						"type": "text/javascript",
						"packages": {}
					}
				}
			],
			"request": {
				"method": "PUT",
				"header": [],
				"body": {
					"mode": "formdata",
					"formdata": [
						{
							"key": "login",
							"value": "{{login}}",
							"type": "text"
						},
						{
							"key": "password",
							"value": "{{password}}",
							"type": "text"
						}
					]
				},
				"url": {
					"raw": "https://{{domain}}/~/api/auth",
					"protocol": "https",
					"host": [
						"{{domain}}"
					],
					"path": [
						"~",
						"api",
						"auth"
					]
				}
			},
			"response": []
		},
		{
			"name": "logout",
			"event": [
				{
					"listen": "test",
					"script": {
						"exec": [
							"pm.test('token', () => {",
							"    pm.expect(response.code).to.be.eql(200);",
							"    pm.environment.set('token', '');",
							"})",
							""
						],
						"type": "text/javascript",
						"packages": {}
					}
				}
			],
			"request": {
				"auth": {
					"type": "bearer",
					"bearer": [
						{
							"key": "token",
							"value": "{{token}}",
							"type": "string"
						}
					]
				},
				"method": "DELETE",
				"header": [],
				"url": {
					"raw": "https://{{domain}}/~/api/auth",
					"protocol": "https",
					"host": [
						"{{domain}}"
					],
					"path": [
						"~",
						"api",
						"auth"
					]
				}
			},
			"response": []
		},
		{
			"name": "archive",
			"request": {
				"auth": {
					"type": "bearer",
					"bearer": [
						{
							"key": "token",
							"value": "{{token}}",
							"type": "string"
						}
					]
				},
				"method": "PUT",
				"header": [],
				"body": {
					"mode": "raw",
					"raw": "{\n    \"items\": [\n        \"/1.log\",\n        \"/2.log\"\n    ]\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "https://{{domain}}/~/api/archive",
					"protocol": "https",
					"host": [
						"{{domain}}"
					],
					"path": [
						"~",
						"api",
						"archive"
					]
				}
			},
			"response": []
		}
	],
	"auth": {
		"type": "bearer"
	},
	"event": [
		{
			"listen": "prerequest",
			"script": {
				"type": "text/javascript",
				"packages": {},
				"exec": [
					""
				]
			}
		},
		{
			"listen": "test",
			"script": {
				"type": "text/javascript",
				"packages": {},
				"exec": [
					""
				]
			}
		}
	]
}