When querying /layers/{layer}/styles, a list of styles for that layer is returned, with links to the REST locations of those styles. Trying to visit any of those links returns a 404. These should be updated to link to the correct styles, under /styles/{style} or /workspaces/{workspace}/styles/{style}. Note that the pre-REST-API refresh REST API does support GETing styles from /layers/{layer}/styles/{style}, however this seems to be simply a happy accident, as that endpoint is not registered in the application context, and /layers/{layer}/styles/{style} behaves exactly the same as /layers/{layer}/styles/foo/bar{style} (note the foo/bar). If we wanted to retain this functionality, we should still update the links, and merely retain the /layers/{layer}/styles/{style} for legacy compatibility. |