Skip to content

Commit aec01c1

Browse files
committed
MP OpenAPi edits
#340
1 parent e0a1450 commit aec01c1

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

modules/ROOT/pages/documentation-openapi.adoc

+5-9
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,14 @@
1313
= API documentation with OpenAPI
1414

1515
MicroProfile OpenAPI is a MicroProfile community programming model for the OpenAPI specification.
16-
MicroProfile OpenAPI helps you to generate structured documentation from your JAX-RS applications.
16+
MicroProfile OpenAPI helps you to generate structured documentation from your Jakarta RESTful Services or JAX-RS applications.
1717

1818
Structured documentation helps other microservices and developers to understand and communicate with your application.
1919
Other developers need relevant information to build an application that communicates with the REST API of your application.
2020
MicroProfile OpenAPI facilitates this communication by generating human and machine-readable documentation on a simple interface that doesn’t require access to the source code.
21-
You can implement MicroProfile OpenAPI for Open Liberty by enabling the feature:mpOpenAPI[display=MicroProfile OpenAPI] feature.
21+
22+
You can implement MicroProfile OpenAPI for Open Liberty by enabling the feature:mpOpenAPI[display=MicroProfile OpenAPI] feature. When this feature is enabled, you can view the OpenAPI document in a browser by using the `/openapi` endpoint. For example, if your browser is on the same machine where your server is running, you can view the OpenAPI document at the http://localhost:9080/openapi or the http://localhost:9080/openapi/ui URL.
23+
2224

2325
The two main approaches to generate an OpenAPI document are the code-first approach and the design-first approach.
2426
In the code-first approach, a developer can generate documentation of the REST API from the source code.
@@ -28,9 +30,6 @@ The JAX-RS framework handles basic API generation for JAX-RS annotations and gen
2830
You can use this treemap as a starting point and augment it with annotations and code to produce a complete OpenAPI document.
2931
Additionally, you can use this manually created documentation to generate stubs, or testable versions of code modules, such as client libraries for the API.
3032

31-
Some deprecated annotations were removed between Microprofile OpenAPI versions 1.1 and 2.0, which might result in breaking changes between those versions.
32-
For more information, see the https://download.eclipse.org/microprofile/microprofile-open-api-2.0/microprofile-openapi-spec-2.0.html#release_notes_20[Release Notes for Microprofile OpenAPI 2.0].
33-
3433
== The code-first approach
3534

3635
In the code-first approach, you can initially generate basic API documentation of the REST API from annotations that are specified in the source code.
@@ -136,9 +135,6 @@ With filters, you can implement an interface in your application.
136135
When a component of the documentation is processed, it calls your implementation and you can either add or remove content.
137136
For more information, see https://openliberty.io/guides/microprofile-openapi.html#filtering-the-openapi-tree-elements[Filtering the OpenAPI tree elements].
138137

139-
== View API documentation
140-
141-
The OpenAPI document can be viewed in a browser by using the `/openapi` endpoint. For example, if your browser is on the same machine where your server is running, you can view the OpenAPI document at the http://localhost:9080/openapi or the http://localhost:9080/openapi/ui URL.
142138

143139
[#multi-module]
144140
== Multiple application and multi-module application support with MicroProfile OpenAPI
@@ -209,8 +205,8 @@ When OpenAPI documentation from multiple modules is merged into a single documen
209205

210206
- If the `externalDocs` section is not the same across all documents, it is removed from the final document.
211207

208+
212209
== See also
213210

214211
- link:/guides/microprofile-openapi.html[Guide: Documenting RESTful APIs]
215212
- Guide: link:/guides/microprofile-config-intro.html[Separating configuration from code in microservices]
216-
- link:https://download.eclipse.org/microprofile/microprofile-open-api-2.0/microprofile-openapi-spec-2.0.html#release_notes_20[Release Notes for MicroProfile OpenAPI 2.0]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Some deprecated annotations were removed between Microprofile OpenAPI versions 1.1 and 2.0, which might result in breaking changes between those versions.
2+
For more information, see the https://download.eclipse.org/microprofile/microprofile-open-api-2.0/microprofile-openapi-spec-2.0.html#release_notes_20[Release Notes for Microprofile OpenAPI 2.0].
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Some deprecated annotations were removed between Microprofile OpenAPI versions 1.1 and 2.0, which might result in breaking changes between those versions.
2+
For more information, see the https://download.eclipse.org/microprofile/microprofile-open-api-2.0/microprofile-openapi-spec-2.0.html#release_notes_20[Release Notes for Microprofile OpenAPI 2.0].

0 commit comments

Comments
 (0)