Categorygithub.com/DmitriyZhevnov/rest-api
module
1.0.0
Repository: https://github.com/dmitriyzhevnov/rest-api.git
Documentation: pkg.go.dev

# README

The application is implemented in order to consolidate knowledge about the communication of the application and databases, as well as the implementation of a Clean Architecture.

/users* enpoints interact to the PostgreSQL.

/authors* enpoints interact to the MongoDB.

Build & Run (Locally)

  1. Rename .env example file to .env
  2. Run command for build and up application:
make drun
  1. Run command for initialize Postrges database:
make migrate

REST API

EndpointMethodResponse codesDescription
/usersGET200, 500Get list of users
/users/:idGET200, 404, 500Get user by id
/usersPOST201, 422, 500Create user
/users/:idPUT204, 404, 400, 422, 500Update user
/users/:idDELETE204, 404, 500Delete user by id
/authorsGET200, 500Get list of authors
/authors/:idGET200, 404, 500Get author by id
/authorsPOST201, 422, 500Create author
/authors/:idPUT204, 404, 400, 422, 500Update author
/authors/:idDELETE204, 404, 500Delete author by id

# Packages

No description provided by the author
No description provided by the author