diff options
author | franck cuny <franck@lumberjaph.net> | 2010-10-25 17:23:14 +0200 |
---|---|---|
committer | franck cuny <franck@lumberjaph.net> | 2010-10-25 17:23:14 +0200 |
commit | 6c5dba1f8d4d012cf4a9d1e10fd20094a737b071 (patch) | |
tree | 47c8ba1b25126557e3504bd1d600a335ad87ecc0 /t/specs | |
parent | update tests to use the dummy api, and replace api_base_url with base_url (diff) | |
download | net-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')
-rw-r--r-- | t/specs/api2.json | 20 |
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" + } + } +} |