https://github.com/pamidur/q-rest
Extensible framework for Queries over HTTP
https://github.com/pamidur/q-rest
core dotnet dotnet-core http linq net netcore odata odata-server query server web
Last synced: about 1 month ago
JSON representation
Extensible framework for Queries over HTTP
- Host: GitHub
- URL: https://github.com/pamidur/q-rest
- Owner: pamidur
- License: mit
- Created: 2016-09-12T14:28:13.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-06-07T13:47:48.000Z (almost 2 years ago)
- Last Synced: 2025-04-12T12:55:25.113Z (about 2 months ago)
- Topics: core, dotnet, dotnet-core, http, linq, net, netcore, odata, odata-server, query, server, web
- Language: C#
- Homepage:
- Size: 657 KB
- Stars: 21
- Watchers: 5
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Q-Rest Reference
========================## Project Status
[](https://travis-ci.org/pamidur/q-rest)Package | Stable | Latest
--- | --- | ---
**QRest.Core** | [](https://www.nuget.org/packages/QRest.Core) | [](https://www.nuget.org/packages/QRest.Core)
**QRest.AspNetCore** | [](https://www.nuget.org/packages/QRest.AspNetCore) | [](https://www.nuget.org/packages/QRest.AspNetCore)
**QRest.Semantics.OData** | [](https://www.nuget.org/packages/QRest.Semantics.OData) | [](https://www.nuget.org/packages/QRest.Semantics.OData)## HowTo
#### Install
```
dotnet add package QRest.AspNetCore
```#### Use
```csharp
[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](https://github.com/pamidur/q-rest/wiki/Method-Chain-Semantics)