-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
HTTP API support #32
HTTP API support #32
Conversation
I can send screenshots of my manual tests per route if needed 🎇 |
I was thinking of jest for testing the API wrapper. We did a similar approach on BMC.JS but it is not successful. For the examples folder basically these are the manual tests? |
yes it is sort of a manual test. was gonna ask in discussions if we were going to implement jest, but since you mentioned it, ill try to implement it when im free again |
I'll create an issue regarding automated testing with Jest. Also adding a discussion related to this. |
Hi, @princejoogie did you change how we use the API? If yes, then how to use it? I'm concerned about documentation. |
the only change i made is mentioned in PR description number 1. from positional arguments to object arguments. yes, this change will need to be redocumented in usage. |
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.
Please review my questions on each line. 👌
This is clear to me, basically, the usage now for the API wrapper is OOP? |
@princejoogie did you rename the |
|
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.
All good, as the last request, add the documentation for POST. Then I'll merge this.
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.
These are now approved! I'm happy to merge this now.
@princejoogie next time, use imperative sentences to your commit message. Use |
Finished all HTTP APIs for #11 and fixed bug of #31
NEW CHANGES
requester
and separated each API routeEXAMPLES
src/examples/index.ts
. this file can be executed directly without compiling withnpx ts-node src/examples/index.ts
API_KEY
variable should be changed accordingly as well asSPACE_ID_1
andSPACE_ID_2
SPACE_ID_2
is used insetMapSample
function.