UpdateBusinessResponseDto
Success Value
Business Response
Business Id
Business Name
phone number
website
address
city
description
state
postal code
country
updated By
locaitonId
Created By
Creation Time
Last updation time
{
"success": true,
"buiseness": {
"id": "63771dcac1116f0e21de8e12",
"name": "Microsoft",
"phone": "string",
"email": "abc@microsoft.com",
"website": "microsoft.com",
"address": "string",
"city": "string",
"description": "string",
"state": "string",
"postalCode": "string",
"country": "united states",
"updatedBy": {},
"locationId": "string",
"createdBy": {},
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
}
BadRequestDTO
{
"statusCode": 400,
"message": "Bad Request"
}
UnauthorizedDTO
{
"statusCode": 401,
"message": "Invalid token: access token is invalid",
"error": "Unauthorized"
}
BusinessDto
Business Id
Business Name
phone number
website
address
city
description
state
postal code
country
updated By
locaitonId
Created By
Creation Time
Last updation time
{
"id": "63771dcac1116f0e21de8e12",
"name": "Microsoft",
"phone": "string",
"email": "abc@microsoft.com",
"website": "microsoft.com",
"address": "string",
"city": "string",
"description": "string",
"state": "string",
"postalCode": "string",
"country": "united states",
"updatedBy": {},
"locationId": "string",
"createdBy": {},
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
GetBusinessByLocationResponseDto
Business Response
Business Id
Business Name
phone number
website
address
city
description
state
postal code
country
updated By
locaitonId
Created By
Creation Time
Last updation time
{
"businesses": [
{
"id": "63771dcac1116f0e21de8e12",
"name": "Microsoft",
"phone": "string",
"email": "abc@microsoft.com",
"website": "microsoft.com",
"address": "string",
"city": "string",
"description": "string",
"state": "string",
"postalCode": "string",
"country": "united states",
"updatedBy": {},
"locationId": "string",
"createdBy": {},
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
]
}
CreateBusinessDto
{
"name": "Microsoft",
"locationId": "5DP4iH6HLkQsiKESj6rh",
"phone": "+18832327657",
"email": "john@deo.com",
"website": "www.xyz.com",
"address": "street adress",
"city": "new york",
"postalCode": "12312312",
"state": "new york",
"country": "us",
"description": "business description"
}
UpdateBusinessResponseDto
Success Value
Business Response
Business Id
Business Name
phone number
website
address
city
description
state
postal code
country
updated By
locaitonId
Created By
Creation Time
Last updation time
{
"success": true,
"buiseness": {
"id": "63771dcac1116f0e21de8e12",
"name": "Microsoft",
"phone": "string",
"email": "abc@microsoft.com",
"website": "microsoft.com",
"address": "string",
"city": "string",
"description": "string",
"state": "string",
"postalCode": "string",
"country": "united states",
"updatedBy": {},
"locationId": "string",
"createdBy": {},
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
}
UnprocessableDTO
{
"statusCode": 422,
"message": [
"Unprocessable Entity"
],
"error": "Unprocessable Entity"
}
UpdateBusinessDto
{
"name": "Microsoft",
"phone": "+18832327657",
"email": "john@deo.com",
"postalCode": "12312312",
"website": "www.xyz.com",
"address": "street adress",
"state": "new york",
"city": "new york",
"country": "us",
"description": "business description"
}
DeleteBusinessResponseDto
Success value
{
"success": true
}
GetBusinessByIdResponseDto
Business Response
Business Id
Business Name
phone number
website
address
city
description
state
postal code
country
updated By
locaitonId
Created By
Creation Time
Last updation time
{
"business": {
"id": "63771dcac1116f0e21de8e12",
"name": "Microsoft",
"phone": "string",
"email": "abc@microsoft.com",
"website": "microsoft.com",
"address": "string",
"city": "string",
"description": "string",
"state": "string",
"postalCode": "string",
"country": "united states",
"updatedBy": {},
"locationId": "string",
"createdBy": {},
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
}