⭐️Create your http client wrapper in a few minutes.
⭐️ This package is still in development. We welcome suggestions for changes that will bring it closer to compliance without overly complicating the code, or useful test cases to add to the test suite.
- init project as mvp
- add auth example
- remove panics from
request.go
file - create default exceptions for fail status code
- make better readme
- add request debugger
- write unit tests
- add caching mechanism
- add concurrent request functionality to rooms
- add response normalizer
- make sure struct alignment is in a strict line
Room
Create your clients in a minute
go get -u github.com/WEG-Technology/room
There are many examples in examples folder go look for it.
response, err := room.NewRequest("https://jsonplaceholder.typicode.com/posts/1").Send()
We are going to wrap our base connection struct to get its skills.
All of your request should implement IRequest.
The responses literarily is a DTO of your response of your endpoint.
Your client wrapper should implement IRoom. You can implement your custom interfaces by wrapping base Room struct.
There is an example of this explanation in ./examples/room_example
Currently ./examples
folder is the best place to look for examples.
TODO
TODO
TODO
Please, feel free to add your client to this list.
- Parasut
- ...