Skip to content

Commit

Permalink
documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
rsoika committed Nov 22, 2019
1 parent 5869beb commit 04e7142
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ public Response countTotalPagesByQuery(@PathParam("query") String query,
@POST
// @Path("/") generates jersey warning
@Produces(MediaType.APPLICATION_XML)
@Consumes({ MediaType.APPLICATION_XML, MediaType.TEXT_XML })
@Consumes({ MediaType.APPLICATION_XML, MediaType.TEXT_XML, MediaType.APPLICATION_JSON, })
public Response postEntity(XMLDocument xmlworkitem) {
if (servletRequest.isUserInRole("org.imixs.ACCESSLEVEL.MANAGERACCESS") == false) {
return Response.status(Response.Status.UNAUTHORIZED).build();
Expand Down Expand Up @@ -405,7 +405,7 @@ public Response postEntity(XMLDocument xmlworkitem) {
@PUT
// @Path("/") generates jersey warning
@Produces(MediaType.APPLICATION_XML)
@Consumes({ MediaType.APPLICATION_XML, MediaType.TEXT_XML })
@Consumes({ MediaType.APPLICATION_XML, MediaType.TEXT_XML, MediaType.APPLICATION_JSON, })
public Response putEntity(XMLDocument xmlworkitem) {
logger.finest("putEntity @PUT / delegate to POST....");
return postEntity(xmlworkitem);
Expand Down
4 changes: 3 additions & 1 deletion src/site/markdown/restapi/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ The disadvantage of the _JSON Mapped Notation_ is that you can't define the valu
{"@type":"xs:string","$":"more data"}
]}
]}


The typed JSON format is supported only by the [workflow resource](workflowservice.html) (/workflow/) to post business data to be processed by the Imixs-Worklfow engine.

**Note:** Depending on the Rest Service Implementation the JSON format for response object can vary.


Expand Down
2 changes: 2 additions & 0 deletions src/site/markdown/restapi/workflowservice.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ The methods PUT, POST allow to create and process a workitem or a task list:
| /workflow/workitem | POST | posts a workitem, to be processed by the workflow manager. To update an existing workitem, the attribute $uniqueid must be provided as part of the data structure. The media types application/xml, application/json and x-www-form-urlencoded are supported. |
| /workflow/workitem/{uniqueid}| POST | posts a workitem by uniqueid, to be processed by the workflow manager. The media types application/xml, application/json and x-www-form-urlencoded are supported. |
| /workflow/tasklist | POST | posts a list of workitems to be processed by the workflow manager. The media type application/xml is supported. |
| /workflow/workitem/typed | POST | posts a workitem in the typed JSON Format, to be processed by the workflow manager. To update an existing workitem, the attribute $uniqueid must be provided as part of the data structure. Only the media types application/json is supported. |
| /workflow/workitem/{uniqueid}| POST | posts a workitem by uniqueid in the typed JSON Format, to be processed by the workflow manager.Only the media types application/json is supported. |



Expand Down

0 comments on commit 04e7142

Please sign in to comment.