Questions tagged [restier]

RESTier is a turn-key library for building RESTful services on top of OData

RESTier is a RESTful API development framework for building standardized, OData V4 based REST services on .NET. It can be seen as a middle-ware on top of Web API OData. RESTier can provide convenience to bootstrap an OData service and add business logic like what WCF Data Services does as well as flexibily and easy customization like what Web API OData does.

GitHub Link - https://github.com/OData/RESTier

GitHub Documentation Link - http://odata.github.io/RESTier/

29 questions
7
votes
1 answer

How to Implement Minimal Controller

I have an ASP.NET Core 1.1 Web Project. I have installed Microsoft.OData.Core and followed linked "Getting Started" under http://odata.github.io/. Both the following Links on that page are for .Net 45 “Build an OData v4 Service with RESTier…
ttugates
  • 5,818
  • 3
  • 44
  • 54
6
votes
1 answer

Restier - Entity Framework - LOADMEMORYQUERY

I'm working with Restier which sits on top of the Entity Framework and Web API. When I make a call with a $top operator: /entitySet?$top=10 The resultant query captured by the interceptor debugger is as follows: LOADMEMORYQUERY 'SELECT * FROM…
4
votes
1 answer

difference between odata webapi and RESTier?

I am looking at implementing an odata solution and both web api and RESTier are listed as viable v4 odata libraries in the odata.org libraries. They both seem to use odata core. What are the differences? I am looking into specifically…
Ben Anderson
  • 7,003
  • 4
  • 40
  • 40
4
votes
0 answers

Filter multi-tenant data with RESTier

I have a multi-tenant database, where each table in my database has a "tenant_id" column. I'd like to expose an OData service over this database using RESTier, where each request to my service will include a JWT that contains a claim indicating…
2
votes
1 answer

IChangeSetItemAuthorizer in RESTier 1.0

Can anyone point me to an example project using IChangeSetItemAuthorizer for custom authorization in RESTier 1.0.
John Little
  • 778
  • 6
  • 14
2
votes
1 answer

OData Restier - what for this suitable ? Is it worth to use it in production?

I need the opinion of the person who has used/uses 'Restier' in the production. I see some issues - security is disabled by default - all data can be read by the user who is not even authorized on site. Even if we plan to restrict some data - you…
paulpeters
  • 158
  • 9
1
vote
1 answer

dynamically adding an array to a resource in run time

I have a custom ODataResourceSerializer which under some conditions adds new properties to a resource, that works perfectly. I am trying to add a new simple int[] property the resource is a dynamic resource that is registered at runtime and does not…
mottibec
  • 146
  • 1
  • 6
1
vote
0 answers

How to access query options inside RESTier Operation

I have configured a RESTier interface to my EF6 database model and have defined an operation which takes country code as an argument. This operation returns a listing of products in the company inventory (objects of type InvMaster), each InvMaster…
A. Minnitt
  • 13
  • 4
1
vote
1 answer

Feed restier from external DBcontext

I have separate DAL and need to feed restier controller from it. Is it possible to use dbcontext from another assembly ? also I am trying it but getting error on connection string to dbcontext.
habib salimi
  • 116
  • 2
  • 8
1
vote
0 answers

Expose a computed property with Restier and delegateDecompiler

I'm testing C# and Restier library. As many people, I try to expose a person's "FullName" property of an entity framework model, and Restier refuses to expose it. public partial class User { public User() { } public…
Kiruahxh
  • 1,276
  • 13
  • 30
1
vote
1 answer

Restier getting stored procedure function to work HTTP request

I have a RESTier Website using the latest version. All my entities and views I created from the database with EF 6 work fine, but I cannot seem to get the stored procedures I brought in to work. As the documentation is a little sparse I'm not sure…
patrickL
  • 23
  • 4
1
vote
1 answer

RESTier Guid primary key 404 not found

I have an issue with RESTier if primary key is guid instead of int. I can get all entities with url/restierapi/entity, but when i try to get single entity with url/restierapi/entity(guid) response is Not Found, but if I try…
fileman
  • 33
  • 6
1
vote
2 answers

How to have one single RESTier 0.6.0 service picking the database depending on the request?

Scenario A: Suppose you have several databases on the same SQL Server/SQL Azure instance sharing the exact same structure, where the database names are convention based, like db001, db002, ... and a single RESTier service must be able to address the…
Alberto Silva
  • 382
  • 3
  • 12
1
vote
0 answers

How do I use Windows Authentication with RESTier 0.5.0

For the purposes of custom authorization I need to find out who the current user is so I can determine if they are authorized. Can I use the [Authorize] Attribute to force Windows Authentication? Can I then use Thread.CurrentPrincipal to…
John Little
  • 778
  • 6
  • 14
1
vote
1 answer

Restier unbound function throwing error at the time of returning the object

I have defined an unbound function with restier which returns a list of a poco object. It works as expected but fails at the time of returning the object. It fails to serialize the object into json when it returns it. The default serilization is not…
Aninda Sen
  • 63
  • 1
  • 7
1
2