Open DiegoCaro96 opened 1 year ago
@DiegoCaro96 Currently we only support retrieving policies in WAC format, but not creating new ones. It is something we want to support too, but at the moment to create policies it has to be done in the Anubis Policy format as described in the documentation (or see the Swagger API docs)
When I try to make a curl POST, of a policy written in WAC the result is "unprocessable entity".
########################## I mean when I try to do this:
curl -s -i -X 'POST' \ 'http: //127.0.0.1:8085/v1/policies/' \ -H 'fiware-service: Tenant1' \ -H 'fiware-servicepath: /' \ -H 'Content-type: text/turtle' \ -d ' @base https://tenant1.url/. @prefix acl: http://www.w3.org/ns/auth/acl#. @prefix foaf: http://xmlns.com/foaf/0.1. @prefix tenant1: https://tenant1.url/.
tenant1:policy1 a acl:Authorization ;
acl: accessTo ;
acl:accessToClass tenant1:entity ;
acl:agentClass ;
acl:mode .'
######################## the result of anubis is: HTTP/1.1 422 unprocessable Entity