165 lines
3.1 KiB
JSON
165 lines
3.1 KiB
JSON
{
|
|
"info": {
|
|
"name": "boxit",
|
|
"_postman_id": "26f3c55a-11c2-ca80-3f4c-33f71bb609d9",
|
|
"description": "",
|
|
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
|
|
},
|
|
"item": [
|
|
{
|
|
"name": "api/login",
|
|
"request": {
|
|
"auth": {
|
|
"type": "noauth"
|
|
},
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n\t\"username\": \"boxi\",\n\t\"password\": \"Tester11\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "localhost:8080/api/login",
|
|
"host": [
|
|
"localhost"
|
|
],
|
|
"port": "8080",
|
|
"path": [
|
|
"api",
|
|
"login"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "api/register",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n\t\"login\": \"boxi-1\",\n\t\"email\": \"ich@boxi.ch\",\n\t\"password\": \"tester11\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "localhost:8080/api/register",
|
|
"host": [
|
|
"localhost"
|
|
],
|
|
"port": "8080",
|
|
"path": [
|
|
"api",
|
|
"register"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "api/users",
|
|
"request": {
|
|
"auth": {
|
|
"type": "bearer",
|
|
"bearer": [
|
|
{
|
|
"key": "token",
|
|
"value": "Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJib3hpLTEiLCJleHAiOjE1MTY3OTg3NDl9.7bpeijxTEWdzxlde65AH4RMwsgFs1DUHM6ppL778ekDE6NRjITzFV2dlKS9Hj9sT5eRAOlMCCQBL9pqkYg99_Q",
|
|
"type": "string"
|
|
}
|
|
]
|
|
},
|
|
"method": "GET",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": ""
|
|
},
|
|
"url": {
|
|
"raw": "localhost:8080/api/users",
|
|
"host": [
|
|
"localhost"
|
|
],
|
|
"port": "8080",
|
|
"path": [
|
|
"api",
|
|
"users"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "/api/notes",
|
|
"request": {
|
|
"auth": {
|
|
"type": "bearer",
|
|
"bearer": [
|
|
{
|
|
"key": "token",
|
|
"value": "Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJib3hpIiwiZXhwIjoxNTE5ODU0ODg2fQ.AkL8Pr5pBg1dtu4eIzyE8a7qteF74TNEgXLsxdQhJAyB_LSGbk7SODjVT40LUN4A6arP7TqVP8zYCgF-gatYXA",
|
|
"type": "string"
|
|
}
|
|
]
|
|
},
|
|
"method": "GET",
|
|
"header": [],
|
|
"body": {},
|
|
"url": {
|
|
"raw": "localhost:8080/api/notes",
|
|
"host": [
|
|
"localhost"
|
|
],
|
|
"port": "8080",
|
|
"path": [
|
|
"api",
|
|
"notes"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "api/users copy",
|
|
"request": {
|
|
"auth": {
|
|
"type": "bearer",
|
|
"bearer": [
|
|
{
|
|
"key": "token",
|
|
"value": "Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJib3hpLTEiLCJleHAiOjE1MTY3OTg3NDl9.7bpeijxTEWdzxlde65AH4RMwsgFs1DUHM6ppL778ekDE6NRjITzFV2dlKS9Hj9sT5eRAOlMCCQBL9pqkYg99_Q",
|
|
"type": "string"
|
|
}
|
|
]
|
|
},
|
|
"method": "GET",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": ""
|
|
},
|
|
"url": {
|
|
"raw": "localhost:8080/api/users",
|
|
"host": [
|
|
"localhost"
|
|
],
|
|
"port": "8080",
|
|
"path": [
|
|
"api",
|
|
"users"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
}
|
|
]
|
|
} |