Skip to content

Commit

Permalink
[go-server] Add information, where the server runs to generated READM…
Browse files Browse the repository at this point in the history
…E.md (#19141)

* Add information, where the server runs to README.md

* Update samples
  • Loading branch information
timgrein committed Jul 13, 2024
1 parent 8938f9d commit 7b52da5
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
This server was generated by the [openapi-generator]
(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.
-

To see how to make this your own, look here:

Expand All @@ -31,6 +30,8 @@ To run the server, follow these simple steps:
go run main.go
```

The server will be available on `http://localhost:{{serverPort}}`.

To run the server in a docker container
```
docker build --network=host -t {{{packageName}}} .
Expand Down
3 changes: 2 additions & 1 deletion samples/openapi3/server/petstore/go/go-petstore/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]
(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.
-

To see how to make this your own, look here:

Expand All @@ -23,6 +22,8 @@ To run the server, follow these simple steps:
go run main.go
```

The server will be available on `http://localhost:8080`.

To run the server in a docker container
```
docker build --network=host -t petstoreserver .
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ No description provided (generated by Openapi Generator https://github.com/opena
This server was generated by the [openapi-generator]
(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.
-

To see how to make this your own, look here:

Expand All @@ -23,6 +22,8 @@ To run the server, follow these simple steps:
go run main.go
```

The server will be available on `http://localhost:8080`.

To run the server in a docker container
```
docker build --network=host -t petstoreserver .
Expand Down
3 changes: 2 additions & 1 deletion samples/server/petstore/go-api-server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]
(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.
-

To see how to make this your own, look here:

Expand All @@ -23,6 +22,8 @@ To run the server, follow these simple steps:
go run main.go
```

The server will be available on `http://localhost:8080`.

To run the server in a docker container
```
docker build --network=host -t petstoreserver .
Expand Down
3 changes: 2 additions & 1 deletion samples/server/petstore/go-chi-server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]
(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.
-

To see how to make this your own, look here:

Expand All @@ -23,6 +22,8 @@ To run the server, follow these simple steps:
go run main.go
```

The server will be available on `http://localhost:8080`.

To run the server in a docker container
```
docker build --network=host -t petstoreserver .
Expand Down

0 comments on commit 7b52da5

Please sign in to comment.