Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing un-versioned example (data/system) #686

Merged
merged 1 commit into from
Apr 3, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions docs/book/rest-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -1308,11 +1308,16 @@ Execute a simple query.

OPA serves POST requests without a URL path by querying for the document at
path `/data/system/main`. The content of that document defines the response
entirely. The example below shows how to define a rule that will produce a
entirely. The policy example below shows how to define a rule that will produce a
value for the `/data/system/main` document.

The request message body is mapped to the [Input Document](/how-does-opa-work.md#the-input-document).

```http
PUT /v1/policies/example1 HTTP/1.1
Content-Type: text/plain
```

```ruby
package system

Expand All @@ -1330,7 +1335,7 @@ Content-Type: application/json

```json
{
"user": "alice"
"user": ["alice"]
}
```

Expand Down