go-notes

module
v0.0.0-...-7504a72 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 7, 2020 License: MIT

README

Simple API built with golang

API

  • POST /notes - add a note
type Note struct {
	ID          uint64 `json:"id"`  // read only
	Title       string `json:"title"`
	Description string `json:"description"`
}
  • GET /notes/{noteID} - get a single note

  • GET /notes - get all notes

  • PUT /notes/{noteID} - edit note

type Note struct {
	ID          uint64 `json:"id"`  // read only
	Title       string `json:"title"`
	Description string `json:"description"`
}
  • DELETE /notes/{noteID} - delete note

Development

docker-compose up

Testing

make test

Directories

Path Synopsis
api
cmd
api

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL