forked from loafle/openapi-generator-original
[go-server] Add information, where the server runs to generated README.md (#19141)
* Add information, where the server runs to README.md * Update samples
This commit is contained in:
parent
8938f9dea1
commit
7b52da5d57
@ -8,7 +8,6 @@
|
|||||||
This server was generated by the [openapi-generator]
|
This server was generated by the [openapi-generator]
|
||||||
(https://openapi-generator.tech) project.
|
(https://openapi-generator.tech) project.
|
||||||
By using the [OpenAPI-Spec](https://github.com/OAI/OpenAPI-Specification) from a remote server, you can easily generate a server stub.
|
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:
|
||||||
|
|
||||||
@ -31,6 +30,8 @@ To run the server, follow these simple steps:
|
|||||||
go run main.go
|
go run main.go
|
||||||
```
|
```
|
||||||
|
|
||||||
|
The server will be available on `http://localhost:{{serverPort}}`.
|
||||||
|
|
||||||
To run the server in a docker container
|
To run the server in a docker container
|
||||||
```
|
```
|
||||||
docker build --network=host -t {{{packageName}}} .
|
docker build --network=host -t {{{packageName}}} .
|
||||||
|
@ -6,7 +6,6 @@ This is a sample server Petstore server. For this sample, you can use the api ke
|
|||||||
This server was generated by the [openapi-generator]
|
This server was generated by the [openapi-generator]
|
||||||
(https://openapi-generator.tech) project.
|
(https://openapi-generator.tech) project.
|
||||||
By using the [OpenAPI-Spec](https://github.com/OAI/OpenAPI-Specification) from a remote server, you can easily generate a server stub.
|
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:
|
||||||
|
|
||||||
@ -23,6 +22,8 @@ To run the server, follow these simple steps:
|
|||||||
go run main.go
|
go run main.go
|
||||||
```
|
```
|
||||||
|
|
||||||
|
The server will be available on `http://localhost:8080`.
|
||||||
|
|
||||||
To run the server in a docker container
|
To run the server in a docker container
|
||||||
```
|
```
|
||||||
docker build --network=host -t petstoreserver .
|
docker build --network=host -t petstoreserver .
|
||||||
|
@ -6,7 +6,6 @@ No description provided (generated by Openapi Generator https://github.com/opena
|
|||||||
This server was generated by the [openapi-generator]
|
This server was generated by the [openapi-generator]
|
||||||
(https://openapi-generator.tech) project.
|
(https://openapi-generator.tech) project.
|
||||||
By using the [OpenAPI-Spec](https://github.com/OAI/OpenAPI-Specification) from a remote server, you can easily generate a server stub.
|
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:
|
||||||
|
|
||||||
@ -23,6 +22,8 @@ To run the server, follow these simple steps:
|
|||||||
go run main.go
|
go run main.go
|
||||||
```
|
```
|
||||||
|
|
||||||
|
The server will be available on `http://localhost:8080`.
|
||||||
|
|
||||||
To run the server in a docker container
|
To run the server in a docker container
|
||||||
```
|
```
|
||||||
docker build --network=host -t petstoreserver .
|
docker build --network=host -t petstoreserver .
|
||||||
|
@ -6,7 +6,6 @@ This is a sample server Petstore server. For this sample, you can use the api ke
|
|||||||
This server was generated by the [openapi-generator]
|
This server was generated by the [openapi-generator]
|
||||||
(https://openapi-generator.tech) project.
|
(https://openapi-generator.tech) project.
|
||||||
By using the [OpenAPI-Spec](https://github.com/OAI/OpenAPI-Specification) from a remote server, you can easily generate a server stub.
|
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:
|
||||||
|
|
||||||
@ -23,6 +22,8 @@ To run the server, follow these simple steps:
|
|||||||
go run main.go
|
go run main.go
|
||||||
```
|
```
|
||||||
|
|
||||||
|
The server will be available on `http://localhost:8080`.
|
||||||
|
|
||||||
To run the server in a docker container
|
To run the server in a docker container
|
||||||
```
|
```
|
||||||
docker build --network=host -t petstoreserver .
|
docker build --network=host -t petstoreserver .
|
||||||
|
@ -6,7 +6,6 @@ This is a sample server Petstore server. For this sample, you can use the api ke
|
|||||||
This server was generated by the [openapi-generator]
|
This server was generated by the [openapi-generator]
|
||||||
(https://openapi-generator.tech) project.
|
(https://openapi-generator.tech) project.
|
||||||
By using the [OpenAPI-Spec](https://github.com/OAI/OpenAPI-Specification) from a remote server, you can easily generate a server stub.
|
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:
|
||||||
|
|
||||||
@ -23,6 +22,8 @@ To run the server, follow these simple steps:
|
|||||||
go run main.go
|
go run main.go
|
||||||
```
|
```
|
||||||
|
|
||||||
|
The server will be available on `http://localhost:8080`.
|
||||||
|
|
||||||
To run the server in a docker container
|
To run the server in a docker container
|
||||||
```
|
```
|
||||||
docker build --network=host -t petstoreserver .
|
docker build --network=host -t petstoreserver .
|
||||||
|
Loading…
x
Reference in New Issue
Block a user