# Rust API client for hydra
Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here.
## Overview
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: latest
- Package version: 1.0.0
- Build package: org.openapitools.codegen.languages.RustClientCodegen
## Installation
Put the package under your project folder and add the following to `Cargo.toml` under `[dependencies]`:
```
openapi = { path = "./generated" }
```
## Documentation for API Endpoints
All URIs are relative to *http://localhost*
*AdminApi* | [**accept_consent_request**](docs/AdminApi.md#accept_consent_request) | **put** /oauth2/auth/requests/consent/accept | Accept an consent request
*AdminApi* | [**accept_login_request**](docs/AdminApi.md#accept_login_request) | **put** /oauth2/auth/requests/login/accept | Accept an login request
*AdminApi* | [**accept_logout_request**](docs/AdminApi.md#accept_logout_request) | **put** /oauth2/auth/requests/logout/accept | Accept a logout request
*AdminApi* | [**create_json_web_key_set**](docs/AdminApi.md#create_json_web_key_set) | **post** /keys/{set} | Generate a new JSON Web Key
*AdminApi* | [**create_o_auth2_client**](docs/AdminApi.md#create_o_auth2_client) | **post** /clients | Create an OAuth 2.0 client
*AdminApi* | [**delete_json_web_key**](docs/AdminApi.md#delete_json_web_key) | **delete** /keys/{set}/{kid} | Delete a JSON Web Key
*AdminApi* | [**delete_json_web_key_set**](docs/AdminApi.md#delete_json_web_key_set) | **delete** /keys/{set} | Delete a JSON Web Key Set
*AdminApi* | [**delete_o_auth2_client**](docs/AdminApi.md#delete_o_auth2_client) | **delete** /clients/{id} | Deletes an OAuth 2.0 Client
*AdminApi* | [**flush_inactive_o_auth2_tokens**](docs/AdminApi.md#flush_inactive_o_auth2_tokens) | **post** /oauth2/flush | Flush Expired OAuth2 Access Tokens
*AdminApi* | [**get_consent_request**](docs/AdminApi.md#get_consent_request) | **get** /oauth2/auth/requests/consent | Get consent request information
*AdminApi* | [**get_json_web_key**](docs/AdminApi.md#get_json_web_key) | **get** /keys/{set}/{kid} | Fetch a JSON Web Key
*AdminApi* | [**get_json_web_key_set**](docs/AdminApi.md#get_json_web_key_set) | **get** /keys/{set} | Retrieve a JSON Web Key Set
*AdminApi* | [**get_login_request**](docs/AdminApi.md#get_login_request) | **get** /oauth2/auth/requests/login | Get an login request
*AdminApi* | [**get_logout_request**](docs/AdminApi.md#get_logout_request) | **get** /oauth2/auth/requests/logout | Get a logout request
*AdminApi* | [**get_o_auth2_client**](docs/AdminApi.md#get_o_auth2_client) | **get** /clients/{id} | Get an OAuth 2.0 Client.
*AdminApi* | [**get_version**](docs/AdminApi.md#get_version) | **get** /version | Get service version
*AdminApi* | [**introspect_o_auth2_token**](docs/AdminApi.md#introspect_o_auth2_token) | **post** /oauth2/introspect | Introspect OAuth2 tokens
*AdminApi* | [**is_instance_alive**](docs/AdminApi.md#is_instance_alive) | **get** /health/alive | Check alive status
*AdminApi* | [**list_o_auth2_clients**](docs/AdminApi.md#list_o_auth2_clients) | **get** /clients | List OAuth 2.0 Clients
*AdminApi* | [**list_subject_consent_sessions**](docs/AdminApi.md#list_subject_consent_sessions) | **get** /oauth2/auth/sessions/consent | Lists all consent sessions of a subject
*AdminApi* | [**prometheus**](docs/AdminApi.md#prometheus) | **get** /metrics/prometheus | Get snapshot metrics from the Hydra service. If you're using k8s, you can then add annotations to your deployment like so:
*AdminApi* | [**reject_consent_request**](docs/AdminApi.md#reject_consent_request) | **put** /oauth2/auth/requests/consent/reject | Reject an consent request
*AdminApi* | [**reject_login_request**](docs/AdminApi.md#reject_login_request) | **put** /oauth2/auth/requests/login/reject | Reject a login request
*AdminApi* | [**reject_logout_request**](docs/AdminApi.md#reject_logout_request) | **put** /oauth2/auth/requests/logout/reject | Reject a logout request
*AdminApi* | [**revoke_authentication_session**](docs/AdminApi.md#revoke_authentication_session) | **delete** /oauth2/auth/sessions/login | Invalidates all login sessions of a certain user Invalidates a subject's authentication session
*AdminApi* | [**revoke_consent_sessions**](docs/AdminApi.md#revoke_consent_sessions) | **delete** /oauth2/auth/sessions/consent | Revokes consent sessions of a subject for a specific OAuth 2.0 Client
*AdminApi* | [**update_json_web_key**](docs/AdminApi.md#update_json_web_key) | **put** /keys/{set}/{kid} | Update a JSON Web Key
*AdminApi* | [**update_json_web_key_set**](docs/AdminApi.md#update_json_web_key_set) | **put** /keys/{set} | Update a JSON Web Key Set
*AdminApi* | [**update_o_auth2_client**](docs/AdminApi.md#update_o_auth2_client) | **put** /clients/{id} | Update an OAuth 2.0 Client
*PublicApi* | [**disconnect_user**](docs/PublicApi.md#disconnect_user) | **get** /oauth2/sessions/logout | OpenID Connect Front-Backchannel enabled Logout
*PublicApi* | [**discover_open_id_configuration**](docs/PublicApi.md#discover_open_id_configuration) | **get** /.well-known/openid-configuration | OpenID Connect Discovery
*PublicApi* | [**is_instance_ready**](docs/PublicApi.md#is_instance_ready) | **get** /health/ready | Check readiness status
*PublicApi* | [**oauth2_token**](docs/PublicApi.md#oauth2_token) | **post** /oauth2/token | The OAuth 2.0 token endpoint
*PublicApi* | [**oauth_auth**](docs/PublicApi.md#oauth_auth) | **get** /oauth2/auth | The OAuth 2.0 authorize endpoint
*PublicApi* | [**revoke_o_auth2_token**](docs/PublicApi.md#revoke_o_auth2_token) | **post** /oauth2/revoke | Revoke OAuth2 tokens
*PublicApi* | [**userinfo**](docs/PublicApi.md#userinfo) | **get** /userinfo | OpenID Connect Userinfo
*PublicApi* | [**well_known**](docs/PublicApi.md#well_known) | **get** /.well-known/jwks.json | JSON Web Keys Discovery
## Documentation For Models
- [AcceptConsentRequest](docs/AcceptConsentRequest.md)
- [AcceptLoginRequest](docs/AcceptLoginRequest.md)
- [CompletedRequest](docs/CompletedRequest.md)
- [ConsentRequest](docs/ConsentRequest.md)
- [ConsentRequestSession](docs/ConsentRequestSession.md)
- [FlushInactiveOAuth2TokensRequest](docs/FlushInactiveOAuth2TokensRequest.md)
- [GenericError](docs/GenericError.md)
- [HealthNotReadyStatus](docs/HealthNotReadyStatus.md)
- [HealthStatus](docs/HealthStatus.md)
- [JsonWebKey](docs/JsonWebKey.md)
- [JsonWebKeySet](docs/JsonWebKeySet.md)
- [JsonWebKeySetGeneratorRequest](docs/JsonWebKeySetGeneratorRequest.md)
- [LoginRequest](docs/LoginRequest.md)
- [LogoutRequest](docs/LogoutRequest.md)
- [OAuth2Client](docs/OAuth2Client.md)
- [OAuth2TokenIntrospection](docs/OAuth2TokenIntrospection.md)
- [Oauth2TokenResponse](docs/Oauth2TokenResponse.md)
- [OauthTokenResponse](docs/OauthTokenResponse.md)
- [OpenIdConnectContext](docs/OpenIdConnectContext.md)
- [PreviousConsentSession](docs/PreviousConsentSession.md)
- [RejectRequest](docs/RejectRequest.md)
- [UserinfoResponse](docs/UserinfoResponse.md)
- [Version](docs/Version.md)
- [WellKnown](docs/WellKnown.md)
To get access to the crate's generated documentation, use:
```
cargo doc --open
```
## Author