How Not to write a "REST" API
api.sharefile.com
How Not to write a "REST" API
1–10 of 117 posts
Re: How Not to write a "REST" API
#2http://nordsc.com/ext/classification_of_http_based_apis.html
Sharefile is not even a HTTP API (since it doesn't use HTTP methods correctly).
For security purposes, authentication can be further increased by a POST of the "username" and "password" through the HTTP Headers as individual headers instead of the query string.
POST https://subdomain.sharefile.com/rest/getAuthID.aspx HTTP/1.1
Content-Type: application/x-www-form-urlencoded
password: yourpassword
username: email@address.com
What... I don't even...
Re: How Not to write a "REST" API
#3Sadly, I can imagine how they got to this point. They were tasked to create an API and they did it with the knowledge and tools that they had.
Re: How Not to write a "REST" API
#4Re: How Not to write a "REST" API
#5Re: How Not to write a "REST" API
#6Looks like an RPC-style API with multiple endpoints + custom authentication scheme.
Re: How Not to write a "REST" API
#7Looks like an RPC-style API with multiple endpoints + custom authentication scheme.
Re: How Not to write a "REST" API
#8Yeesh. According to this chart: http://nordsc.com/ext/classification_of_http_based_apis.html Sharefile is not even a HTTP API (since it doesn't use HTTP methods correctly). For security purposes, authentication can be further increased by a POST of the "username" and "password" through the HTTP Headers as individual headers instead of the query string. POST https://subdomain.sharefile.com/rest/getAuthID.aspx HTTP/1.1…
Re: How Not to write a "REST" API
#9Yeesh. According to this chart: http://nordsc.com/ext/classification_of_http_based_apis.html Sharefile is not even a HTTP API (since it doesn't use HTTP methods correctly). For security purposes, authentication can be further increased by a POST of the "username" and "password" through the HTTP Headers as individual headers instead of the query string. POST https://subdomain.sharefile.com/rest/getAuthID.aspx HTTP/1.1…
Re: How Not to write a "REST" API
#10Yeesh. According to this chart: http://nordsc.com/ext/classification_of_http_based_apis.html Sharefile is not even a HTTP API (since it doesn't use HTTP methods correctly). For security purposes, authentication can be further increased by a POST of the "username" and "password" through the HTTP Headers as individual headers instead of the query string. POST https://subdomain.sharefile.com/rest/getAuthID.aspx HTTP/1.1…
As someone just starting to learn about secure restful web services: what is wrong with this security implementation of theirs?