viagogo / HalKit

A lightweight .NET library for creating and consuming HAL hypermedia APIs
MIT License
16 stars 8 forks source link

"Server" support #9

Open richardszalay opened 9 years ago

richardszalay commented 9 years ago

Hi there,

Has any work been done on the server aspect of HalKit? The intro implies it's for both client and server, but the HEAD appears to be all for consuming HAL services.

Cheers, Richard

akilb commented 9 years ago

Hi Richard,

So far the only server-side usage would be to hook up the HalKit.Json.ResourceConverter in your WebApi application to get support for serializing resources. That would allow you to at least declare your resource models using the RelAttribute and EmbeddedAttribute and have your responses serialized as HAL documents.

The plan is to add another package (maybe called "HalKit.WebApi") that will build on top of HalKit and provide MediaTypeFormatters and other WebApi components that make it easy to get a HAL Api up and running. And of course we'd eventually like to have a package that provides similar functionality for ASP.NET 5.

We'll try and get some issues created to track this work but feel free to open an issue if you have any ideas!

Thanks! Akil