Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Provide complete documentation for generating client #2187
Comments
|
Please, I am 1h in and still haven't found a full non-templated example of how to generate the client.! :) |
Problem statement
Not a bug, but a query and requirement.
As a new go-swagger user, I'm following doc to generate client (https://goswagger.io/generate/client.html). But the doc is too simple and lacks necessary explanation.
For example, what's the imported "github.com/myproject/client/operations" in the sample code. The generated todo-list client code doesn't contain any "operations" directory.
├── client
│ ├── a_todo_list_application_client.go
│ └── todos
│ ├── add_one_parameters.go
│ ├── add_one_responses.go
│ ├── destroy_one_parameters.go
│ ├── destroy_one_responses.go
│ ├── find_todos_parameters.go
│ ├── find_todos_responses.go
│ ├── todos_client.go
│ ├── update_one_parameters.go
│ └── update_one_responses.go
└── models
├── error.go
└── item.go
Can we enhance the doc by providing the steps on how the generated client can interacting with the generated server?
Thanks!