ASP.NET WebApi

This example demonstrates how to use Jdenticon from a WebApi controller. Start by installing the Jdenticon.AspNet.WebApi NuGet package.

PM> Install-Package Jdenticon.AspNet.WebApi

From your API controller, return an instance of an IdenticonResult.

using Jdenticon.AspNet.WebApi;
                    
public class IdenticonController : ApiController
{
    public IdenticonResult Get()
    {
        return IdenticonResult.FromValue("Value to be hashed", size: 100);
    }
}

Provided that you have kept the default API route in your application, you may now access the sample icon at the url http://localhost:<port>/api/identicon.

Read more

API documentation