From b92a4afe6bb8aa7a6af9c0cf52940179a9669ff0 Mon Sep 17 00:00:00 2001 From: franck cuny Date: Sun, 17 Oct 2010 17:54:33 +0200 Subject: update specification for the description --- spore_description.pod | 66 +++++++++++++++++++-------------------------------- 1 file changed, 25 insertions(+), 41 deletions(-) diff --git a/spore_description.pod b/spore_description.pod index b969ffc..fadfcbe 100644 --- a/spore_description.pod +++ b/spore_description.pod @@ -54,24 +54,23 @@ A simple name to describe the specification name: CouchDB -=item B (optional) +=item B (optional) -A list of authors for this specification +The authority of the description - author: - - franck cuny + authorithy: GITHUB:franckcuny -=item B (optional) +=item B (optional) If the API has a fixed URL - api_base_url: http://api.twitter.com/1/ + base_url: http://api.twitter.com/1/ -=item B (optional) +=item B (optional) A list of supported format - api_format: + formats: - json - xml @@ -85,15 +84,7 @@ The version number of the current description A boolean to specify if this API requires authentication for all the methods - api_authentication: true - -=item B (optional) - -A list of supported authentication methods - - api_auth_type: - - simple - - oauth + authentication: true =item B (required) @@ -124,28 +115,26 @@ B begin with a <:>: path: /statuses/public_timeline.:format -=item B (optional) +=item B (optional) -A list of parameters. This list will be used to replace value in placeholders, -and if not used in the path, will be added to the query +A list of optional parameters. This list will be used to replace value in placeholders, and if not used in the path, will be added to the query - params: + optional_params: - trim_user - include_entities -=item B (optional) +=item B (optional) -A list of required parameters. Parameters that are required B be -repeated in the B field +A list of required parameters. Parameters that are required B be repeated in the B field - required: + required_params: - format -=item B (optional) +=item B (optional) A list of accepted HTTP status for this method - expected: + expected_status: - 200 =item B (optional) @@ -161,24 +150,17 @@ A boolean to specify if this method requires authentication authentication: false -=item B (optional) - -A list of supported authentication methods - - auth_type: - - digest - =item B (optional) Specify an url if this method requires a different api_base_url - api_base_url: http://api.twitter.com/1/ + base_url: http://api.twitter.com/1/ -=item B (optional) +=item B (optional) A list of supported format - api_format: + formats: - json - xml @@ -195,20 +177,20 @@ A complete documentation for the given method A description for the twitter API (only the API description part and the first method): { - "api_base_url" : "http://api.twitter.com/1", + "base_url" : "http://api.twitter.com/1", "version" : "0.1", "methods" : { "public_timeline" : { - "params" : [ + "optional_params" : [ "trim_user", "include_entities" ], - "required" : [ + "required_params" : [ "format" ], "path" : "/statuses/public_timeline.:format", "method" : "GET" - }, + } } } @@ -268,6 +250,8 @@ I'd like to thank authors of these great documents. =item damien "bl0b" leroux +=item François Perrad + =back =head1 COPYRIGHT AND LICENSE -- cgit v1.2.3