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.
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.
org.openapitools.codegen.languages.RustClientCodegen
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" }
All URIs are relative to https://login.p7m.de/v1
Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- AccountApi | accountsget | GET /accounts | *AccountApi* | accountsiddelete | DELETE /accounts/{id} | *AccountApi* | accountsidget | GET /accounts/{id} | *AccountApi* | accountsidput | PUT /accounts/{id} | *AccountApi* | accountspost | POST /accounts | AuthApi | loginauthorizepost | POST /login/authorize | AuthApi | loginpost | POST /login | *TenantApi* | tenantsget | GET /tenants | TenantApi | tenantsiddelete | DELETE /tenants/{id} | TenantApi | tenantsidget | GET /tenants/{id} | TenantApi | tenantsidput | PUT /tenants/{id} | TenantApi | tenants_post | POST /tenants |
To get access to the crate's generated documentation, use:
cargo doc --open