Skip to content

Commit

Permalink
save work
Browse files Browse the repository at this point in the history
  • Loading branch information
romain-grecourt committed Sep 25, 2023
1 parent 43a0816 commit 8ddec4b
Show file tree
Hide file tree
Showing 44 changed files with 305 additions and 784 deletions.
2 changes: 1 addition & 1 deletion docs/mp/openapi/openapi.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ Having written the filter and model reader classes, identify them by adding conf
[source,properties]
----
mp.openapi.filter=io.helidon.microprofile.examples.openapi.basic.internal.SimpleAPIFilter
mp.openapi.model.reader=io.helidon.microprofile.examples.openapi.basic.internal.SimpleAPIModelReader
mp.openapi.model.reader=internal.io.helidon.microprofile.examples.openapi.SimpleAPIModelReader
----
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Helidon MP Basic OpenAPI Example
# Helidon MP OpenAPI Example

This example shows a simple greeting application, similar to the one from the
Helidon MP QuickStart, enhanced with OpenAPI support.
Expand All @@ -7,7 +7,7 @@ Helidon MP QuickStart, enhanced with OpenAPI support.

```bash
mvn package
java -jar target/helidon-examples-microprofile-openapi-basic.jar
java -jar target/helidon-examples-microprofile-openapi.jar
```

Try the endpoints:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,8 @@
<relativePath>../../../applications/mp/pom.xml</relativePath>
</parent>
<groupId>io.helidon.examples.microprofile</groupId>
<artifactId>helidon-examples-microprofile-openapi-basic</artifactId>
<name>Helidon Examples Microprofile Basic OpenAPI</name>

<description>
Microprofile example showing basic OpenAPI support
</description>
<artifactId>helidon-examples-microprofile-openapi</artifactId>
<name>Helidon Examples Microprofile OpenAPI</name>

<dependencies>
<dependency>
Expand Down Expand Up @@ -65,6 +61,11 @@
<artifactId>hamcrest-all</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.helidon.microprofile.testing</groupId>
<artifactId>helidon-microprofile-testing-junit5</artifactId>
<scope>test</scope>
</dependency>
</dependencies>

<build>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package io.helidon.microprofile.examples.openapi.basic;
package io.helidon.microprofile.examples.openapi;

import jakarta.enterprise.context.RequestScoped;
import jakarta.inject.Inject;
Expand Down Expand Up @@ -50,7 +50,7 @@
*
* Note that the output will include not only the annotated endpoints from this
* class but also an endpoint added by the
* {@link io.helidon.microprofile.examples.openapi.basic.internal.SimpleAPIModelReader}.
* {@link io.helidon.microprofile.examples.openapi.internal.SimpleAPIModelReader}.
*
* The message is returned as a JSON object.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.helidon.microprofile.examples.openapi.basic;
package io.helidon.microprofile.examples.openapi;

/**
* POJO defining the greeting message content.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2019, 2021 Oracle and/or its affiliates.
* Copyright (c) 2019, 2023 Oracle and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.helidon.microprofile.examples.openapi.basic;
package io.helidon.microprofile.examples.openapi;

import java.util.concurrent.atomic.AtomicReference;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2019, 2021 Oracle and/or its affiliates.
* Copyright (c) 2019, 2023 Oracle and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.helidon.examples.openapi.internal;
package io.helidon.microprofile.examples.openapi.internal;

import java.util.Map;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2019, 2021 Oracle and/or its affiliates.
* Copyright (c) 2019, 2023 Oracle and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.helidon.examples.openapi.internal;
package io.helidon.microprofile.examples.openapi.internal;

import org.eclipse.microprofile.openapi.OASFactory;
import org.eclipse.microprofile.openapi.OASModelReader;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2019, 2021 Oracle and/or its affiliates.
* Copyright (c) 2019, 2023 Oracle and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -17,4 +17,4 @@
/**
* Internal classes supporting Helidon MP OpenAPI.
*/
package io.helidon.microprofile.examples.openapi.basic.internal;
package io.helidon.microprofile.examples.openapi.internal;
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2019, 2021 Oracle and/or its affiliates.
* Copyright (c) 2019, 2023 Oracle and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -15,6 +15,6 @@
*/

/**
* Helidon MicroProfile OpenAPI basic example.
* Helidon MicroProfile OpenAPI example.
*/
package io.helidon.microprofile.examples.openapi.basic;
package io.helidon.microprofile.examples.openapi;
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2019, 2022 Oracle and/or its affiliates.
Copyright (c) 2019, 2023 Oracle and/or its affiliates.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2019, 2021 Oracle and/or its affiliates.
# Copyright (c) 2019, 2023 Oracle and/or its affiliates.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -21,5 +21,5 @@ app.greeting=Hello
server.port=8080
server.host=0.0.0.0

mp.openapi.filter=io.helidon.microprofile.examples.openapi.basic.internal.SimpleAPIFilter
mp.openapi.model.reader=io.helidon.microprofile.examples.openapi.basic.internal.SimpleAPIModelReader
mp.openapi.filter=io.helidon.microprofile.examples.openapi.internal.SimpleAPIFilter
mp.openapi.model.reader=io.helidon.microprofile.examples.openapi.internal.SimpleAPIModelReader
Loading

0 comments on commit 8ddec4b

Please sign in to comment.