1 unstable release
0.11.0 | Jul 18, 2022 |
---|
#39 in #api-service
34 downloads per month
58KB
826 lines
Rust API client for p7m-userauth
API for authentication and managing user accounts
This is the API of the service at P7M that manages tenants, accounts and authentication. It is the basis of many services of P7M.
For most endpoints, the caller has to be authenticated with the system and provide a JWT token
in the Authorization header of the HTTP request. If your interacting with this API using the Swagger interface,
you need to set the JWT token by clicking on the Authorize button on the right side of the header. As the value
don't forget that the Authorization header starts with the fixed value Bearer
followed by a space followed
by the actual JWT token value.
If anything is unclear or you found a bug in the documentation, please contact tech@p7m.de.
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: 0.11.0
- Package version: 0.11.0
- Build package:
org.openapitools.codegen.languages.RustClientCodegen
Installation
Put the package under your project folder in a directory named p7m-userauth
and add the following to Cargo.toml
under [dependencies]
:
p7m-userauth = { path = "./p7m-userauth" }
Documentation for API Endpoints
All URIs are relative to https://login.p7m.de/v1
Class | Method | HTTP request | Description |
---|---|---|---|
AccountApi | accounts_get | GET /accounts | |
AccountApi | accounts_id_delete | DELETE /accounts/{id} | |
AccountApi | accounts_id_get | GET /accounts/{id} | |
AccountApi | accounts_id_put | PUT /accounts/{id} | |
AccountApi | accounts_post | POST /accounts | |
AuthApi | login_authorize_post | POST /login/authorize | |
AuthApi | login_post | POST /login | |
TenantApi | tenants_get | GET /tenants | |
TenantApi | tenants_id_delete | DELETE /tenants/{id} | |
TenantApi | tenants_id_get | GET /tenants/{id} | |
TenantApi | tenants_id_put | PUT /tenants/{id} | |
TenantApi | tenants_post | POST /tenants |
Documentation For Models
- Account
- AccountData
- AuthorizationRequest
- AuthorizationResponse
- NewAccount
- NewTenant
- PasswordLoginAttempt
- PasswordLoginResponse
- Tenant
- TenantData
To get access to the crate's generated documentation, use:
cargo doc --open
Author
Dependencies
~4–17MB
~252K SLoC