-
Notifications
You must be signed in to change notification settings - Fork 0
feature/SCKT-6 | Add the option of passing response type parameter to methods #7
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
base: main
Are you sure you want to change the base?
Conversation
README.md
Outdated
| }; | ||
|
|
||
| ApiKitClient.post<User>('/users', newUser) | ||
| ApiKitClient.post<User>('/users', newUser, '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.
I prefer the third argument to be an object, because later it will give us flexibility to add extra options.
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.
Also do we need to have the full known Content-Type like: application/json, application/xml ... ? or default axios config request accept your format ?
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.
default axios config
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.
I am what is the default response type json or 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.
Content-Type: application/json
Response-Type: json or what the user to decide!
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.
@amrography Done! ✅
|
Looks good, did you test it locally ? |
It doesn't matter as the entire |
No description provided.