Move example request/response to get code owners to the right place
New sections have been added and moved the example request/response away
from the description of the REST endpoint.
Signed-off-by: Edwin Kempin <ekempin@google.com>
Change-Id: I7894b81a2d3f4589e87e82f12756cbdd8c838317
diff --git a/resources/Documentation/rest-api.md b/resources/Documentation/rest-api.md
index 0185851..04e8ffd 100644
--- a/resources/Documentation/rest-api.md
+++ b/resources/Documentation/rest-api.md
@@ -475,6 +475,36 @@
(visible) users is returned, as many as are needed to fill up the requested
limit.
+#### Request
+
+```
+ GET /projects/foo%2Fbar/branches/master/code_owners/docs%2Findex.md HTTP/1.0
+```
+
+#### Response
+
+```
+ HTTP/1.1 200 OK
+ Content-Disposition: attachment
+ Content-Type: application/json; charset=UTF-8
+
+ )]}'
+ {
+ "code_owners": [
+ {
+ "account": {
+ "_account_id": 1000096
+ }
+ },
+ {
+ "account": {
+ "_account_id": 1001439
+ },
+ }
+ ]
+ }
+```
+
#### <a id="scoringFactors">Scoring Factors
The following factors are taken into account for computing the scores of the
@@ -550,36 +580,6 @@
The same applies for [default code owners](config-guide.html#codeOwners).
-#### Request
-
-```
- GET /projects/foo%2Fbar/branches/master/code_owners/docs%2Findex.md HTTP/1.0
-```
-
-#### Response
-
-```
- HTTP/1.1 200 OK
- Content-Disposition: attachment
- Content-Type: application/json; charset=UTF-8
-
- )]}'
- {
- "code_owners": [
- {
- "account": {
- "_account_id": 1000096
- }
- },
- {
- "account": {
- "_account_id": 1001439
- },
- }
- ]
- }
-```
-
#### <a id="batch-list-code-owners"> Batch Request
There is no REST endpoint that allows to retrieve code owners for multiple