Skip to content

Commit

Permalink
chore: update Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
rhamzeh committed Apr 12, 2023
1 parent ebebb41 commit 2cddb80
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ using OpenFga.Sdk.Model;

namespace Example {
public class Example {
public static async void Main() {
public static async Task Main() {
try {
var configuration = new ClientConfiguration() {
ApiScheme = Environment.GetEnvironmentVariable("OPENFGA_API_SCHEME"), // optional, defaults to "https"
Expand All @@ -132,7 +132,7 @@ using OpenFga.Sdk.Model;

namespace Example {
public class Example {
public static async void Main() {
public static async Task Main() {
try {
var configuration = new ClientConfiguration() {
ApiScheme = Environment.GetEnvironmentVariable("OPENFGA_API_SCHEME"), // optional, defaults to "https"
Expand Down Expand Up @@ -165,7 +165,7 @@ using OpenFga.Sdk.Model;

namespace Example {
public class Example {
public static async void Main() {
public static async Task Main() {
try {
var configuration = new ClientConfiguration() {
ApiScheme = Environment.GetEnvironmentVariable("OPENFGA_API_SCHEME"), // optional, defaults to "https"
Expand Down Expand Up @@ -286,7 +286,7 @@ var response = await fgaClient.ReadAuthorizationModels(options);

##### Write Authorization Model

Create a new version of the authorization model.
Create a new authorization model.

[API Documentation](https://openfga.dev/api/service#/Authorization%20Models/WriteAuthorizationModel)

Expand Down Expand Up @@ -339,7 +339,7 @@ var response = await fgaClient.WriteAuthorizationModel(body);

#### Read a Single Authorization Model

Read a particular version of the Authorization Model.
Read a particular authorization model.

[API Documentation](https://openfga.dev/api/service#/Authorization%20Models/ReadAuthorizationModel)

Expand All @@ -358,7 +358,7 @@ var response = await fgaClient.ReadAuthorizationModel(options);

##### Read the Latest Authorization Model

Reads the latest authorization model versions (note: this ignores the model id in configuration).
Reads the latest authorization model (note: this ignores the model id in configuration).

[API Documentation](https://openfga.dev/api/service#/Authorization%20Models/ReadAuthorizationModel)

Expand Down Expand Up @@ -396,7 +396,7 @@ var response = await fgaClient.ReadChanges(body, options);

##### Read Relationship Tuples

Reads the relationship tuples stored in the database. It does evaluate nor exclude invalid tuples according to the authorization model.
Reads the relationship tuples stored in the database. It does not evaluate nor exclude invalid tuples according to the authorization model.

[API Documentation](https://openfga.dev/api/service#/Relationship%20Tuples/Read)

Expand Down

0 comments on commit 2cddb80

Please sign in to comment.