From 6c5dba1f8d4d012cf4a9d1e10fd20094a737b071 Mon Sep 17 00:00:00 2001 From: franck cuny Date: Mon, 25 Oct 2010 17:23:14 +0200 Subject: 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 --- t/specs/api2.json | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 t/specs/api2.json (limited to 't/specs') 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" + } + } +} -- cgit 1.4.1