lively-scientist-17848
05/20/2024, 12:59 PMchilly-king-10285
05/20/2024, 12:59 PMchilly-king-10285
05/20/2024, 1:00 PMcheckOplSyntax
API endpoint. Here's how you can do it: 1. Send a POST
request to the /opl/syntax/check
endpoint. The OPL file content should be included in the body of the request. json POST /opl/syntax/check Body: { 'content': { 'text/plain': { 'schema': { 'description': 'Your OPL content here', 'type': 'string' } } }, 'x-originalParamName': 'Body' }
2. The response will be a CheckOPLSyntaxResponse
object. If there are any syntax errors in your OPL file, they will be listed in the errors
property of the response. Please note that this operation does not require authentication. For more details, you can refer to the [Ory Keto API documentation](https://www.ory.sh/docs/keto/reference/rest-api).lively-scientist-17848
05/20/2024, 1:14 PMchilly-king-10285
05/20/2024, 1:14 PMchilly-king-10285
05/20/2024, 1:14 PMketo serve
command. This command opens the network ports and listens to HTTP and gRPC API requests. Here's how you can do it: bash keto serve
Once the server is running, you can then send your POST
request to the /opl/syntax/check
endpoint to check the syntax of your OPL file. For more details, you can refer to the [Ory Keto CLI documentation](https://www.ory.sh/docs/keto/cli/keto-serve#keto-serve).