From 66adb85f7e090bd11ab8d7a9eaa6e69377b9ec33 Mon Sep 17 00:00:00 2001 From: Emilia Jaser Date: Mon, 30 Dec 2024 10:38:48 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20(#222):=20Management=20interface?= =?UTF-8?q?=20+=20base=20path?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app.hopps.fin-narrator/README.md | 17 ----------------- .../src/main/resources/application.properties | 10 +++++++++- 2 files changed, 9 insertions(+), 18 deletions(-) diff --git a/backend/app.hopps.fin-narrator/README.md b/backend/app.hopps.fin-narrator/README.md index 34ddd524..4e38a317 100644 --- a/backend/app.hopps.fin-narrator/README.md +++ b/backend/app.hopps.fin-narrator/README.md @@ -53,20 +53,3 @@ Or, if you don't have GraalVM installed, you can run the native executable build You can then execute your native executable with: `./target/fin-narrator-1.0.0-SNAPSHOT-runner` If you want to learn more about building native executables, please consult . - -## Related Guides - -- REST ([guide](https://quarkus.io/guides/rest)): A Jakarta REST implementation utilizing build time processing and Vert.x. This extension is not compatible with the quarkus-resteasy extension, or any of the extensions that depend on it. -- Micrometer Registry Prometheus ([guide](https://quarkus.io/guides/micrometer)): Enable Prometheus support for Micrometer -- SmallRye OpenAPI ([guide](https://quarkus.io/guides/openapi-swaggerui)): Document your REST APIs with OpenAPI - comes with Swagger UI -- REST Jackson ([guide](https://quarkus.io/guides/rest#json-serialisation)): Jackson serialization support for Quarkus REST. This extension is not compatible with the quarkus-resteasy extension, or any of the extensions that depend on it -- Jacoco - Code Coverage ([guide](https://quarkus.io/guides/tests-with-coverage)): Jacoco test coverage support -- Micrometer metrics ([guide](https://quarkus.io/guides/micrometer)): Instrument the runtime and your application with dimensional metrics using Micrometer. - -## Provided Code - -### REST - -Easily start your REST Web Services - -[Related guide section...](https://quarkus.io/guides/getting-started-reactive#reactive-jax-rs-resources) diff --git a/backend/app.hopps.fin-narrator/src/main/resources/application.properties b/backend/app.hopps.fin-narrator/src/main/resources/application.properties index 5325253a..e555ce35 100644 --- a/backend/app.hopps.fin-narrator/src/main/resources/application.properties +++ b/backend/app.hopps.fin-narrator/src/main/resources/application.properties @@ -1,4 +1,12 @@ +####################################### +# Quarkus +####################################### +quarkus.management.enabled=true +quarkus.http.root-path=/api/fin-narrator +quarkus.smallrye-openapi.store-schema-directory=target/openapi +####################################### +# OpenAI +####################################### # put the openai api key in backend/app.hopps.fin-narrator/.env # with QUARKUS_LANGCHAIN4J_OPENAI_API_KEY= %test.quarkus.langchain4j.openai.api-key=FAKE_API_KEY -