Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update swagger #273

Merged
merged 3 commits into from
Nov 30, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,31 +57,31 @@ The first step is to generate the swagger documents from the server repository.

```bash
# src/Api
dotnet swagger tofile --output ../../api.json .\bin\Debug\net6.0\Api.dll internal
dotnet swagger tofile --output ../../api.json ./bin/Debug/net6.0/Api.dll internal

# src/Identity
dotnet swagger tofile --output ../../identity.json .\bin\Debug\net6.0\Identity.dll v1
ASPNETCORE_ENVIRONMENT=development dotnet swagger tofile --output ../../identity.json ./bin/Debug/net6.0/Identity.dll v1
```

### OpenApi Generator

Runs from the root of the SDK project.

```bash
npx openapi-generator-cli generate `
-i ../server/api.json `
-g rust `
-o crates/bitwarden-api-api `
--package-name bitwarden-api-api `
-t ./support/openapi-template `
npx openapi-generator-cli generate \
-i ../server/api.json \
-g rust \
-o crates/bitwarden-api-api \
--package-name bitwarden-api-api \
-t ./support/openapi-template \
--additional-properties=packageVersion=1.0.0

npx openapi-generator-cli generate `
-i ../server/identity.json `
-g rust `
-o crates/bitwarden-api-identity `
--package-name bitwarden-api-identity `
-t ./support/openapi-template `
npx openapi-generator-cli generate \
-i ../server/identity.json \
-g rust \
-o crates/bitwarden-api-identity \
--package-name bitwarden-api-identity \
-t ./support/openapi-template \
--additional-properties=packageVersion=1.0.0
```

Expand Down
11 changes: 9 additions & 2 deletions crates/bitwarden-api-api/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ src/models/authenticator_attestation_raw_response.rs
src/models/base_access_policy_response_model.rs
src/models/base_secret_response_model.rs
src/models/base_secret_response_model_list_response_model.rs
src/models/billing_customer_discount.rs
src/models/billing_history_response_model.rs
src/models/billing_invoice.rs
src/models/billing_payment_response_model.rs
Expand Down Expand Up @@ -122,6 +123,7 @@ src/models/collection_with_id_request_model.rs
src/models/config_response_model.rs
src/models/delete_recover_request_model.rs
src/models/device_keys_request_model.rs
src/models/device_keys_update_request_model.rs
src/models/device_request_model.rs
src/models/device_response_model.rs
src/models/device_response_model_list_response_model.rs
Expand Down Expand Up @@ -201,10 +203,10 @@ src/models/organization_domain_response_model.rs
src/models/organization_domain_response_model_list_response_model.rs
src/models/organization_domain_sso_details_request_model.rs
src/models/organization_domain_sso_details_response_model.rs
src/models/organization_enroll_secrets_manager_request_model.rs
src/models/organization_keys_request_model.rs
src/models/organization_keys_response_model.rs
src/models/organization_license.rs
src/models/organization_public_key_response_model.rs
src/models/organization_response_model.rs
src/models/organization_seat_request_model.rs
src/models/organization_sponsorship_create_request_model.rs
Expand Down Expand Up @@ -241,6 +243,7 @@ src/models/organization_user_update_request_model.rs
src/models/organization_user_user_details_response_model.rs
src/models/organization_user_user_details_response_model_list_response_model.rs
src/models/organization_verify_bank_request_model.rs
src/models/other_device_keys_update_request_model.rs
src/models/password_hint_request_model.rs
src/models/password_request_model.rs
src/models/payment_method_type.rs
Expand Down Expand Up @@ -272,6 +275,7 @@ src/models/project_create_request_model.rs
src/models/project_response_model.rs
src/models/project_response_model_list_response_model.rs
src/models/project_update_request_model.rs
src/models/protected_device_response_model.rs
src/models/provider_organization_add_request_model.rs
src/models/provider_organization_create_request_model.rs
src/models/provider_organization_organization_details_response_model.rs
Expand Down Expand Up @@ -316,6 +320,7 @@ src/models/secret_update_request_model.rs
src/models/secret_verification_request_model.rs
src/models/secret_with_projects_inner_project.rs
src/models/secret_with_projects_list_response_model.rs
src/models/secrets_manager_subscribe_request_model.rs
src/models/secrets_manager_subscription_update_request_model.rs
src/models/secrets_with_projects_inner_secret.rs
src/models/secure_note_type.rs
Expand All @@ -337,7 +342,8 @@ src/models/service_account_create_request_model.rs
src/models/service_account_project_access_policy_response_model.rs
src/models/service_account_project_access_policy_response_model_list_response_model.rs
src/models/service_account_response_model.rs
src/models/service_account_response_model_list_response_model.rs
src/models/service_account_secrets_details_response_model.rs
src/models/service_account_secrets_details_response_model_list_response_model.rs
src/models/service_account_update_request_model.rs
src/models/set_key_connector_key_request_model.rs
src/models/set_password_request_model.rs
Expand Down Expand Up @@ -370,6 +376,7 @@ src/models/two_factor_web_authn_request_model.rs
src/models/two_factor_web_authn_response_model.rs
src/models/two_factor_yubi_key_response_model.rs
src/models/update_avatar_request_model.rs
src/models/update_devices_trust_request_model.rs
src/models/update_domains_request_model.rs
src/models/update_key_request_model.rs
src/models/update_profile_request_model.rs
Expand Down
Loading