[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:
Tim Grein 2024-07-13 10:35:04 +02:00 committed by GitHub
parent 8938f9dea1
commit 7b52da5d57
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 10 additions and 5 deletions

View File

@ -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}}} .

View File

@ -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 .

View File

@ -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 .

View File

@ -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 .

View File

@ -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 .