rest - Apiary JSON request parameter testing -
is there way test json request parameters apiary?
currently, have simple api json request few parameters laid out using + parameters
tag throwing warnings tags have not been included in uri template. see below.
# grouping authentication ## registration [/registeruser] ### regster user [post] + parameters + id (string) ... unique. + request (application/json) { "fb_id": "1097642000199029910322322987867", "fb_token": "84uh8dsu9f84932h098dhsfhdsjf94021", "fb_token_type": 1 } + response 200 (application/json) { ... }
further, unable test these parameters in console provided. not supported or doing wrong?
the parameters
used defining uri template parameters. when define item in parameters
, should reference field in url. example:
# grouping authentication ## registration [/registeruser/{id}] ### regster user [post] + parameters + id (string) ... unique. + request (application/json) { "fb_id": "1097642000199029910322322987867", "fb_token": "84uh8dsu9f84932h098dhsfhdsjf94021", "fb_token_type": 1 } + response 200 (application/json) { ... }
notice i've added {id}
url. corresponds id
listed in parameters
section. getting error in warning because there no {id}
in url.
json rest apiary
No comments:
Post a Comment