Does the client implement post request ? #19

Open
jojax opened this Issue Sep 18, 2012 · 0 comments

Comments

Projects
None yet
1 participant

jojax commented Sep 18, 2012

I manage to get a client from spec wich is pretty cool i admit.But i cannot find how to specify in the spec api, form_data i want to post to an url endpoint. Here is a sample of the spec api I try to implement.

{
"name": "Ducksboard Test API",
"version": "1.0",
"formats": [
"json"
],
"base_url": "https://push.ducksboard.com/",
"methods" : {
"push_values" : {
"required_params" : [
"id"
],
"path" : "/values/:id",
"method" : "POST",
"authentication" : true,
"expected_status": [200, 400, 401, 404, 413, 500]
}
},
"api_format" : [
"json"
]
}

I want a be able to post json data ( {"value":data}) to https://push.ducksboard.com/values/:id

Thanks in advance for your response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment