File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes Bad designed RESTful APIs Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Bad designed RESTful APIs " Watch "Bad designed RESTful APIs " New topic

Bad designed RESTful APIs

William Antônio Siqueira
Ranch Hand

Joined: Jul 08, 2009
Posts: 36

there's a high criticism to RESTful APIs that are bad designed. For example, I'm right now playing with Steam API ( and sadly I'm facing some boring situation. The main topics:

- The xml elements from the API that use the key (please see the URL above) are surrounded by a "response" element in XML representation. Why? We all know that is the response...
- The representation of the resource in a page that use the page open API (try has two main issues: 1 - representation information in URL and 2 when you access a non-existing account the reponse from server is simply a new representations instead a 404 (try

Today we have the Richardson maturity model and a lot of learned lessons from past, but some APIs still born with issues in design.

While we can consume and we have a lot of clients using an API, it will exist even if it has some design issues. A lot has been done in community to spread the real REST principles, but bad designed APIs are consumable and we can build applications using it.

So what is the best motivation big services have to start to create a really RESTful app?

Sure we can list some advantages of using RESTful, but seems sometimes some RESTful APIs creators think like "it's working as it it,so let's keep this way"

The answer isn't "Why", is "How"!
Follow me on Twitter - Speak portuguese? Check out
I agree. Here's the link:
subject: Bad designed RESTful APIs
It's not a secret anymore!