REST vs .NET APIs

Top  Previous  Next

All the services in the Web3 Platform are RESTful web services. There are no client APIs that connect directly to the underlying data store. This provides the Web3 platform with the ability to scale out and take advantage of the features of HTTP. Client applications can interact directly with the resources exposed by the service but they can use the .NET client APIs. This section provides an overview of the different between using the two models.

 

REST API

The REST API requires that a client retrieves the representation (in XML, JSON) of a given resource (a topic, association, etc) and then if needed updates the representation and sends (Http POST) it back to the same web address from which it retrieved it. All resources in the Web3 Platform have a unique web address.

 

Using this API requires an understanding of the service URI space, the service representations and the HTTP client library on the development platform. The REST API can be accessed and used from any platform or language that supports an HTTP client.

 

If using the REST services from .NET there are already a set of representation classes generated. This removes the need to craft the XML or JSON by hand.

 

.NET API

The .NET API is the suggested way to develop when creating client applications on the .NET platform. The .NET API wraps the REST API to provide a more object-orientated development experience. .NET clients exist for the Topic Map and Schema services.