Package | Stable | Latest |
---|---|---|
QRest.Core | ||
QRest.AspNetCore | ||
QRest.Semantics.OData |
dotnet add package QRest.AspNetCore
[HttpGet("{query?}")]
public ActionResult Get(Query query)
{
var data = collection.AsQueryable();
var result = query.Apply(data);
return Ok(result);
}
GET http://localhost:5000/api/data/-where(:Text-eq(`123`))-take(10)
See more on supported method in wiki