Skip to content

Commit 5e9df32

Browse files
spelling fixes
1 parent a9ef5d0 commit 5e9df32

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

api-first-approach/files/create_pet.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Finally, test the REST service.
22

3-
Open a new terminal and type in the folling command to make a POST request and create a new pet:
3+
Open a new terminal and type in the following command to make a POST request and create a new pet:
44

55
curl -X POST -H "Content-Type: application/json" -d '{"name": "Alex", "tag": "Dog"}' http://localhost:8080/pets
66

api-first-approach/index.asciidoc

+3-3
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ To create the REST service with the OpenAPI generator, you need the OpenAPI spec
4444

4545
For this tutorial we will use a predefined API called 'Petstore'. You can find this and some more examples on the [GitHub repository of OpenAPI-Specification](https://github.com/OAI/OpenAPI-Specification/tree/main/schemas).
4646

47-
So create a file `petstore-api.yaml` in the folder `src/main/resources` of the Quarkus project.
47+
So, create a file `petstore-api.yaml` in the folder `src/main/resources` of the Quarkus project.
4848
[step]
4949
== Create the REST API specification
5050
--
@@ -68,7 +68,7 @@ Now every time you build the project, the plugin will generate the correspong Ja
6868
The OpenAPI generator is able to generate full REST services. Since we used the option '<interfaceOnly>true</interfaceOnly>', only the interface for this API is generated.
6969
This allows us to create the REST service and implement the logic in it ourselves.
7070

71-
So create a class `PetstoreRestService` which implements the API generated from the generator plugin. Use the code shown below.
71+
So, create a class `PetstoreRestService` which implements the API generated from the generator plugin. Use the code shown below.
7272

7373
[step]
7474
== Create the REST service
@@ -82,7 +82,7 @@ This code uses a simple list to store the entities. You can, of course, use more
8282
====
8383
Now build and run the application.
8484

85-
We pass the option `quarkus.http.host=0.0.0.0` here so that the service is available in Katacoda from outside. For local testing you do not need this.
85+
We pass the option `quarkus.http.host=0.0.0.0` here so that the service is available in Katacoda from outside. For local testing, you do not need this.
8686

8787
[step]
8888
== Build and run the application

0 commit comments

Comments
 (0)