Skip to content

Commit

Permalink
#150 drop DocumentViewRestController.getById
Browse files Browse the repository at this point in the history
to fix:
java.lang.IllegalStateException: Ambiguous handler methods mapped for
HTTP path
'http://w101.metasfresh.com:8081/rest/api/documentView/540189/651ce3ad-6fdf-4b60-a994-de34cdd9344d/1002992':

{public de.metas.ui.web.window.datatypes.json.JSONDocument
de.metas.ui.web.view.DocumentViewAttributesRestController.getData(java.lang.String,int),
public de.metas.ui.web.window.datatypes.json.JSONDocument
de.metas.ui.web.view.DocumentViewRestController.getById(int,java.lang.String,java.lang.String)}
  • Loading branch information
teosarca committed Feb 19, 2017
1 parent 908378a commit 7a2dd9a
Showing 1 changed file with 1 addition and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,22 +173,7 @@ public List<JSONDocument> getByIds(
.getByIds(documentIds);
return JSONDocument.ofDocumentViewList(result);
}

@GetMapping("/{viewId}/{id}")
public JSONDocument getById(
@PathVariable(PARAM_WindowId) final int adWindowId //
, @PathVariable("viewId") final String viewId//
, @PathVariable("id") final String idStr)
{
final DocumentId documentId = DocumentId.of(idStr);

final IDocumentView record = documentViewsRepo.getView(viewId)
.assertWindowIdMatches(adWindowId)
.getById(documentId);

return JSONDocument.ofDocumentView(record);
}


@GetMapping("/{viewId}/filter/{filterId}/attribute/{parameterName}/typeahead")
public JSONLookupValuesList getFilterParameterTypeahead(
@PathVariable(PARAM_WindowId) final int adWindowId //
Expand Down

0 comments on commit 7a2dd9a

Please sign in to comment.