Open sergeyf-QA opened 2 years ago
@sergeyf-QA that's probably a front-end bug, because I got an error output from the console and run it with Insomnia. Everything gone fine.
curl --request POST \
--url https://localhost:5001/api/accounts/ \
--header 'Authorization: Bearer my_token_from_browser' \
--header 'Content-Type: application/json' \
--data '{
"address": "B105, Saraya Avenue building\nP.O. Box 36690\nDubai, United Arab Emirates",
"operatingName": "Tip Cat",
"email": "",
"name": "Tip Cat LLC",
"phone": "+971-4-2940007"
}'
{
"id": 21,
"address": "B105, Saraya Avenue building\nP.O. Box 36690\nDubai, United Arab Emirates",
"avatarUrl": null,
"email": "",
"isActive": true,
"name": "Tip Cat LLC",
"operatingName": "Tip Cat",
"phone": "+971-4-2940007",
"facilities": [
{
"id": 34,
"name": "Default facility",
"address": "",
"accountId": 21,
"avatarUrl": null,
"members": [
{
"id": 57,
"accountId": 21,
"avatarUrl": null,
"email": "kirill.taran@hotmail.com",
"facilityId": 34,
"firstName": "",
"invitationState": "None",
"isActive": true,
"lastName": "",
"memberCode": "00N2",
"qrCodeUrl": "https://s3.eu-central-1.amazonaws.com/tipcat-net/00N2",
"permissions": "Manager"
}
]
}
]
}
How to reproduce:
Actual result: