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 the PDP client code:
npm run update-pdp-openapi # this updates the openapi.json file
npm run update-pdp-api # this generates the client code for the Permit.io PDP API
npm run update-status-check-pdp # this checks the status of the PDP API to support also 204 status code (verify that this change looks OK by review the changes)
Updating the Permit.io cloud API needs a fix in the openapi.json file first and then it will work in the same way as the PDP API.
Add nuget package to your project and use with:
using Permit
using Permit.Models