51 packages tagged with “HAL”
C#/.NET Core implementation of Hypertext Application Language (HAL).
HAL Models for producing HAL Json
Adds HAL support to ASP.NET Core
Specialized HTTP Client for communicating with Qlib v3
Adds HAL support to ASP.NET WebAPI
A transformer for ASP.NET Core to produce HAL+JSON responses.
A lightweight fluent .NET client for navigating and consuming HAL APIs. Includes support for .NET Standard.
Hallo is a content negotiated implementation of the HAL hypermedia format for ASP.NET Core.
Umbraco REST Api for working with content, published content, media and member data
Provides Hal+JSON media type support for Nancy.
A dotnet/c# implementation of the Hypertext Application Language (HAL+json) specification for RESTful Web Apis
Portable HAL client for .NET. There's a CSharp version for CS.
Portable HAL client for .NET wrapped in a CSharp friendly wrapper
Analyzers for a transformer for ASP.NET Core to produce HAL+JSON responses.
Contains Resource Models exposed by a Service's Public API.
This package can deserialize any String, Stream, or StreamReader (On HAL+JSON format or not) provided by a web api response. Installation: On the package console run : Install-Package HALJSonDeserializer Usage: After installation you must include the namespace of the package where you will use it: using haljson; So now: suppose that you want to call a web api via "http://localhost:8080/customer" in your c# code and to parse it into your custom type called "Customer". This can be done simply as follows: Customer theCustomer = HALJSonDeserializer.GetAndParse<Customer>("http://localhost:8080/customer"); For async call you can do this: Customer theCustomer = await HALJSonDeserializer.GetAndParseAsync<Customer>("http://localhost:8080/customer"); If you have to retrieve a specific customer with FirstName and LastName as Arguments: GetCustomerRequestArg arg = new GetCustomerRequestArg{FirstName="Bart",LastName="Hansen"}; Customer theCustomer = await HALJSonDeserializer .GetAndParseAsync<GetCustomerRequestArg, Customer>("http://localhost:8080/customer", arg); What about the post request? To post a request with parametters and receive a response you can do so: Create a Class For your request arguments here "GetFullNameRequest" and an other Class for the response here "GetFullNameResponse". GetFullNameRequest arg = new GetFullNameRequest{FirstName="Bart",LastName="Hansen"}; GetFullNameResponse fulName = await HALJSonDeserializer.PostAndParseResponseAsync<GetFullNameRequest,GetFullNameResponse>("http://localhost:8080/GetFullName",arg); If you just want to deserialize a Stream, a StreamReader or a string, there are three extension methods for them. You can do that as follows: Customer theCustomer = myStream.ToObject<Customer>(); //For a Stream Customer theCustomer = myStreamReader.ToObject<Customer>(); //For a StreamReader Customer theCustomer = myString.ToObject<Customer>(); //For a string
Plug-In allowing for the configuration of REST/HAL based resources.
A simple HAL formatter for ASP.NET Web API.
Typesafe, low-level bindings for wgpu_native based on CoreInvoke.
Contains implementations shared between the client and server.
Package contains contract resolver for JSON.NET and some tools for configuring your models for serialization. You can read about HAL JSON here: http://stateless.co/hal_specification.html
Plug-In allowing for the specification of documention for REST/HAL APIs.
Web Api HAL Hypermedia Formatter
HAL operators for FluentRestBuilder.