You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kibble.apache.org by hu...@apache.org on 2018/09/13 15:13:11 UTC

[kibble] 02/03: regen OpenAPI yaml

This is an automated email from the ASF dual-hosted git repository.

humbedooh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kibble.git

commit 46565329d42e86b215aa3bd5883a4ef78a8818a1
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Thu Sep 13 17:12:14 2018 +0200

    regen OpenAPI yaml
---
 api/yaml/openapi.yaml | 28 ++++++++++++++++++++++++++--
 1 file changed, 26 insertions(+), 2 deletions(-)

diff --git a/api/yaml/openapi.yaml b/api/yaml/openapi.yaml
index 853543a..bc61cc2 100644
--- a/api/yaml/openapi.yaml
+++ b/api/yaml/openapi.yaml
@@ -218,6 +218,31 @@ components:
           type: array
       required:
       - sources
+    SourceListAdd:
+      properties:
+        okay:
+          type: boolean
+        organisation:
+          description: The organisation these sources belong to
+          type: string
+        sources:
+          description: The sources to add
+          example:
+            sources:
+            - optauth:
+                password: githubpass
+                username: githubuser
+              sourceURL: https://github.com/apache/kibble.git
+              type: github
+            - optauth:
+                cookie: ponycookie
+              sourceURL: https://lists.apache.org/list.html?dev@httpd.apache.org
+              type: ponymail
+          items:
+            $ref: '#/components/schemas/Source'
+          type: array
+      required:
+      - sources
     SourceType:
       properties:
         description:
@@ -2981,8 +3006,7 @@ paths:
         content:
           application/json:
             schema:
-              $ref: '#/components/schemas/SourceList'
-        description: New source data to add
+              $ref: '#/components/schemas/SourceListAdd'
         required: true
       responses:
         '200':