few-tent-18088
02/20/2023, 9:45 AM0 | import { Namespace, Context } from "@ory/keto-namespace-types"
Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | ^
few-tent-18088
02/20/2023, 9:57 AMsteep-lamp-91158
steep-lamp-91158
steep-lamp-91158
few-tent-18088
02/20/2023, 10:43 AMfew-tent-18088
02/20/2023, 10:45 AMcurl --fail-with-body -XPOST \
--data '{"namespace": "File", "object": "object-1", "relation": "owner", "subject_id": "user_u1"}' \
'<http://localhost:4466/relation-tuples/check/openapi>'
{"allowed":true}
curl --fail-with-body -XPOST \
--data '{"namespace": "File", "object": "object-1", "relation": "view", "subject_id": "user_u1"}' \
'<http://localhost:4466/relation-tuples/check/openapi>'
{"allowed":false}
curl --fail-with-body -XPOST \
--data '{"namespace": "File", "object": "object-1", "relation": "viewer", "subject_id": "user_u1"}' \
'<http://localhost:4466/relation-tuples/check/openapi>'
{"error":{"code":500,"status":"Internal Server Error","message":"relation \"viewer\" not found"}}
curl: (22) The requested URL returned error: 500
make: *** [check-tuple] Error 22
steep-lamp-91158
owners
!= owner
few-tent-18088
02/20/2023, 10:55 AMsteep-lamp-91158