business_logic
as its name says interacts with http layer to present the data and make requests to user and post clients.datasource
contains the logic for user and posts clients.datasource_models
are the models which requests responses parses the results.service
contains the logic for http serving.service_models
contains the structures that are presented as response bodies.
run go test ./...
run go build
- Build
- Run
./user_posts
- Test using curl, postman or web browser using:
GET http://localhost:8080/v1/user-posts/1