jaystack / odata-v4-server

With JayStack OData v4 Server you can build your own data endpoints without the hassle of implementing any protocol-level code. This framework binds OData v4 requests to your annotated controller functions, and compiles OData v4 compatible response. Clients can access services through OData-compliant HTTP requests. We recommend the JayData library for consuming OData v4 APIs.
https://jaystack.com/products/jaystack-odata-v4-server/
75 stars 55 forks source link

add support for setting @odata.nextLink on response body #31

Open LCHarold opened 6 years ago

LCHarold commented 6 years ago

This adds support for @odata.nextLink in the response when the result's nextLink property is populated.

This is rather minimally defined at http://docs.oasis-open.org/odata/odata-json-format/v4.0/cs01/odata-json-format-v4.0-cs01.html#_Toc365464689.

The idea here is that we set the nextLink on the response and the caller can use it to get the next page of results when doing pagination.

You can also set the nextLink property on an expanded navigation property's result. If set it will appear in the response body as <navigationPropertyName>@odata.nextLink. This is documented in the spec at http://docs.oasis-open.org/odata/odata-json-format/v4.0/os/odata-json-format-v4.0-os.html#_Expanded_Navigation_Property. In this scenario you've expanded a navigation and need to support pagination through the expanded navigation property.

alexjpaz commented 5 years ago

Has there been any traction on getting this merged? This would be very beneficial to have in the main project.

LCHarold commented 5 years ago

Has there been any traction on getting this merged? This would be very beneficial to have in the main project.

I just emailed viktor.lazar@jaystack.com to see if he's still maintaining this project (and also odata-v4-parser). Jaystack's homepage calls out this project under "Latest News" so if Viktor doesn't respond I guess Jaystack will be the next place to check with.

hakimio commented 5 years ago

@LCHarold @lazarv So, is this project dead?

LCHarold commented 5 years ago

@LCHarold @lazarv So, is this project dead?

Well, I emailed @lazarv but got no response.

Then I emailed @knightburton - another JayStack employee - and got a response back that he would contact Viktor. So that was encouraging. But still no movement.

hakimio commented 5 years ago

@LCHarold when was that?

LCHarold commented 5 years ago

@LCHarold when was that?

@knightburton responded back to me on May 22nd.