From: Jørn Wildt <j...@fjeldgruppen.dk>
Date: Wed, 3 Oct 2012 07:11:20 +0200
Local: Wed, Oct 3 2012 1:11 am
Subject: Re: [api-craft] Building an SDK for your API
> yes I know if all web APIs were all hypermedia we'd only need one client
SDK per language, and that assuming we had a standard for hypermedia. But I
digress... I have actually taken that approach in my current work - exposing a case
The idea is to have a generic HTTP (C#) client that works with the REST
Let me give an example ...
The generic client is "Ramone" (see
The SDK defines "const" values for link relations:
class MySDK
}
The SDK defines classes that represent the wire format:
class MySDK_CaseFile
}
The SDK defines media codecs (see
http://soabits.blogspot.dk/2012/04/ramone-media-types-and-codecs.html) for transforming between the wire format and the SDK classes. Ramone has built-in support for JSON and XML (and HTML) transformations, so often this is not required. The service is assumed to present a service document at a well known URL
From here the generic client just "follows its nose" using hyper media and
/Jørn
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||