You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@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 urn:AirQuality:1 ;
acl:accessToClass tenant1:entity ;
acl:agentClass acl:agent:admin;
acl:mode acl:Write.'
########################
the result of anubis is: HTTP/1.1 422 unprocessable Entity
The text was updated successfully, but these errors were encountered: