on 08-29-2017 9:26 PM
Hi,
We have created xsodata on the HANA View and everything works fine. I can get the data by calling the service as well.
I could get the metadata also by appending $metadata in the URL. It gives the result in the XML format.
Now, I tried to get the metadata of the xsODATA in JSON format by putting this:
myService.xsodata/$metadata?$format=json
But, it gives below error.
{ "error": { "code": "", "message": { "lang": "en-US", "value": "Not Acceptable: Requested resource is only capable of generating response entities which have content characteristics not acceptable according to the request's HTTP 'Accept' header."}}}
Not sure what is wrong or whether it is allowed or not.
I can get the actual data in the JSON format without any issue. It is just the metadata getting in json format gives this error.
Thanks,
Bhavik
Thanks Gowthami Bhogireddy
That confirms my doubt. I thought it was not supported, but wanted to get confirmation from others that my assumption is correct.
-bhavik
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.