curl -X POST https dev dmigom ru api v2 auth verify -H Accept applicat

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
curl -X POST \
https://dev.dmigom.ru/api/v2/auth/verify \
-H 'Accept: application/json' \
-H 'Cache-Control: no-cache' \
-H 'Connection: keep-alive' \
-H 'Content-Type: application/json' \
-H 'Host: dev.dmigom.ru' \
-H 'Postman-Token: e33a88d8-4c1e-4577-9bd7-6d823b530deb,78d0dbdd-cdc4-4254-9f2e-0d635489b0ab' \
-H 'User-Agent: PostmanRuntime/7.11.0' \
-H 'accept-encoding: gzip, deflate' \
-H 'cache-control: no-cache' \
-H 'content-length: 148' \
-d '{
"firstname": "Руслан",
"surname": "Павлов",
"patronymic": "Владиславович",
"phone": "+79614484934"
}'
{
"success": true,
"data": {
"user_exists": true,
"registration_phase": "3"
}
}
curl -X POST \
https://dev.dmigom.ru/api/v2/auth/registration/finish \
-H 'Accept: application/json' \
-H 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczpcL1wvZGV2LmRtaWdvbS5ydVwvYXBpXC92MlwvYXV0aFwvbG9naW4iLCJpYXQiOjE1NTYwNDE2NDMsImV4cCI6MTU1NjA0NTI0MywibmJmIjoxNTU2MDQxNjQzLCJqdGkiOiJobjhGWnpJZnRxdmFicUZuIiwic3ViIjoyNTUsInBydiI6IjY5MTJlZWNkNDdjNzkyNmViZDY2MTUyMmUxYWRmNjU3NDYwOGRkYWQifQ.7ZzRD9HZJ5J-pZvoBN93pA8TWvbaOVO2vNhpWXWF63c' \
-H 'Cache-Control: no-cache' \
-H 'Connection: keep-alive' \
-H 'Content-Type: application/json' \
-H 'Host: dev.dmigom.ru' \
-H 'Postman-Token: 83f82316-0a02-469b-9da6-f3094a06eae8,d077f9b5-d09e-46e7-8bf9-8550f61baeb7' \
-H 'User-Agent: PostmanRuntime/7.11.0' \
-H 'accept-encoding: gzip, deflate' \
-H 'cache-control: no-cache' \
-H 'content-length: '
{
"success": false,
"error": {
"message": "Bad Request",
"data": [],
"localized_message": "Уже имеется анкета"
}
}