github.com/thetreep/go-swagger@v0.0.0-20240223100711-35af64f14f01/examples/todo-list-strict/README.md (about)

     1  # To do list example
     2  
     3  Shows a fully loaded server that by default listens on a unix, http and https socket.
     4  
     5  You can run just the http listener for quick testing:
     6  
     7  ```shellsession
     8  go run ./cmd/todo-list-server/main.go --scheme http
     9  ```
    10  
    11  ## Run full server
    12  
    13  To run the full server you need to build the binary and run it with sudo enabled.
    14  
    15  ```shellsession
    16  go build ./cmd/todo-list-server
    17  sudo ./todo-list-server --tls-certificate mycert1.crt --tls-key mycert1.key
    18  ```
    19  
    20  ## Generate code
    21  
    22  ```shellsession
    23  swagger generate server -A todo-list -f ./swagger.yml --strict-responders --regenerate-configureapi
    24  ```