flukus
flukus

Reputation: 1028

Creating a REST client API

I'm currently looking into options for creating a client API for a RESTfull application. Up until now we have had WCF services to allow all application to connect to the Business Layer and we're growing dissatisfied with it.

We already have most of the infrastructure in place for the web (html and json requests) but we need to access the services from other applications (some will be linked against the main web app models library, others won't be).

I've been reading about WADL here and here and it seems like it would be beneficial. We could generate the wadl, the client libraries and use it to check javascript urls.

I would like to know what others have used, what worked and what didn't.

Upvotes: 2

Views: 4318

Answers (4)

Aaron McAdam
Aaron McAdam

Reputation: 706

Try this web app: FRAPI. It's quite impressive

Upvotes: 0

Ken
Ken

Reputation: 377

iBeans is a new open source project that is attempting to provide a solution to this. iBeans (Integration Beans) are client APIs for RESTful or other services. Currently iBeans does require a server (you can drop the framework into Tomcat quite easily) and can be used from Javascript or java applications.

Upvotes: 0

Jonathan Arkell
Jonathan Arkell

Reputation: 10804

A good rest client API is a set of wrappers around curl, wget, or your language specific HTTP libraries. You might need some extra methods or functions to deal with the specifics of your application as well (i.e. specialized XML/JSON parsing), but that should be about it.

Upvotes: 3

Iannick
Iannick

Reputation:

In the REST architecture:

  • The resources link to their description documents, if they have one, not the other way around.
  • The resources are not complex (not RPC like), thus there is usually no need for a description document.
  • Loose Coupling is king; contracts are both unnecessary and harmful.
  • Resources link to each others, removing most of the need for resource discovery services.

Upvotes: 1

Related Questions