mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-07 19:08:52 +00:00
updated read me and removed extra space
This commit is contained in:
parent
ef71d50eee
commit
4b41877419
@ -1,21 +1,30 @@
|
|||||||
# Swagger generated server
|
# Go API Server for {{packageName}}
|
||||||
|
|
||||||
|
{{#appDescription}}
|
||||||
|
{{{appDescription}}}
|
||||||
|
{{/appDescription}}
|
||||||
|
|
||||||
## Overview
|
## Overview
|
||||||
This server was generated by the [swagger-codegen](https://github.com/swagger-api/swagger-codegen) project. By using the [OpenAPI-Spec](https://github.com/OAI/OpenAPI-Specification) from a remote server, you can easily generate a server stub. This is an example of building a node.js server.
|
This server was generated by the [swagger-codegen]
|
||||||
|
(https://github.com/swagger-api/swagger-codegen) project.
|
||||||
|
By using the [OpenAPI-Spec](https://github.com/OAI/OpenAPI-Specification) from a remote server, you can easily generate a server stub.
|
||||||
|
-
|
||||||
|
|
||||||
To see how to make this your own, look here:
|
To see how to make this your own, look here:
|
||||||
|
|
||||||
[README](https://github.com/swagger-api/swagger-codegen/blob/master/README.md)
|
[README](https://github.com/swagger-api/swagger-codegen/blob/master/README.md)
|
||||||
|
|
||||||
|
- API version: {{appVersion}}
|
||||||
|
- Build date: {{generatedDate}}
|
||||||
|
{{#infoUrl}}
|
||||||
|
For more information, please visit [{{{infoUrl}}}]({{{infoUrl}}})
|
||||||
|
{{/infoUrl}}
|
||||||
|
|
||||||
|
|
||||||
### Running the server
|
### Running the server
|
||||||
To run the server, follow these simple steps:
|
To run the server, follow these simple steps:
|
||||||
|
|
||||||
```
|
```
|
||||||
|
go run main.go
|
||||||
```
|
```
|
||||||
|
|
||||||
To view the Swagger UI interface:
|
|
||||||
|
|
||||||
```
|
|
||||||
|
|
||||||
```
|
|
||||||
|
@ -16,7 +16,6 @@ type Route struct {
|
|||||||
type Routes []Route
|
type Routes []Route
|
||||||
|
|
||||||
func NewRouter() *mux.Router {
|
func NewRouter() *mux.Router {
|
||||||
|
|
||||||
router := mux.NewRouter().StrictSlash(true)
|
router := mux.NewRouter().StrictSlash(true)
|
||||||
for _, route := range routes {
|
for _, route := range routes {
|
||||||
var handler http.Handler
|
var handler http.Handler
|
||||||
|
@ -1,21 +1,25 @@
|
|||||||
# Swagger generated server
|
# Go API Server for petstoreserver
|
||||||
|
|
||||||
|
This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.
|
||||||
|
|
||||||
## Overview
|
## Overview
|
||||||
This server was generated by the [swagger-codegen](https://github.com/swagger-api/swagger-codegen) project. By using the [OpenAPI-Spec](https://github.com/OAI/OpenAPI-Specification) from a remote server, you can easily generate a server stub. This is an example of building a node.js server.
|
This server was generated by the [swagger-codegen]
|
||||||
|
(https://github.com/swagger-api/swagger-codegen) project.
|
||||||
|
By using the [OpenAPI-Spec](https://github.com/OAI/OpenAPI-Specification) from a remote server, you can easily generate a server stub.
|
||||||
|
-
|
||||||
|
|
||||||
To see how to make this your own, look here:
|
To see how to make this your own, look here:
|
||||||
|
|
||||||
[README](https://github.com/swagger-api/swagger-codegen/blob/master/README.md)
|
[README](https://github.com/swagger-api/swagger-codegen/blob/master/README.md)
|
||||||
|
|
||||||
|
- API version: 1.0.0
|
||||||
|
- Build date: 2016-05-27T09:17:10.992-07:00
|
||||||
|
|
||||||
|
|
||||||
### Running the server
|
### Running the server
|
||||||
To run the server, follow these simple steps:
|
To run the server, follow these simple steps:
|
||||||
|
|
||||||
```
|
```
|
||||||
|
go run main.go
|
||||||
```
|
```
|
||||||
|
|
||||||
To view the Swagger UI interface:
|
|
||||||
|
|
||||||
```
|
|
||||||
|
|
||||||
```
|
|
||||||
|
@ -16,7 +16,6 @@ type Route struct {
|
|||||||
type Routes []Route
|
type Routes []Route
|
||||||
|
|
||||||
func NewRouter() *mux.Router {
|
func NewRouter() *mux.Router {
|
||||||
|
|
||||||
router := mux.NewRouter().StrictSlash(true)
|
router := mux.NewRouter().StrictSlash(true)
|
||||||
for _, route := range routes {
|
for _, route := range routes {
|
||||||
var handler http.Handler
|
var handler http.Handler
|
||||||
|
Loading…
Reference in New Issue
Block a user