From 0d8330ccf3d91839dc6a78d6bf9b5a483661a39e Mon Sep 17 00:00:00 2001 From: "Felix T.J. Dietrich" Date: Tue, 30 Jul 2024 20:38:34 +0200 Subject: [PATCH] add OpenAPI config --- .../www1/hephaestus/OpenAPIConfiguration.java | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 server/application-server/src/main/java/de/tum/in/www1/hephaestus/OpenAPIConfiguration.java diff --git a/server/application-server/src/main/java/de/tum/in/www1/hephaestus/OpenAPIConfiguration.java b/server/application-server/src/main/java/de/tum/in/www1/hephaestus/OpenAPIConfiguration.java new file mode 100644 index 00000000..d16f0ec6 --- /dev/null +++ b/server/application-server/src/main/java/de/tum/in/www1/hephaestus/OpenAPIConfiguration.java @@ -0,0 +1,30 @@ +package de.tum.in.www1.hephaestus; + +import org.springframework.context.annotation.Configuration; + +import io.swagger.v3.oas.annotations.OpenAPIDefinition; +import io.swagger.v3.oas.annotations.info.Contact; +import io.swagger.v3.oas.annotations.info.Info; +import io.swagger.v3.oas.annotations.info.License; +import io.swagger.v3.oas.annotations.servers.Server; + +@Configuration +@OpenAPIDefinition( + info = @Info( + title = "Hephaestus API", + description = "API documentation for the Hephaestus application server.", + contact = @Contact( + name = "Felix T.J. Dietrich", + email = "felixtj.dietrich@tum.de" + ), + license = @License( + name = "MIT License", + url = "https://github.com/ls1intum/Hephaestus/blob/develop/LICENSE" + ) + ), + servers = { + @Server(url = "/", description = "Default Server URL"), + } +) +public class OpenAPIConfiguration { +} \ No newline at end of file