Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/harshit-paneri/go-notes-api
- Owner: harshit-paneri
- Created: 2023-11-15T19:41:19.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-15T20:17:47.000Z (about 1 year ago)
- Last Synced: 2024-04-18T05:23:24.658Z (9 months ago)
- Language: Go
- Size: 948 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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`