hello-swagger

command module
v0.0.0-...-14890a0 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: BSD-3-Clause Imports: 4 Imported by: 0

README

#demonstrating generating go server code (without main) using go-swagger

Note: once the code is generated, the main function and the handlers implementation is hand coded.

## installing swagger cli 
```
    make check_install
```

## swagger code gen server steps:
1) swagger specs
    see: swagger.yml
2) generate code:
    see: Makefile
3) main code:
    see: main.go
4) create object and add implementation for the handlers:
    see: ./api/handlers/*.go




## references:
- https://www.youtube.com/watch?v=07XhTqE-j8k
- https://github.com/iporsut/todo-list-swagger

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
api
gen
restapi
Package restapi Hello
Package restapi Hello

Jump to

Keyboard shortcuts

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