dotnet client library for the Permit.io full-stack permissions platform.
- Install the latest version of the
OpenAPI Generator
CLI tool from https://openapi-generator.tech/docs/installation - Run the following command to generate both the PDP and main API client code:
./generate_openapi.sh
This script will:
- Download the latest OpenAPI schema files from Permit.io
- Transform the OpenAPI union types to simple types
- Generate the client code for both the main Permit.io API and PDP API
- Fix status code checks to support 204 status codes
Add nuget package to your project and use with:
using Permit
using Permit.Models