Skip to content

pavlospap/CoreAPIDirect

Repository files navigation

CoreAPIDirect

REST API library for ASP.NET Core

license

GitHub forks GitHub stars

Table of Contents

Installation

Install-Package CoreAPIDirect

Usage

public void ConfigureServices(IServiceCollection services)
{
    // Add with default options
    services.AddCoreApiDirect();

    // Add and configure options at once
    services.AddCoreApiDirect(options =>
    {
        options.MaxPageSize = 25;
        options.PageSize = 15;
    });

    // Configure options first and then add
    services.Configure<CoreOptions>(options =>
    {
        options.MaxPageSize = 25;
        options.PageSize = 15;
    });
    services.AddCoreApiDirect();
}

Documentation

The documentation for the CoreAPIDirect library is located in this repo's wiki.

License

MIT