Skip to content

Tests for web services to build a document with users and posts

Notifications You must be signed in to change notification settings

mnovelodou/user-posts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

User-Posts examples

Directory structure

  • 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.

To Test

run go test ./...

To Build

run go build

To Run

  1. Build
  2. Run ./user_posts
  3. Test using curl, postman or web browser using:

GET http://localhost:8080/v1/user-posts/1

About

Tests for web services to build a document with users and posts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages