Struchkov Mark
7c414bae64
The update involves removing user authentication requirements for "Registration" and "Login" in the Postman collection. Additionally, the User ID in the URL for a GET request and the bearer token value have been modified. These changes aim to ensure proper access to the required endpoints.
138 lines
2.7 KiB
JSON
138 lines
2.7 KiB
JSON
{
|
||
"info": {
|
||
"_postman_id": "d3f6e93a-22d2-4b76-9016-598819e821a9",
|
||
"name": "MySpace",
|
||
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
|
||
"_exporter_id": "16442716"
|
||
},
|
||
"item": [
|
||
{
|
||
"name": "REST",
|
||
"item": [
|
||
{
|
||
"name": "Person",
|
||
"item": [
|
||
{
|
||
"name": "Registration",
|
||
"request": {
|
||
"auth": {
|
||
"type": "noauth"
|
||
},
|
||
"method": "POST",
|
||
"header": [],
|
||
"body": {
|
||
"mode": "raw",
|
||
"raw": "{\n \"email\": \"ivanov@example.com\",\n \"firstName\": \"Иван\",\n \"surname\": \"Иванов\",\n \"birthday\": \"1990-12-03\",\n \"biography\": \"Люблю активно проводить время с друзьями\",\n \"city\": \"Урюпинск\",\n \"password\": \"123456789\"\n}",
|
||
"options": {
|
||
"raw": {
|
||
"language": "json"
|
||
}
|
||
}
|
||
},
|
||
"url": {
|
||
"raw": "{{host}}/myspace/user/register",
|
||
"host": [
|
||
"{{host}}"
|
||
],
|
||
"path": [
|
||
"myspace",
|
||
"user",
|
||
"register"
|
||
]
|
||
}
|
||
},
|
||
"response": []
|
||
},
|
||
{
|
||
"name": "Get By Id",
|
||
"request": {
|
||
"method": "GET",
|
||
"header": [],
|
||
"url": {
|
||
"raw": "{{host}}/myspace/user/018e2474-3c09-7606-a55c-f6d129815416",
|
||
"host": [
|
||
"{{host}}"
|
||
],
|
||
"path": [
|
||
"myspace",
|
||
"user",
|
||
"018e2474-3c09-7606-a55c-f6d129815416"
|
||
]
|
||
}
|
||
},
|
||
"response": []
|
||
},
|
||
{
|
||
"name": "Login",
|
||
"request": {
|
||
"auth": {
|
||
"type": "noauth"
|
||
},
|
||
"method": "POST",
|
||
"header": [],
|
||
"body": {
|
||
"mode": "raw",
|
||
"raw": "{\n \"email\": \"ivanov@example.com\",\n \"password\": \"123456789\"\n}",
|
||
"options": {
|
||
"raw": {
|
||
"language": "json"
|
||
}
|
||
}
|
||
},
|
||
"url": {
|
||
"raw": "{{host}}/myspace/user/login",
|
||
"host": [
|
||
"{{host}}"
|
||
],
|
||
"path": [
|
||
"myspace",
|
||
"user",
|
||
"login"
|
||
]
|
||
}
|
||
},
|
||
"response": []
|
||
}
|
||
]
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"auth": {
|
||
"type": "bearer",
|
||
"bearer": [
|
||
{
|
||
"key": "token",
|
||
"value": "",
|
||
"type": "string"
|
||
}
|
||
]
|
||
},
|
||
"event": [
|
||
{
|
||
"listen": "prerequest",
|
||
"script": {
|
||
"type": "text/javascript",
|
||
"exec": [
|
||
""
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"listen": "test",
|
||
"script": {
|
||
"type": "text/javascript",
|
||
"exec": [
|
||
""
|
||
]
|
||
}
|
||
}
|
||
],
|
||
"variable": [
|
||
{
|
||
"key": "host",
|
||
"value": "http://localhost:8080",
|
||
"type": "string"
|
||
}
|
||
]
|
||
} |