Ethics & Phenotype Endpoints + Phenotype Renaming

This commit is contained in:
Neshura 2023-09-08 22:55:17 +02:00
parent d91af52811
commit 097b6884b9
Signed by: Neshura
GPG key ID: B6983AAA6B9A7A6C
7 changed files with 163 additions and 41 deletions

View file

@ -148,7 +148,9 @@ async fn main() -> Result<()> {
v3::get_empire,
v3::create_empire,
v3::edit_empire,
v3::delete_empire
v3::delete_empire,
v3::get_ethics,
v3::get_phenotypes
),
components(schemas(
v3::schemas::AuthReturn,
@ -165,15 +167,17 @@ async fn main() -> Result<()> {
v3::schemas::DeleteEmpireParams,
v3::schemas::FullViewData,
v3::schemas::Ethic,
v3::schemas::ChellarisEthics,
v3::schemas::EmpireEthic,
v3::schemas::EmpireEthicLegacy,
v3::schemas::ChellarisGameLegacy,
v3::schemas::ChellarisGameFlat,
v3::schemas::ChellarisGame,
v3::schemas::Species,
v3::schemas::Phenotype,
v3::schemas::ChellarisPhenotypes,
v3::schemas::ChellarisGameGroupLegacy,
v3::schemas::ChellarisGroupFlat,
v3::schemas::Portrait,
v3::schemas::Species,
v3::schemas::ChellarisEmpireLegacy,
v3::schemas::ChellarisEmpireFlat,
v3::schemas::ChellarisEmpire
@ -229,6 +233,8 @@ async fn main() -> Result<()> {
.service(v3::create_empire)
.service(v3::edit_empire)
.service(v3::delete_empire)
.service(v3::get_ethics)
.service(v3::get_phenotypes)
// Swagger UI
.service(
SwaggerUi::new(concat!(api_base!(), "/swagger/{_:.*}"))