summaryrefslogtreecommitdiff
path: root/t/specs/api2.json
diff options
context:
space:
mode:
authorfranck cuny <franck@lumberjaph.net>2010-10-25 17:23:14 +0200
committerfranck cuny <franck@lumberjaph.net>2010-10-25 17:23:14 +0200
commit6c5dba1f8d4d012cf4a9d1e10fd20094a737b071 (patch)
tree47c8ba1b25126557e3504bd1d600a335ad87ecc0 /t/specs/api2.json
parentupdate tests to use the dummy api, and replace api_base_url with base_url (diff)
downloadnet-http-spore-6c5dba1f8d4d012cf4a9d1e10fd20094a737b071.tar.gz
api spec can be modularized:
* add two new methods: new_from_specs and new_from_strings theses two methods can receive more than one description to create a client * add tests and api desc
Diffstat (limited to 't/specs/api2.json')
-rw-r--r--t/specs/api2.json20
1 files changed, 20 insertions, 0 deletions
diff --git a/t/specs/api2.json b/t/specs/api2.json
new file mode 100644
index 0000000..7341405
--- /dev/null
+++ b/t/specs/api2.json
@@ -0,0 +1,20 @@
+{
+ "name": "Test API",
+ "methods" : {
+ "get_projects" : {
+ "authentication": true,
+ "path" : "/projects/show",
+ "method" : "GET",
+ "optional_params" : [
+ "name"
+ ]
+ },
+ "get_project_info" : {
+ "required_params" : [
+ "project"
+ ],
+ "path" : "/project/show",
+ "method" : "GET"
+ }
+ }
+}