product-api-withswagger

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

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

Go to latest
Published: Aug 11, 2022 License: MIT Imports: 12 Imported by: 0

README

Product API Gorilla Toolkit

Usage

  1. Get Products API-
http://localhost:9090/
  1. Add a Product
http://localhost:9090/
Body-
{"id":3,"name":"tea","description":"A Tea","price":111.21,"sku":"ssdff-sfff-sfff"}
  1. Update a Product
http://localhost:9090/3
Body-
{"id":3,"name":"tea","description":"A Tea of new type","price":122.21,"sku":"ssdff-sfff-sfff"}

Swagger Documentation

  • With Docker on Windows.
docker pull quay.io/goswagger/swagger
./swagger.bat
  • Without Docker on Windows.
./make.bat
  • Without Docker on Linux/Mac.
./make.bat

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package Product API.
Package Product API.

Jump to

Keyboard shortcuts

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