-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(chowly-api-client): send order to chowly ref #2778 #2
Conversation
Pull Request Test Coverage Report for Build 111247423
💛 - Coveralls |
5d39d00
to
e4363e8
Compare
e4363e8
to
ec25c14
Compare
ec25c14
to
e97262e
Compare
e97262e
to
f79ae23
Compare
07d761a
to
7b8f33f
Compare
|
||
async createOrder(order: ICreateOrder): Promise<Order> { | ||
const response: AxiosResponse<ICreateOrder> = await this.client.post<ICreateOrder>(`${this.basePrefix}/orders`, order, { | ||
headers: { 'Content-Type': 'application/json' }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why this method have headers
but getMenu
is missing them?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
getMenu working without headers, but create Order and get Order not working without headers ( checked in postman).
status: 406
"msg": "Content-Type must be application/json"
'special-instructions': string; | ||
'menu-choices': string; | ||
'menu-choices-hash': IMenuChoice; | ||
'customer-name': string | null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe 'customer-name'?: string
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
payload schema is string, but in postman is object and special-instructions when response is string , i dont know if is optional.
ae3989c
to
d8bc27a
Compare
d8bc27a
to
ea4ce7a
Compare
phone: string; | ||
email: string | null; | ||
address1?: string; | ||
address2: string | null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
address1 is optional but address2 is required?
No description provided.