mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
259 lines
5.3 KiB
JSON
259 lines
5.3 KiB
JSON
{
|
|
"info": {
|
|
"_postman_id": "8d9cd33a-5881-42c4-b11c-5771a7d2fbb0",
|
|
"name": "WebGuard - APIRest",
|
|
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
|
|
},
|
|
"item": [
|
|
{
|
|
"name": "Auth",
|
|
"item": [
|
|
{
|
|
"name": "SignIn",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "formdata",
|
|
"formdata": [
|
|
{
|
|
"key": "email",
|
|
"value": "admin@admin.com",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"key": "password",
|
|
"value": "123456",
|
|
"type": "text"
|
|
}
|
|
]
|
|
},
|
|
"url": {
|
|
"raw": "http://localhost:8080/api/signin",
|
|
"protocol": "http",
|
|
"host": [
|
|
"localhost"
|
|
],
|
|
"port": "8080",
|
|
"path": [
|
|
"api",
|
|
"signin"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "Status",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "http://localhost:8080/api/status",
|
|
"protocol": "http",
|
|
"host": [
|
|
"localhost"
|
|
],
|
|
"port": "8080",
|
|
"path": [
|
|
"api",
|
|
"status"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "User",
|
|
"item": [
|
|
{
|
|
"name": "Get All",
|
|
"request": {
|
|
"auth": {
|
|
"type": "bearer",
|
|
"bearer": [
|
|
{
|
|
"key": "token",
|
|
"value": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJlbWFpbCI6ImFkbWluQGFkbWluLmNvbSIsImlhdCI6MTYzOTE1NzA3MywiZXhwIjoxNjM5MTU3MzczfQ.V7UbVT-yMXF37oln3qpoJ_vaIqXq9wgWKXdOO_VxM-8",
|
|
"type": "string"
|
|
}
|
|
]
|
|
},
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "http://localhost:8080/api/user",
|
|
"protocol": "http",
|
|
"host": [
|
|
"localhost"
|
|
],
|
|
"port": "8080",
|
|
"path": [
|
|
"api",
|
|
"user"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "Add New",
|
|
"request": {
|
|
"auth": {
|
|
"type": "bearer",
|
|
"bearer": [
|
|
{
|
|
"key": "token",
|
|
"value": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJlbWFpbCI6ImFkbWluQGFkbWluLmNvbSIsImlhdCI6MTYzOTE1NzMzMiwiZXhwIjoxNjM5MTU3NjMyfQ.j4aq5G12MubqXls3PyoKsA36MfEFbOryq9peU6YyziU",
|
|
"type": "string"
|
|
}
|
|
]
|
|
},
|
|
"method": "POST",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "formdata",
|
|
"formdata": [
|
|
{
|
|
"key": "first_name",
|
|
"value": "Edu",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"key": "last_name",
|
|
"value": "Fiorini",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"key": "email",
|
|
"value": "eduardofiorini23@outlook.com",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"key": "password",
|
|
"value": "12345678",
|
|
"type": "text"
|
|
}
|
|
]
|
|
},
|
|
"url": {
|
|
"raw": "http://localhost:8080/api/user",
|
|
"protocol": "http",
|
|
"host": [
|
|
"localhost"
|
|
],
|
|
"port": "8080",
|
|
"path": [
|
|
"api",
|
|
"user"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "Delete By Token ID",
|
|
"request": {
|
|
"auth": {
|
|
"type": "bearer",
|
|
"bearer": [
|
|
{
|
|
"key": "token",
|
|
"value": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJlbWFpbCI6ImFkbWluQGFkbWluLmNvbSIsImlhdCI6MTYzOTE1NzMzMiwiZXhwIjoxNjM5MTU3NjMyfQ.j4aq5G12MubqXls3PyoKsA36MfEFbOryq9peU6YyziU",
|
|
"type": "string"
|
|
}
|
|
]
|
|
},
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "http://localhost:8080/api/user/9ba5ae4f1747ed95b1dc7df6f665ebe7",
|
|
"protocol": "http",
|
|
"host": [
|
|
"localhost"
|
|
],
|
|
"port": "8080",
|
|
"path": [
|
|
"api",
|
|
"user",
|
|
"9ba5ae4f1747ed95b1dc7df6f665ebe7"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "Get By Token ID",
|
|
"request": {
|
|
"auth": {
|
|
"type": "bearer",
|
|
"bearer": [
|
|
{
|
|
"key": "token",
|
|
"value": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJlbWFpbCI6ImFkbWluQGFkbWluLmNvbSIsImlhdCI6MTYzOTE1NzMzMiwiZXhwIjoxNjM5MTU3NjMyfQ.j4aq5G12MubqXls3PyoKsA36MfEFbOryq9peU6YyziU",
|
|
"type": "string"
|
|
}
|
|
]
|
|
},
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "http://localhost:8080/api/user/92f223f92f8d1f95298eba5dd09f53af",
|
|
"protocol": "http",
|
|
"host": [
|
|
"localhost"
|
|
],
|
|
"port": "8080",
|
|
"path": [
|
|
"api",
|
|
"user",
|
|
"92f223f92f8d1f95298eba5dd09f53af"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "Edit By Token ID",
|
|
"request": {
|
|
"method": "PUT",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "formdata",
|
|
"formdata": [
|
|
{
|
|
"key": "first_name",
|
|
"value": "",
|
|
"type": "text",
|
|
"disabled": true
|
|
}
|
|
]
|
|
},
|
|
"url": {
|
|
"raw": "http://localhost:8080/api/user/92f223f92f8d1f95298eba5dd09f53af?first_name=Eduardo",
|
|
"protocol": "http",
|
|
"host": [
|
|
"localhost"
|
|
],
|
|
"port": "8080",
|
|
"path": [
|
|
"api",
|
|
"user",
|
|
"92f223f92f8d1f95298eba5dd09f53af"
|
|
],
|
|
"query": [
|
|
{
|
|
"key": "first_name",
|
|
"value": "Eduardo"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
}
|
|
]
|
|
}
|
|
]
|
|
} |