You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2015/08/13 22:02:02 UTC
[08/11] allura git commit: [#6797] remove unused baseTool type.
Webhooks collection (only one) doesn't let you POST at the collection level
[#6797] remove unused baseTool type. Webhooks collection (only one) doesn't let you POST at the collection level
Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/8eac69c1
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/8eac69c1
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/8eac69c1
Branch: refs/heads/db/6797
Commit: 8eac69c1bd5684cc64ffe8ef0f06fc24d6cfcd28
Parents: ecd0e4a
Author: Dave Brondsema <da...@brondsema.net>
Authored: Thu Aug 13 14:29:54 2015 -0400
Committer: Dave Brondsema <da...@brondsema.net>
Committed: Thu Aug 13 14:29:54 2015 -0400
----------------------------------------------------------------------
Allura/docs/api-rest/api.raml | 6 +++---
Allura/docs/api-rest/resourceTypes.yaml | 22 +---------------------
2 files changed, 4 insertions(+), 24 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/allura/blob/8eac69c1/Allura/docs/api-rest/api.raml
----------------------------------------------------------------------
diff --git a/Allura/docs/api-rest/api.raml b/Allura/docs/api-rest/api.raml
index dfedf35..2d9b211 100755
--- a/Allura/docs/api-rest/api.raml
+++ b/Allura/docs/api-rest/api.raml
@@ -216,7 +216,6 @@ baseUriParameters:
Creates a new ticket.
post:
body:
- # FIXME?
application/x-www-form-urlencoded:
formParameters:
access_token:
@@ -269,7 +268,6 @@ baseUriParameters:
post:
body:
- # form?
application/x-www-form-urlencoded:
formParameters:
access_token:
@@ -543,7 +541,9 @@ baseUriParameters:
This is to manage webhooks programatically. See the [Webhook docs](https://forge-allura.apache.org/p/allura/wiki/Webhooks/) for more information.
The webhook payloads and signature verification method are documented at https://forge-allura.apache.org/p/allura/wiki/Webhooks/
-
+ get:
+ description: |
+ Returns the list of webhooks
/{type}:
uriParameters:
http://git-wip-us.apache.org/repos/asf/allura/blob/8eac69c1/Allura/docs/api-rest/resourceTypes.yaml
----------------------------------------------------------------------
diff --git a/Allura/docs/api-rest/resourceTypes.yaml b/Allura/docs/api-rest/resourceTypes.yaml
index 4bb176f..4218464 100755
--- a/Allura/docs/api-rest/resourceTypes.yaml
+++ b/Allura/docs/api-rest/resourceTypes.yaml
@@ -1,6 +1,6 @@
- base:
get?:
- responses: &standardResponses
+ responses: &standardResponses # yaml syntax to alias properties
200:
description: OK
put?:
@@ -13,22 +13,10 @@
description: Created
delete?:
responses: *standardResponses
-- baseTool:
- get?:
- responses:
- 200:
- description: OK
- post?:
- responses:
- 201:
- description: Created
- delete?:
- responses: *standardResponses
- collection:
type: base
get:
is: [ pageable ]
- post:
- member:
type: base
get?:
@@ -85,14 +73,6 @@
application/json:
schema: <<schema>>
example: <<example>>
- post:
- body:
- application/json:
- responses:
- 201:
- body:
- application/json:
- schema: <<schema>>
- permission:
description: |
Checks if a given user has permissions.