Skip to content

APIs

The API exposes endpoints to interact with the Eunomia server.

The API is built with FastAPI.

Running the Server

The server can be served locally with:

eunomia server

API Endpoints

The API has the following endpoints:

  • POST /check-access: Check if a principal has access to a resource.
  • POST /register-entity: Register a new entity in the system.
  • POST /update-entity: Update an existing entity.
  • POST /delete-entity: Delete an entity from the system.
  • POST /create-policy: Create a new policy.

For detailed information on the API endpoints, refer to the automatically generated API docs when running the server locally at http://localhost:8000/docs.