Search in sources :

Example 1 with JSONASILayout

use of de.metas.ui.web.pattribute.json.JSONASILayout in project metasfresh-webui-api by metasfresh.

the class ASIRestController method getLayout.

@GetMapping("/{asiDocId}/layout")
public JSONASILayout getLayout(@PathVariable("asiDocId") final String asiDocIdStr) {
    userSession.assertLoggedIn();
    final DocumentId asiDocId = DocumentId.of(asiDocIdStr);
    final ASILayout asiLayout = asiRepo.getLayout(asiDocId);
    return JSONASILayout.of(asiLayout, newJsonOpts());
}
Also used : DocumentId(de.metas.ui.web.window.datatypes.DocumentId) JSONASILayout(de.metas.ui.web.pattribute.json.JSONASILayout) GetMapping(org.springframework.web.bind.annotation.GetMapping)

Aggregations

JSONASILayout (de.metas.ui.web.pattribute.json.JSONASILayout)1 DocumentId (de.metas.ui.web.window.datatypes.DocumentId)1 GetMapping (org.springframework.web.bind.annotation.GetMapping)1