Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 3 months 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 (over 1 year ago)
- Last Synced: 2024-05-29T07:41:48.380Z (7 months ago)
- Topics: core, dotnet, dotnet-core, http, linq, net, netcore, odata, odata-server, query, server, web
- Language: C#
- Homepage:
- Size: 657 KB
- Stars: 15
- Watchers: 6
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Q-Rest Reference
========================## Project Status
[![Build Status](https://travis-ci.org/pamidur/q-rest.svg?branch=master)](https://travis-ci.org/pamidur/q-rest)Package | Stable | Latest
--- | --- | ---
**QRest.Core** | [![Nuget](https://img.shields.io/nuget/v/QRest.Core?label=stable)](https://www.nuget.org/packages/QRest.Core) | [![NuGet Pre Release](https://img.shields.io/nuget/vpre/QRest.Core?label=latest)](https://www.nuget.org/packages/QRest.Core)
**QRest.AspNetCore** | [![NuGet](https://img.shields.io/nuget/v/QRest.AspNetCore?label=stable)](https://www.nuget.org/packages/QRest.AspNetCore) | [![NuGet Pre Release](https://img.shields.io/nuget/vpre/QRest.AspNetCore?label=latest)](https://www.nuget.org/packages/QRest.AspNetCore)
**QRest.Semantics.OData** | [![NuGet](https://img.shields.io/nuget/vpre/QRest.Semantics.OData?label=stable)](https://www.nuget.org/packages/QRest.Semantics.OData) | [![NuGet Pre Release](https://img.shields.io/nuget/vpre/QRest.Semantics.OData?label=latest)](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)