-
Notifications
You must be signed in to change notification settings - Fork 35
frontend: change view attributes endpoint location #783
Comments
getData with attributes is understandable (because we are getting attributes) but we need then to populate to every getData endpoint (window, process, etc) patch is also okay, we are patching changes for attributes (but we have to populate also to other entities) dropdown and typeahead are totally wrong, /attributes/attribute is misleading. if we want to attributes we should get rid of attribute, so:
layout should be as it was, because we are getting layout for docView, not layout for attributes And to clarify, i don’t want to evaluate your changes and ideas. I just think that we created very nice protocol, and dont want to make step backward. Of course that i can add everywhere hardocded prefix, but our schema now is handling every place in application! So it is really nice. |
If we are talking about GET /rest/api/documentView/{windowId}/{viewId}/{rowId}/layout then we are talking about attributes layout. And basically the whole REST controller ( http://w101.metasfresh.com:8081/swagger-ui.html#/view-row-attributes-rest-controller-_-old ) is offering services around attributes. So the only change that has to be done is to change the view row attribute's root endpoint Because,
About the attribute specific endpoints (/rest/api/documentView/{windowId}/{viewId}/{rowId}/attribute/{attributeName}/dropdown and typeahead),
In conclusion, we either go with this approach or we come up with a new solution but which addresses the issues which this task is supported to solve:
|
Maybe we should consider if it's really needed to have /attributes everywhere because something like this /attributes/attribute might look not good. |
Hi Kasia, i also don't like it but so far that's the only case. |
Btw, i believe everything was done for now (on other tasks), so i would close this ticket. |
What is the current behavior?
Current view attributes endpoint is /rest/api/documentView/{windowId}/{viewId}/{rowId}
What is the expected or desired behavior?
Change it to: /rest/api/documentView/{windowId}/{viewId}/{rowId}/attributes
i.e. we will append the "/attributes" because we want to avoid overlapping with other endpoints will be based on current view row (/rest/api/documentView/{windowId}/{viewId}/{rowId}).
Which are the steps to reproduce?
Browse some HUs in https://w101.metasfresh.com:8443/window/540189
Mind the attributes related endpoint calls.
Backend task: metasfresh/metasfresh-webui-api-legacy#409
The text was updated successfully, but these errors were encountered: