Rust API client for openapi

January 31, 2024 ยท View on GitHub

A high performance and flexible authorization/permission engine built for developers and inspired by Google Zanzibar.

For more information, please visit https://openfga.dev

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.1
  • Package version: 0.1
  • Build package: org.openapitools.codegen.languages.RustClientCodegen

Installation

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

openapi = { path = "./openapi" }

Documentation for API Endpoints

All URIs are relative to http://localhost

ClassMethodHTTP requestDescription
AssertionsApiread_assertionsGET /stores/{store_id}/assertions/{authorization_model_id}Read assertions for an authorization model ID
AssertionsApiwrite_assertionsPUT /stores/{store_id}/assertions/{authorization_model_id}Upsert assertions for an authorization model ID
AuthorizationModelsApiread_authorization_modelGET /stores/{store_id}/authorization-models/{id}Return a particular version of an authorization model
AuthorizationModelsApiread_authorization_modelsGET /stores/{store_id}/authorization-modelsReturn all the authorization models for a particular store
AuthorizationModelsApiwrite_authorization_modelPOST /stores/{store_id}/authorization-modelsCreate a new authorization model
RelationshipQueriesApicheckPOST /stores/{store_id}/checkCheck whether a user is authorized to access an object
RelationshipQueriesApiexpandPOST /stores/{store_id}/expandExpand all relationships in userset tree format, and following userset rewrite rules. Useful to reason about and debug a certain relationship
RelationshipQueriesApilist_objectsPOST /stores/{store_id}/list-objectsList all objects of the given type that the user has a relation with
RelationshipQueriesApistreamed_list_objectsPOST /stores/{store_id}/streamed-list-objects[EXPERIMENTAL] Stream all objects of the given type that the user has a relation with
RelationshipTuplesApireadPOST /stores/{store_id}/readGet tuples from the store that matches a query, without following userset rewrite rules
RelationshipTuplesApiread_changesGET /stores/{store_id}/changesReturn a list of all the tuple changes
RelationshipTuplesApiwritePOST /stores/{store_id}/writeAdd or delete tuples from the store
StoresApicreate_storePOST /storesCreate a store
StoresApidelete_storeDELETE /stores/{store_id}Delete a store
StoresApiget_storeGET /stores/{store_id}Get a store
StoresApilist_storesGET /storesList all stores

Documentation For Models

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

cargo doc --open

Author

community@openfga.dev