Skip to content

rakib32/golang-api-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Test API

Run Project in local machine

./run.sh

Endpoints

  1. Fetch all Persons

    URI: /api/v1/persons, METHOD: GET

  2. Fetch a Person

    URI: /api/v1/persons/<id>, METHOD: GET

  3. Delete a Person

    URI: /api/v1/persons/<id>, METHOD: DELETE

  4. Update a Person

    URI: /api/v1/persons/<id>, METHOD: PUT

  5. Create a Person

    URI: /api/v1/persons, METHOD: POST

Note

  1. Run the SQL migration under db->schema folder
  2. Used docker-compose for local development