Hello,
I am trying to get a better understanding of the workings of the REST API Endpoint we can add to a semantic model. Specifically what certain actions do withing the whole framework. I'll sketch my case below:
We have configured and deployed a working API Endpoint that contains a table Currency_Rates (From_code, To_code, Date). The endpoint is called api-endpoint and the the webserver is called webserver-endpoint. We have everything working properly: so we can successfully make the following request:
R1 = <URL>/api-endpoint/data/Currency_Rates?$Top=2&$OrderBy=Date desc
.
Now I change the name of the date column: Date → Curr_date. This means, I would now like to start using
R2 = <URL>/api-endpoint/data/Currency_Rates?$Top=2&$OrderBy=Curr_date desc
.
Furthermore I would expect R1 to return with an error.
Now please consider the following actions:
- Deploying the instance/endpoint (← nothing to deploy according to TX)
- Saving the instance (as the deployed version)
- Clicking the “request to refresh config” in the portal (see image below)
- Recycle application
My questions:
- If I click on deploy, then I get a message that there is nothing to deploy. I would not expect this, considering I just made a change to the model. Why is this? And what does deploying do for a REST API endpoint?
- The only way I can get my changes to take effect (ie. R1 error; R2 json response) is do perform actions 2 and 4. Is this the way? Personally I would rather not have to recycle the application after every change.
- What does/should action 3 do? I didn't see any changes after the refresh request.
- What are the minimal actions according to TX that should be taken for changes to the semantic model to be visible through the endpoint? Or in other words: is may way of working correct?
Sorry for the overload of questions. Just trying to get a grip on this new endpoint.
Kind regards,
Benny Aalders