I am trying to implement permify authorisation in my spring boot application. I want to know how can I upload schema to permify database inorder to create relationships. Can someone provide the configurations and details of it.
I tried setting up permify using docker image, it started serving when I check using the health status api of permify. But I am not able to upload my schema to the permify. I tried various api that I have seen online but nothing seems to work. Here is a sample
Here is my permify schema :
entity user {}
entity organization {
// organizational roles
relation admin @user
relation member @user
}
entity repository {
// represents repositories parent organization
relation parent @organization
// represents owner of this repository
relation owner @user
// permissions
permission edit = parent.admin or owner
permission delete = owner
}
This is the end point I tried :
localhost:3476/v1/tenants/{tenant_id}/schema/write
http://localhost:3476/v1/schema/write
This is the response I got
{
"code": 5,
"message": "Not Found",
"details": []
}
Can someone help me find the solution.