2024-03-09 20:54:23 +03:00
{
"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" : {
2024-03-09 21:24:47 +03:00
"auth" : {
"type" : "noauth"
} ,
2024-03-09 20:54:23 +03:00
"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" : {
2024-03-09 21:24:47 +03:00
"raw" : "{{host}}/myspace/user/018e2474-3c09-7606-a55c-f6d129815416" ,
2024-03-09 20:54:23 +03:00
"host" : [
"{{host}}"
] ,
"path" : [
"myspace" ,
"user" ,
2024-03-09 21:24:47 +03:00
"018e2474-3c09-7606-a55c-f6d129815416"
2024-03-09 20:54:23 +03:00
]
}
} ,
"response" : [ ]
} ,
{
"name" : "Login" ,
"request" : {
2024-03-09 21:24:47 +03:00
"auth" : {
"type" : "noauth"
} ,
2024-03-09 20:54:23 +03:00
"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" ,
2024-03-09 21:24:47 +03:00
"value" : "" ,
2024-03-09 20:54:23 +03:00
"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"
}
]
}