go-rest-api

command module
v0.0.0-...-aec8730 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2020 License: GPL-3.0 Imports: 1 Imported by: 0

README

RESTful API written in GO

PkgGoDev

Installation

We provide you with two ways to install the api.

Installation with docker

docker-compose up

Installation with bash script
  • create a debian10 system with ssh and standard systemtools
  • get a domain name and create dns A record to your WAN IP
  • on your router: create port forwarding for http and https to your debian10 system
  • copy the bash script to your debian10 system and execute it as normal user: bash script

API endpoints

  • GET /books/ list of all books

  • POST /books/ create new book

  • GET /books/:id get single book

  • PUT /books/:id update book

  • DELETE /books/:id delete single book

  • GET /author/ list of all author

  • POST /author/ create new author

  • GET /author/:id get single author

  • PUT /author/:id update author

  • DELETE /author/:id delete single author

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
api
pkg

Jump to

Keyboard shortcuts

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