Hi,
It's a nice feature that you can map any http header name/value pair to an input parameter of an AppServer method invoked via REST.
I'm trying to see if we can use the Accept header value to request specific versions of a dataset schema.
I am trying to allow consumers to do requests like this:
GET /customer/123 HTTP/1.1
Accept: application/vnd.company.myapp.customer-v3
Where vnd.company.myapp.customer-v3 would indicate version 3 of the customer.
However in postman the REST adapter responds with http 406 (not acceptable).
Are custom content-types something we can make use of with the REST adapter. This seems to be common in the .NET world.
Alternative would be to use a custom http header (Version) which seem to work.
OpenEdge Release 11.4, by the way
[/collapse]Reply by Mike FechnerOpenEdge Release 11.4, by the way
Stop receiving emails on this subject.Flag this post as spam/abuse.
Reply by Mike FechnerOpenEdge Release 11.4, by the way
Stop receiving emails on this subject.Flag this post as spam/abuse.
Flag this post as spam/abuse.
Just tested that I can send
application/json,application/vnd.company.myapp.customer-v3
as the Accept header. This works with the REST Adapter and in the ABL Code I can still play around with the Interface version.