Initial commit
This commit is contained in:
5
mocks/api/v2/dalan/identity/sessions/DELETE.mock
Normal file
5
mocks/api/v2/dalan/identity/sessions/DELETE.mock
Normal file
@@ -0,0 +1,5 @@
|
||||
HTTP/2 200
|
||||
access-control-allow-origin: *
|
||||
access-control-allow-methods: GET, POST, PUT, PATCH, DELETE
|
||||
access-control-allow-headers: Origin, X-Requested-With, Content-Type, Accept, Authorization
|
||||
Access-Control-Allow-Headers: *
|
||||
6
mocks/api/v2/dalan/identity/sessions/OPTIONS.mock
Normal file
6
mocks/api/v2/dalan/identity/sessions/OPTIONS.mock
Normal file
@@ -0,0 +1,6 @@
|
||||
HTTP/2 200
|
||||
access-control-allow-origin: *
|
||||
access-control-allow-methods: GET, POST, PUT, PATCH, DELETE
|
||||
access-control-allow-headers: Origin, X-Requested-With, Content-Type, Accept, Authorization
|
||||
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
HTTP/2 400
|
||||
content-type: application/json
|
||||
access-control-allow-origin: *
|
||||
access-control-allow-methods: GET, POST, PUT, PATCH, DELETE
|
||||
access-control-allow-headers: Origin, X-Requested-With, Content-Type, Accept, Authorization
|
||||
|
||||
|
||||
{"error":"Email is missing, Password is missing, otp_code is missing, recaptcha response is missing"}
|
||||
@@ -0,0 +1,14 @@
|
||||
HTTP/2 200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
access-control-allow-origin: *
|
||||
access-control-allow-methods: GET, POST, PUT, PATCH, DELETE
|
||||
access-control-allow-headers: Origin, X-Requested-With, Content-Type, Accept, Authorization
|
||||
|
||||
{
|
||||
"email": "accountant@peatio.tech",
|
||||
"level": 3,
|
||||
"otp": false,
|
||||
"role": "accountant",
|
||||
"state": "active",
|
||||
"uid": "ID787E387912"
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
HTTP/2 200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
access-control-allow-origin: *
|
||||
access-control-allow-methods: GET, POST, PUT, PATCH, DELETE
|
||||
access-control-allow-headers: Origin, X-Requested-With, Content-Type, Accept, Authorization
|
||||
|
||||
{
|
||||
"username": "Turbo3000",
|
||||
"email": "admin@barong.io",
|
||||
"level": 3,
|
||||
"otp": false,
|
||||
"role": "admin",
|
||||
"state": "active",
|
||||
"uid": "ID787E383938"
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
HTTP/2 200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
access-control-allow-origin: *
|
||||
access-control-allow-methods: GET, POST, PUT, PATCH, DELETE
|
||||
access-control-allow-headers: Origin, X-Requested-With, Content-Type, Accept, Authorization
|
||||
|
||||
{
|
||||
"email": "compliance@peatio.tech",
|
||||
"level": 3,
|
||||
"otp": false,
|
||||
"role": "compliance",
|
||||
"state": "active",
|
||||
"uid": "ID787E383912"
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
HTTP/2 403
|
||||
Content-Type: application/json; charset=utf-8
|
||||
access-control-allow-origin: *
|
||||
access-control-allow-methods: GET, POST, PUT, PATCH, DELETE
|
||||
access-control-allow-headers: Origin, X-Requested-With, Content-Type, Accept, Authorization
|
||||
|
||||
{"error":"The account has enabled 2FA but OTP code is missing"}
|
||||
@@ -0,0 +1,15 @@
|
||||
HTTP/2 200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
access-control-allow-origin: *
|
||||
access-control-allow-methods: GET, POST, PUT, PATCH, DELETE
|
||||
access-control-allow-headers: Origin, X-Requested-With, Content-Type, Accept, Authorization
|
||||
|
||||
{
|
||||
"username": "Turbo3000",
|
||||
"email": "john@barong.io",
|
||||
"level": 3,
|
||||
"otp": true,
|
||||
"role": "member",
|
||||
"state": "active",
|
||||
"uid": "ID787E383938"
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
HTTP/2 200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
access-control-allow-origin: *
|
||||
access-control-allow-methods: GET, POST, PUT, PATCH, DELETE
|
||||
access-control-allow-headers: Origin, X-Requested-With, Content-Type, Accept, Authorization
|
||||
|
||||
{
|
||||
"email": "superadmin@peatio.tech",
|
||||
"level": 3,
|
||||
"otp": false,
|
||||
"role": "superadmin",
|
||||
"state": "active",
|
||||
"uid": "ID787E383012"
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
HTTP/2 200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
access-control-allow-origin: *
|
||||
access-control-allow-methods: GET, POST, PUT, PATCH, DELETE
|
||||
access-control-allow-headers: Origin, X-Requested-With, Content-Type, Accept, Authorization
|
||||
|
||||
{
|
||||
"email": "support@peatio.tech",
|
||||
"level": 3,
|
||||
"otp": false,
|
||||
"role": "support",
|
||||
"state": "active",
|
||||
"uid": "ID787E383912"
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
HTTP/2 200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
access-control-allow-origin: *
|
||||
access-control-allow-methods: GET, POST, PUT, PATCH, DELETE
|
||||
access-control-allow-headers: Origin, X-Requested-With, Content-Type, Accept, Authorization
|
||||
|
||||
{
|
||||
"email": "technical@peatio.tech",
|
||||
"level": 3,
|
||||
"otp": false,
|
||||
"role": "technical",
|
||||
"state": "active",
|
||||
"uid": "ID787E383912"
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
HTTP/2 200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
access-control-allow-origin: *
|
||||
access-control-allow-methods: GET, POST, PUT, PATCH, DELETE
|
||||
access-control-allow-headers: Origin, X-Requested-With, Content-Type, Accept, Authorization
|
||||
|
||||
{
|
||||
"email": "toweradmin@peatio.tech",
|
||||
"level": 3,
|
||||
"otp": false,
|
||||
"role": "admin",
|
||||
"state": "active",
|
||||
"uid": "ID787E383912"
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
HTTP/2 200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
access-control-allow-origin: *
|
||||
access-control-allow-methods: GET, POST, PUT, PATCH, DELETE
|
||||
access-control-allow-headers: Origin, X-Requested-With, Content-Type, Accept, Authorization
|
||||
|
||||
{
|
||||
"username": "Turbo3000",
|
||||
"email": "user1@peatio.tech",
|
||||
"level": 1,
|
||||
"otp": false,
|
||||
"role": "member",
|
||||
"state": "active",
|
||||
"uid": "ID787E383938"
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
HTTP/2 200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
access-control-allow-origin: *
|
||||
access-control-allow-methods: GET, POST, PUT, PATCH, DELETE
|
||||
access-control-allow-headers: Origin, X-Requested-With, Content-Type, Accept, Authorization
|
||||
|
||||
{
|
||||
"username": "Turbo3000",
|
||||
"email": "user2@peatio.tech",
|
||||
"level": 2,
|
||||
"otp": false,
|
||||
"role": "member",
|
||||
"state": "active",
|
||||
"uid": "ID787E383938"
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
HTTP/2 401
|
||||
Content-Type: application/json; charset=utf-8
|
||||
access-control-allow-origin: *
|
||||
access-control-allow-methods: GET, POST, PUT, PATCH, DELETE
|
||||
access-control-allow-headers: Origin, X-Requested-With, Content-Type, Accept, Authorization
|
||||
|
||||
|
||||
{"error":"Invalid Email or Password"}
|
||||
82
mocks/api/v2/dalan/identity/sessions/POST.mock
Normal file
82
mocks/api/v2/dalan/identity/sessions/POST.mock
Normal file
@@ -0,0 +1,82 @@
|
||||
HTTP/2 200
|
||||
access-control-allow-origin: *
|
||||
access-control-allow-methods: GET, POST, PUT, PATCH, DELETE
|
||||
access-control-allow-headers: Origin, X-Requested-With, Content-Type, Accept, Authorization
|
||||
|
||||
{
|
||||
"email":"admin@barong.io",
|
||||
"uid":"ID489F525B1D",
|
||||
"role":"admin",
|
||||
"level": 1,
|
||||
"otp":true,
|
||||
"state":"active",
|
||||
"referral_uid":null,
|
||||
"data":"{\"language\":\"en\"}",
|
||||
"created_at":"2019-10-30T11:15:07Z",
|
||||
"updated_at":"2020-01-13T11:59:31Z",
|
||||
"labels":[
|
||||
{"key":"email","value":"verified","scope":"private","created_at":"2019-10-30T11:15:07Z","updated_at":"2019-10-30T11:15:07Z"},
|
||||
{"key":"phone","value":"","scope":"private","created_at":"2019-12-24T12:05:26Z","updated_at":"2019-12-24T12:05:26Z"},
|
||||
{"key":"profile","value":"","scope":"private","created_at":"2020-01-15T19:33:17Z","updated_at":"2020-01-15T19:33:17Z"},
|
||||
{"key":"document","value":"pending","scope":"private","created_at":"2020-01-15T19:34:04Z","updated_at":"2020-01-15T19:34:04Z"}
|
||||
],
|
||||
"phones":[
|
||||
{"country":"UA","number":"380504403893","validated_at":"2019-12-24T12:05:26.000Z"}
|
||||
],
|
||||
"data_storages":[],
|
||||
"csrf_token": "wddwew33r",
|
||||
"profiles": [
|
||||
{
|
||||
"address": null,
|
||||
"city": null,
|
||||
"country": null,
|
||||
"dob": "1999-05-21",
|
||||
"first_name": "Louisa",
|
||||
"last_name": "Break",
|
||||
"postcode": null,
|
||||
"state": "verified",
|
||||
"updated_at":"2019-01-10T17:06:37Z",
|
||||
"created_at":"2019-01-10T17:06:37Z",
|
||||
"metadata": "{\"nationality\": \"Ukrainian\"}"
|
||||
},
|
||||
{
|
||||
"address": null,
|
||||
"city": null,
|
||||
"country": null,
|
||||
"dob": "1999-05-21",
|
||||
"first_name": "Marianna",
|
||||
"last_name": "The Best",
|
||||
"postcode": null,
|
||||
"state": "verified",
|
||||
"updated_at":"2019-02-10T17:06:37Z",
|
||||
"created_at":"2019-02-10T17:06:37Z",
|
||||
"metadata": "{\"nationality\": \"Ukrainian\"}"
|
||||
},
|
||||
{
|
||||
"address": null,
|
||||
"city": null,
|
||||
"country": null,
|
||||
"dob": "1999-05-21",
|
||||
"first_name": "Rejected",
|
||||
"last_name": "The Best",
|
||||
"postcode": null,
|
||||
"state": "rejected",
|
||||
"updated_at":"2019-02-10T17:06:37Z",
|
||||
"created_at":"2019-02-10T17:06:37Z",
|
||||
"metadata": "{\"nationality\": \"Ukrainian\"}"
|
||||
},
|
||||
{
|
||||
"address": null,
|
||||
"city": null,
|
||||
"country": null,
|
||||
"dob": "1999-05-21",
|
||||
"first_name": "Antoinette",
|
||||
"last_name": "Ferguson",
|
||||
"postcode": null,
|
||||
"state": "verified",
|
||||
"updated_at":"2019-03-10T17:06:37Z",
|
||||
"created_at":"2019-03-10T17:06:37Z",
|
||||
"metadata": "{\"nationality\": \"Ukrainian\"}"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user