aboutsummaryrefslogtreecommitdiff
path: root/test/postman.json
diff options
context:
space:
mode:
Diffstat (limited to 'test/postman.json')
-rw-r--r--test/postman.json408
1 files changed, 397 insertions, 11 deletions
diff --git a/test/postman.json b/test/postman.json
index 6d8541b..1559ea1 100644
--- a/test/postman.json
+++ b/test/postman.json
@@ -2,7 +2,7 @@
"variables": [],
"info": {
"name": "JH",
- "_postman_id": "d9fad1ce-92af-fc2c-ff74-074fc681c7ee",
+ "_postman_id": "c78e805a-429f-8ed8-f523-6bfab655c397",
"description": "",
"schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json"
},
@@ -80,7 +80,8 @@
"key": "userfile",
"description": "",
"type": "file",
- "src": "checker_black.jpg"
+ "src": "checker_black.jpg",
+ "value": ""
}
]
},
@@ -179,7 +180,10 @@
"description": ""
}
],
- "body": {},
+ "body": {
+ "mode": "raw",
+ "raw": ""
+ },
"description": ""
},
"response": []
@@ -191,9 +195,9 @@
"method": "GET",
"header": [
{
- "key": "",
- "value": "",
- "disabled": true
+ "key": "Authorization",
+ "value": "Bearer {{access_token}}",
+ "description": ""
}
],
"body": {
@@ -217,7 +221,10 @@
"disabled": true
}
],
- "body": {},
+ "body": {
+ "mode": "raw",
+ "raw": ""
+ },
"description": ""
},
"response": []
@@ -235,7 +242,10 @@
"disabled": true
}
],
- "body": {},
+ "body": {
+ "mode": "raw",
+ "raw": ""
+ },
"description": ""
},
"response": []
@@ -252,7 +262,10 @@
"description": ""
}
],
- "body": {},
+ "body": {
+ "mode": "raw",
+ "raw": ""
+ },
"description": ""
},
"response": []
@@ -296,7 +309,10 @@
"url": "{{host}}/",
"method": "GET",
"header": [],
- "body": {},
+ "body": {
+ "mode": "raw",
+ "raw": ""
+ },
"description": ""
},
"response": []
@@ -313,7 +329,10 @@
"description": ""
}
],
- "body": {},
+ "body": {
+ "mode": "raw",
+ "raw": ""
+ },
"description": ""
},
"response": []
@@ -342,6 +361,373 @@
"description": ""
},
"response": []
+ },
+ {
+ "name": "/log",
+ "request": {
+ "url": "{{host}}/{{endpoint}}/log",
+ "method": "POST",
+ "header": [
+ {
+ "key": "Authorization",
+ "value": "Bearer {{access_token}}",
+ "description": ""
+ },
+ {
+ "key": "Content-Type`",
+ "value": "application/json",
+ "description": ""
+ },
+ {
+ "key": "Content-Type",
+ "value": "application/json",
+ "description": ""
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": "[{\n\t\"component\": \"anything\",\n\t\"level\": \"info\",\n\t\"value\": \"1000\"\n}]"
+ },
+ "description": ""
+ },
+ "response": []
+ },
+ {
+ "name": "/properties",
+ "request": {
+ "url": {
+ "raw": "{{host}}/{{endpoint}}/properties?action=update",
+ "host": [
+ "{{host}}"
+ ],
+ "path": [
+ "{{endpoint}}",
+ "properties"
+ ],
+ "query": [
+ {
+ "key": "action",
+ "value": "update",
+ "equals": true,
+ "description": ""
+ }
+ ],
+ "variable": []
+ },
+ "method": "POST",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json",
+ "description": ""
+ },
+ {
+ "key": "Authorization",
+ "value": "Bearer {{access_token}}",
+ "description": ""
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": "[{\n\t\"id\": \"project_example\",\n\t\"value\": 10\n}]"
+ },
+ "description": ""
+ },
+ "response": []
+ },
+ {
+ "name": "/user_privileges",
+ "request": {
+ "url": "{{host}}/{{endpoint}}/user_privileges",
+ "method": "GET",
+ "header": [
+ {
+ "key": "Authorization",
+ "value": "Bearer {{access_token}}",
+ "description": ""
+ }
+ ],
+ "body": {},
+ "description": ""
+ },
+ "response": []
+ },
+ {
+ "name": "/users",
+ "request": {
+ "url": "{{host}}/{{endpoint}}/users",
+ "method": "GET",
+ "header": [
+ {
+ "key": "Authorization",
+ "value": "Bearer {{access_token}}",
+ "description": ""
+ }
+ ],
+ "body": {},
+ "description": ""
+ },
+ "response": []
+ },
+ {
+ "name": "/users/:username",
+ "request": {
+ "url": "{{host}}/{{endpoint}}/users/{{dummy_admin_username}}",
+ "method": "GET",
+ "header": [
+ {
+ "key": "Authorization",
+ "value": "Bearer {{access_token}}",
+ "description": ""
+ }
+ ],
+ "body": {},
+ "description": ""
+ },
+ "response": []
+ },
+ {
+ "name": "/users/:username?action=create",
+ "request": {
+ "url": {
+ "raw": "{{host}}/{{endpoint}}/users/{{new_username}}?action=create",
+ "host": [
+ "{{host}}"
+ ],
+ "path": [
+ "{{endpoint}}",
+ "users",
+ "{{new_username}}"
+ ],
+ "query": [
+ {
+ "key": "action",
+ "value": "create",
+ "equals": true,
+ "description": ""
+ }
+ ],
+ "variable": []
+ },
+ "method": "POST",
+ "header": [
+ {
+ "key": "Authorization",
+ "value": "Bearer {{access_token}}",
+ "description": ""
+ },
+ {
+ "key": "Content-Type",
+ "value": "application/json",
+ "description": ""
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n\t\"privileges\": [],\n\t\"password\": \"newPass\"\n}"
+ },
+ "description": ""
+ },
+ "response": []
+ },
+ {
+ "name": "/users/:username?action=update",
+ "request": {
+ "url": {
+ "raw": "{{host}}/{{endpoint}}/users/{{new_username}}?action=update",
+ "host": [
+ "{{host}}"
+ ],
+ "path": [
+ "{{endpoint}}",
+ "users",
+ "{{new_username}}"
+ ],
+ "query": [
+ {
+ "key": "action",
+ "value": "update",
+ "equals": true,
+ "description": ""
+ }
+ ],
+ "variable": []
+ },
+ "method": "POST",
+ "header": [
+ {
+ "key": "Authorization",
+ "value": "Bearer {{access_token}}",
+ "description": ""
+ },
+ {
+ "key": "Content-Type",
+ "value": "application/json",
+ "description": ""
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n\t\"password\": \"newPass2\"\n}"
+ },
+ "description": ""
+ },
+ "response": []
+ },
+ {
+ "name": "/users/:username?action=delete",
+ "request": {
+ "url": {
+ "raw": "{{host}}/{{endpoint}}/users/{{new_username}}?action=delete",
+ "host": [
+ "{{host}}"
+ ],
+ "path": [
+ "{{endpoint}}",
+ "users",
+ "{{new_username}}"
+ ],
+ "query": [
+ {
+ "key": "action",
+ "value": "delete",
+ "equals": true,
+ "description": ""
+ }
+ ],
+ "variable": []
+ },
+ "method": "POST",
+ "header": [
+ {
+ "key": "Authorization",
+ "value": "Bearer {{access_token}}",
+ "description": ""
+ },
+ {
+ "key": "Content-Type",
+ "value": "application/json",
+ "description": ""
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": ""
+ },
+ "description": ""
+ },
+ "response": []
+ },
+ {
+ "name": "/users/:username/properties",
+ "request": {
+ "url": "{{host}}/{{endpoint}}/users/{{new_username}}/properties",
+ "method": "GET",
+ "header": [
+ {
+ "key": "Authorization",
+ "value": "Bearer {{access_token}}",
+ "description": ""
+ },
+ {
+ "key": "Content-Type",
+ "value": "application/json",
+ "description": "",
+ "disabled": true
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": ""
+ },
+ "description": ""
+ },
+ "response": []
+ },
+ {
+ "name": "/current_user",
+ "request": {
+ "url": "{{host}}/{{endpoint}}/current_user",
+ "method": "GET",
+ "header": [
+ {
+ "key": "Authorization",
+ "value": "Bearer {{access_token}}",
+ "description": ""
+ },
+ {
+ "key": "Content-Type",
+ "value": "application/json",
+ "description": "",
+ "disabled": true
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": ""
+ },
+ "description": ""
+ },
+ "response": []
+ },
+ {
+ "name": "/current_user",
+ "request": {
+ "url": "{{host}}/{{endpoint}}/current_user",
+ "method": "POST",
+ "header": [
+ {
+ "key": "Authorization",
+ "value": "Bearer {{access_token}}",
+ "description": ""
+ },
+ {
+ "key": "Content-Type",
+ "value": "application/json",
+ "description": ""
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n\t\"password\": {\n\t\t\"old\": \"pass\",\n\t\t\"new\": \"pass2\"\n\t}\n}"
+ },
+ "description": ""
+ },
+ "response": []
+ },
+ {
+ "name": "/projects/:project_name",
+ "request": {
+ "url": "{{host}}/{{endpoint}}/projects/{{dummy_project}}",
+ "method": "GET",
+ "header": [
+ {
+ "key": "Authorization",
+ "value": "Bearer {{access_token}}",
+ "description": ""
+ }
+ ],
+ "body": {},
+ "description": ""
+ },
+ "response": []
+ },
+ {
+ "name": "/projects/:project_name/properties",
+ "request": {
+ "url": "{{host}}/{{endpoint}}/projects/{{dummy_project}}/properties",
+ "method": "GET",
+ "header": [
+ {
+ "key": "Authorization",
+ "value": "Bearer {{access_token}}",
+ "description": ""
+ }
+ ],
+ "body": {},
+ "description": ""
+ },
+ "response": []
}
]
},