goswag-books

command module
v0.0.0-...-9867eb1 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2022 License: GPL-3.0 Imports: 12 Imported by: 0

README

GoSwag-Books

Golang backend with Postgres DB

Docker Image

docker pull shiveshojha/simple-books-golang

Prerequisites

Install Go and add it to the PATH.

Steps to get started

  1. go mod init GoSwag-Books
  2. go mod tidy
  3. go run main.go

To Access API Endpoints

  1. http://localhost:8000/swagger/index.html

Swagger UI

swaggerUI-books

Get All Books [GET]

GetBooks-SwaggerUI

Post a Book [POST]

PostBook SwaggerUI

Update a Book [PUT]

UpdateBook SwaggerUI

Delete a Book [DELETE]

DeleteBook SwaggerUI

Docker Image Generation

GoSwag-Books-docker

sudo docker build -t go-swag-books:latest .

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package docs GENERATED BY THE COMMAND ABOVE; DO NOT EDIT This file was generated by swaggo/swag
Package docs GENERATED BY THE COMMAND ABOVE; DO NOT EDIT This file was generated by swaggo/swag
repository

Jump to

Keyboard shortcuts

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