27 stable releases

1.0.26 Jun 1, 2025
1.0.22 Apr 6, 2025
1.0.21 Mar 2, 2025
1.0.18 Nov 6, 2024
1.0.13 Jul 20, 2024

#95 in Authentication

Download history 269/week @ 2025-03-03 132/week @ 2025-03-10 44/week @ 2025-03-17 48/week @ 2025-03-24 108/week @ 2025-03-31 103/week @ 2025-04-07 42/week @ 2025-04-14 15/week @ 2025-04-21 47/week @ 2025-04-28 84/week @ 2025-05-05 108/week @ 2025-05-12 58/week @ 2025-05-19 545/week @ 2025-05-26 213/week @ 2025-06-02 115/week @ 2025-06-09 172/week @ 2025-06-16

1,058 downloads per month
Used in dtz

MIT/Apache

84KB
1.5K SLoC

Rust API client for dtz-identity

a generated client for the DTZ Identity API

Overview

This API client was generated by the OpenAPI Generator project. By using the openapi-spec from a remote server, you can easily generate an API client.

  • API version: 1.0.26
  • Package version: 1.0.26
  • Build package: org.openapitools.codegen.languages.RustClientCodegen

Installation

Put the package under your project folder in a directory named dtz-identity and add the following to Cargo.toml under [dependencies]:

dtz-identity = { path = "./dtz-identity" }

Documentation for API Endpoints

All URIs are relative to https://identity.dtz.rocks/api/2021-02-21

Class Method HTTP request Description
DefaultApi assign_role POST /me/roles/{roleId} create role assignment
DefaultApi assume_identity POST /identity/assume assume identity
DefaultApi authenticate_apikey POST /auth/apikey authenticate with apikey
DefaultApi change_authentication POST /authentication update the user authentication, aka change you password
DefaultApi check_identity POST /identity/check checks whether an identity exists
DefaultApi create_api_key POST /me/identity/apikey create api key
DefaultApi delete_api_key DELETE /me/identity/apikey/{apikey} delete api key
DefaultApi delete_context_roles DELETE /context/{context_id} delete all roles attached to this context
DefaultApi delete_identity DELETE /me/identity delete current identity
DefaultApi get_abstract_roles GET /roles get roles which are abstract - not assigned to any context or identity
DefaultApi get_account_email GET /me/email Get account email
DefaultApi get_account_stats GET /me get account stats
DefaultApi get_roles_for_context GET /roles/context/{contextId} get roles for a certain context id
DefaultApi get_roles_for_identity GET /roles/identity/{identityId} get roles for a certain identity id
DefaultApi list_authentication GET /authentication list user authentications
DefaultApi list_available_contexts GET /context get a list of contexts that the user has access to
DefaultApi list_identity GET /identity get a list of all available identities
DefaultApi new_context POST /context/{context_id}/new create identity requirements for a new context
DefaultApi new_identity POST /identity creates a new identity
DefaultApi oauth_authorize GET /oauth/authorize oauth authorize
DefaultApi oauth_token POST /oauth/token oauth token request
DefaultApi remove_role_assignment DELETE /me/roles/{roleId} remove role assignment from identity
DefaultApi share_role POST /roles/context/{contextId}/{roleId}/share sharing a role with another identity
DefaultApi token_refresh POST /token/refresh token refresh
DefaultApi user_login POST /token/auth user login
DefaultApi user_signup POST /signup create a new identity with the given email as account email, also create an authentication with the given credentials to allow a login, creates a default context

Documentation For Models

To get access to the crate's generated documentation, use:

cargo doc --open

Author

jens@apimeister.com

Dependencies

~5–18MB
~262K SLoC