Skip to content

Commit 53c7bc6

Browse files
committed
Fix code block formatting on rest doc page
1 parent a9e4912 commit 53c7bc6

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

docs/developers/rest.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -81,21 +81,20 @@ Generally the POST method can be used for custom actions since POST has the broa
8181

8282
This is handled by the Resource method `post(data)`, which is a good method to extend to make various other types of modifications. Also, with a table you can create a new record without specifying a primary key, for example:
8383

84-
`````http
85-
````http
84+
```http
8685
POST /MyTable/
8786
Content-Type: application/json
8887
89-
`{ "name": "some data" }`
90-
`````
88+
{ "name": "some data" }
89+
```
9190

9291
This will create a new record, auto-assigning a primary key, which will be returned in the `Location` header.
9392

9493
### Querying through URL query parameters
9594

9695
URL query parameters provide a powerful language for specifying database queries in Harper. This can be used to search by a single attribute name and value, to find all records which provide value for the given property/attribute. It is important to note that this attribute must be configured to be indexed to search on it. For example:
9796

98-
````http
97+
```http
9998
GET /my-resource/?property=value
10099
```
101100

@@ -401,5 +400,4 @@ PUT /my-resource/33/image
401400
Content-Type: image/gif
402401
403402
...image data...
404-
```
405-
````
403+
```

0 commit comments

Comments
 (0)