# rust SDK for OpenFGA [![Release](https://img.shields.io/github/v/release/openfga/rust-sdk?sort=semver&color=green)](https://github.com/openfga/rust-sdk/releases) [![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](./LICENSE) [![FOSSA Status](https://app.fossa.com/api/projects/custom%2B4989%2Fgithub.com%2Fopenfga%2Frust-sdk.svg?type=shield)](https://app.fossa.com/api/projects/custom%2B4989%2Fgithub.com%2Fopenfga%2Frust-sdk.svg?type=shield) [![Discord Server](https://img.shields.io/discord/759188666072825867?color=7289da&logo=discord "Discord Server")](https://discord.com/channels/759188666072825867/930524706854031421) [![Twitter](https://img.shields.io/twitter/follow/openfga?color=%23179CF0&logo=twitter&style=flat-square "@openfga on Twitter")](https://twitter.com/openfga) This is an autogenerated rust SDK for OpenFGA. It provides a wrapper around the [OpenFGA API definition](https://openfga.dev/api). ## Table of Contents - [About OpenFGA](#about) - [Resources](#resources) - [Installation](#installation) - [Getting Started](#getting-started) - [Initializing the API Client](#initializing-the-api-client) - [Get your Store ID](#get-your-store-id) - [Calling the API](#calling-the-api) - [List All Stores](#list-stores) - [Create a Store](#create-store) - [Get a Store](#get-store) - [Delete a Store](#delete-store) - [Write Authorization Model](#write-authorization-model) - [Read a Single Authorization Model](#read-a-single-authorization-model) - [Read Authorization Model IDs](#read-authorization-model-ids) - [Check](#check) - [Write Tuples](#write-tuples) - [Delete Tuples](#delete-tuples) - [Expand](#expand) - [Read Tuples](#read-tuples) - [Read Changes (Watch)](#read-changes-watch) - [List Objects](#list-objects) - [API Endpoints](#api-endpoints) - [Models](#models) - [Contributing](#contributing) - [Issues](#issues) - [Pull Requests](#pull-requests) - [License](#license) ## About [OpenFGA](https://openfga.dev) is an open source Fine-Grained Authorization solution inspired by [Google's Zanzibar paper](https://research.google/pubs/pub48190/). It was created by the FGA team at [Auth0](https://auth0.com) based on [Auth0 Fine-Grained Authorization (FGA)](https://fga.dev), available under [a permissive license (Apache-2)](https://github.com/openfga/rfcs/blob/main/LICENSE) and welcomes community contributions. OpenFGA is designed to make it easy for application builders to model their permission layer, and to add and integrate fine-grained authorization into their applications. OpenFGA’s design is optimized for reliability and low latency at a high scale. ## Resources - [OpenFGA Documentation](https://openfga.dev/docs) - [OpenFGA API Documentation](https://openfga.dev/api/service) - [Twitter](https://twitter.com/openfga) - [OpenFGA Discord Community](https://discord.gg/8naAwJfWN6) - [Zanzibar Academy](https://zanzibar.academy) - [Google's Zanzibar Paper (2019)](https://research.google/pubs/pub48190/) ## Installation ## Getting Started ### Initializing the API Client [Learn how to initialize your SDK](https://openfga.dev/docs/getting-started/setup-sdk-client) ### Get your Store ID You need your store id to call the OpenFGA API (unless it is to call the [CreateStore](#create-store) or [ListStores](#list-stores) methods). If your server is configured with [authentication enabled](https://openfga.dev/docs/getting-started/setup-openfga#configuring-authentication), you also need to have your credentials ready. ### Calling the API ### API Endpoints ### Models ## Contributing ### Issues If you have found a bug or if you have a feature request, please report them on the [sdk-generator repo](https://github.com/openfga/sdk-generator/issues) issues section. Please do not report security vulnerabilities on the public GitHub issue tracker. ### Pull Requests All changes made to this repo will be overwritten on the next generation, so we kindly ask that you send all pull requests related to the SDKs to the [sdk-generator repo](https://github.com/openfga/sdk-generator) instead. ## Author [OpenFGA](https://github.com/openfga) ## License This project is licensed under the Apache-2.0 license. See the [LICENSE](https://github.com/openfga/rust-sdk/blob/main/LICENSE) file for more info.