Started on separating domain and adapters

This commit is contained in:
2025-05-14 07:41:28 +02:00
parent 4e26d3cdcb
commit c994321576
15 changed files with 541 additions and 702 deletions

View File

@@ -1,5 +1,4 @@
.gitignore
.openapi-generator-ignore
.travis.yml
Cargo.toml
README.md

View File

@@ -1 +1 @@
7.12.0
7.13.0

View File

@@ -1,6 +1,6 @@
[package]
name = "gamenight-api-client-rs"
version = "1.0.0"
version = "0.1.0"
authors = ["dennis@brentj.es"]
description = "Api specifaction for a Gamenight server"
license = "MIT"
@@ -11,4 +11,4 @@ serde = { version = "^1.0", features = ["derive"] }
serde_json = "^1.0"
serde_repr = "^0.1"
url = "^2.5"
reqwest = { version = "^0.12", features = ["json", "multipart"] }
reqwest = { version = "^0.12", default-features = false, features = ["json", "multipart"] }

View File

@@ -1,4 +1,4 @@
# Rust API client for openapi
# Rust API client for gamenight-api-client-rs
Api specifaction for a Gamenight server
@@ -9,16 +9,16 @@ For more information, please visit [https://brentj.es](https://brentj.es)
This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [openapi-spec](https://openapis.org) from a remote server, you can easily generate an API client.
- API version: 1.0
- Package version: 1.0
- Generator version: 7.12.0
- Package version: 0.1.0
- Generator version: 7.13.0
- Build package: `org.openapitools.codegen.languages.RustClientCodegen`
## Installation
Put the package under your project folder in a directory named `openapi` and add the following to `Cargo.toml` under `[dependencies]`:
Put the package under your project folder in a directory named `gamenight-api-client-rs` and add the following to `Cargo.toml` under `[dependencies]`:
```
openapi = { path = "./openapi" }
gamenight-api-client-rs = { path = "./gamenight-api-client-rs" }
```
## Documentation for API Endpoints

View File

@@ -0,0 +1,3 @@
#!/usr/bin/env bash
openapi-generator-cli generate -i ../backend-actix/gamenight-api.yaml -g rust --additional-properties=withSeparateModelsAndApi=true,modelPackage=gamenight_model,apiPackage=gamenight_api,packageName=gamenight-api-client-rs,packageVersion=0.1.0