From 963e84f79234716b2e43ffafcd2997b6748afc9b Mon Sep 17 00:00:00 2001 From: Evgeniy Alekseev Date: Fri, 21 Jan 2022 02:30:34 +0300 Subject: [PATCH] api docs review --- libraries.sbt | 1 + src/main/resources/html/api.html | 23 +++++++++++++++++++ src/main/resources/html/bis.html | 1 + src/main/resources/html/index.html | 4 +++- src/main/resources/html/loot.html | 1 + src/main/resources/html/party.html | 1 + src/main/resources/html/redoc.html | 19 --------------- src/main/resources/html/users.html | 1 + .../me/arcanis/ffxivbis/Application.scala | 2 +- .../arcanis/ffxivbis/http/RootEndpoint.scala | 19 ++++++++------- .../me/arcanis/ffxivbis/http/Swagger.scala | 4 ++-- .../ffxivbis/http/api/v1/BiSEndpoint.scala | 2 +- .../ffxivbis/http/api/v1/HttpHandler.scala | 22 ++++++++++++++++-- .../ffxivbis/http/api/v1/LootEndpoint.scala | 2 +- .../ffxivbis/http/api/v1/PartyEndpoint.scala | 2 +- .../ffxivbis/http/api/v1/PlayerEndpoint.scala | 2 +- .../http/api/v1/RootApiV1Endpoint.scala | 6 ++--- .../ffxivbis/http/api/v1/StatusEndpoint.scala | 2 +- .../ffxivbis/http/api/v1/TypesEndpoint.scala | 2 +- .../ffxivbis/http/api/v1/UserEndpoint.scala | 2 +- .../http/api/v1/json/PlayerModel.scala | 5 +++- .../arcanis/ffxivbis/http/view/RootView.scala | 2 +- .../http/api/v1/BiSEndpointTest.scala | 2 +- .../http/api/v1/LootEndpointTest.scala | 2 +- .../http/api/v1/PartyEndpointTest.scala | 2 +- .../http/api/v1/PlayerEndpointTest.scala | 2 +- .../http/api/v1/StatusEndpointTest.scala | 2 +- .../http/api/v1/TypesEndpointTest.scala | 2 +- .../http/api/v1/UserEndpointTest.scala | 2 +- 29 files changed, 87 insertions(+), 52 deletions(-) create mode 100644 src/main/resources/html/api.html delete mode 100644 src/main/resources/html/redoc.html diff --git a/libraries.sbt b/libraries.sbt index 90a60bc..1e87d66 100644 --- a/libraries.sbt +++ b/libraries.sbt @@ -12,6 +12,7 @@ libraryDependencies += "com.typesafe.akka" %% "akka-actor-typed" % AkkaVersion libraryDependencies += "com.typesafe.akka" %% "akka-stream" % AkkaVersion libraryDependencies += "com.github.swagger-akka-http" %% "swagger-akka-http" % "2.6.0" libraryDependencies += "jakarta.platform" % "jakarta.jakartaee-web-api" % "9.1.0" +libraryDependencies += "ch.megard" %% "akka-http-cors" % "1.1.2" libraryDependencies += "io.spray" %% "spray-json" % "1.3.6" diff --git a/src/main/resources/html/api.html b/src/main/resources/html/api.html new file mode 100644 index 0000000..e6e34b1 --- /dev/null +++ b/src/main/resources/html/api.html @@ -0,0 +1,23 @@ + + + + + FFXIV loot helper API + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/main/resources/html/bis.html b/src/main/resources/html/bis.html index 26fbe22..c4cea63 100644 --- a/src/main/resources/html/bis.html +++ b/src/main/resources/html/bis.html @@ -139,6 +139,7 @@