Popcorn is a .Net Middleware for your RESTful API that allows your consumers to request exactly as much or as little as they need, with no effort from you.
This project is maintained by Skyward App Company
There are two methods to get the code into your solution:
Install-Package Skyward.Api.Popcorn
and repeat for the Skyward.Api.Popcorn.WebApiCore package and others as desired.Now that the project is available, you can quickly get up and running by configuring the MvcOptions in your UseMvc call.
services.AddMvc((mvcOptions) =>
{
mvcOptions.UsePopcorn((popcornConfig) => {
popcornConfig
.Map<*SourceType*, *DestinationType*>()
*...Repeat...*;
});
});