Skip to content
/ q-rest Public

Extensible framework for Queries over HTTP

License

Notifications You must be signed in to change notification settings

pamidur/q-rest

Repository files navigation

Q-Rest Reference

Project Status

Build Status

Package Stable Latest
QRest.Core Nuget NuGet Pre Release
QRest.AspNetCore NuGet NuGet Pre Release
QRest.Semantics.OData NuGet NuGet Pre Release

HowTo

Install

dotnet add package QRest.AspNetCore

Use

[HttpGet("{query?}")]
public ActionResult Get(Query query)
{
      var data = collection.AsQueryable();
      var result = query.Apply(data);   
      return Ok(result);
} 

Execute

GET http://localhost:5000/api/data/-where(:Text-eq(`123`))-take(10)

See more on supported method in wiki