Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 721 Bytes

README.md

File metadata and controls

33 lines (22 loc) · 721 Bytes

What is this?

This repository contains code to demonstrate a basic REST API written in Go language and PostgreSQL.

The APIs lets you create and save Notes.

Requirements

How To Run

The project uses Docker Compose

  • docker-compose up

APIs

Note

Needs Auth Bearer Token in Headers.

  • POST("/note") - Create Note
  • GET("/note/:id") - Get a Note
  • PUT("/note/:id") - Update a Note
  • DELETE("/note/:id") - Delete a Note

User

  • POST("/user") - Create a User
  • POST("/user/verify") - Verify and Generate a Auth Token