Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/harshit-paneri/go-notes-api

REST API of go
https://github.com/harshit-paneri/go-notes-api

Last synced: about 1 month ago
JSON representation

REST API of go

Awesome Lists containing this project

README

        

# GO Notes API

This is a simple API for storing notes.

This application is written in Go.

## Installation
Docker Image : `docker pull harshitpaneri/go-rest-api`

link : https://hub.docker.com/r/harshitpaneri/go-rest-api

## API Endpoints

1) Signup: `POST /signup`

on success: `200 OK`


on failure: `400 Bad Request`

2) Login: `POST /login`

on success: `200 OK`


on failure: `400 Bad Request`

3) Create Note: `POST /notes`

on success: `200 OK`

4) Get Note: `GET /notes/{id}`

on success: `200 OK`

5) Delete Note: `DELETE /notes/`

```json
{
"sid": "session_id",
"id": note_id
}
```
on success: `200 OK`