]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
fix rest api quickstart and specify values in openapi spec
authorRigel Kent <sendmemail@rigelk.eu>
Mon, 19 Nov 2018 21:07:29 +0000 (22:07 +0100)
committerRigel Kent <sendmemail@rigelk.eu>
Mon, 19 Nov 2018 21:07:38 +0000 (22:07 +0100)
support/doc/api/openapi.yaml
support/doc/api/quickstart.md

index af829cc626733cdbe1114d45cb19134f82455b63..8fbc52e9987b9f0e1d44046e9b843261d2c1596a 100644 (file)
@@ -101,14 +101,13 @@ x-tagGroups:
       - Video
       - Video Channel
       - Video Comment
-      - Video Abuse
       - Video Following
       - Video Rate
   - name: Moderation
     tags:
       - Video Abuse
       - Video Blacklist
-  - name: Public Instance Information
+  - name: Instance Configuration
     tags:
       - Config
       - Server Following
@@ -316,6 +315,12 @@ paths:
           description: The state of the job
           schema:
             type: string
+            enum:
+              - active
+              - completed
+              - failed
+              - waiting
+              - delayed
         - $ref: '#/components/parameters/start'
         - $ref: '#/components/parameters/count'
         - $ref: '#/components/parameters/sort'
index 844248a7f0dac427f9573280688833dcbc52941a..6c19b59eef98558c1e18bc260a8bffafe5360302 100644 (file)
@@ -43,7 +43,7 @@ Response example:
 Just use the `access_token` in the `Authorization` header:
 
 ```
-$ curl -H 'Authorization: Bearer 90286a0bdf0f7315d9d3fe8dabf9e1d2be9c97d0' https://peertube.example.com/api/v1/jobs/complete
+$ curl -H 'Authorization: Bearer 90286a0bdf0f7315d9d3fe8dabf9e1d2be9c97d0' https://peertube.example.com/api/v1/jobs/completed
 ```
 
 
@@ -51,4 +51,4 @@ $ curl -H 'Authorization: Bearer 90286a0bdf0f7315d9d3fe8dabf9e1d2be9c97d0' https
 
 ```
 $ curl https://peertube.example.com/api/v1/videos
-```
\ No newline at end of file
+```