什么';这类API的专业术语是什么?
一个URL,在该URL的末尾添加参数,并返回给定特定参数的结果,例如:什么';这类API的专业术语是什么?,api,http,https,Api,Http,Https,一个URL,在该URL的末尾添加参数,并返回给定特定参数的结果,例如: api.website.com/something.json?foo=2&bar=1常见的方式与您提到的方式类似 domain/cgi_path?param_0=val_0&...¶m_n=val_n 但它也可能出现在任何其他类似的计划中 domain/cgi_path/sub_path_as_param <<-- note the subpath as param instead o
api.website.com/something.json?foo=2&bar=1常见的方式与您提到的方式类似
domain/cgi_path?param_0=val_0&...¶m_n=val_n
但它也可能出现在任何其他类似的计划中
domain/cgi_path/sub_path_as_param <<-- note the subpath as param instead of param
domain/images/2 <<-- instead of domain/images?page=2
最后,你可以随心所欲,看起来很轻松。但是请记住为它制作一个很好的文档。
/something
是一个接受querystring参数的端点。不确定我是否见过包含.json
的端点URL。。。
domain?pg=cgi_path?args=blah_blah <<-- note the path as arg for one global path
domain/cgi_path?arg0=val0&response_type=xml
domain/cgi_path/xml?arg0=val0