Package lumis.service.doui.ai
Class DouiAiResource
- java.lang.Object
-
- lumis.service.doui.ai.DouiAiResource
-
@Path("/lumis/service/doui/ai") public class DouiAiResource extends java.lang.Object
REST endpoints used by the DOUI AI service.- Since:
- 16.0.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DouiAiResource.EditRequest
Request body expected ineditText(javax.ws.rs.container.AsyncResponse, lumis.service.doui.ai.DouiAiResource.EditTextRequest)
.static class
DouiAiResource.EditTextRequest
Edit text request.static class
DouiAiResource.GenerateContentRequest
Generate content request body.static class
DouiAiResource.HtmlControlDescription
Html control description.
-
Constructor Summary
Constructors Constructor Description DouiAiResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
editHtml(javax.ws.rs.container.AsyncResponse response, DouiAiResource.EditRequest editRequest)
Returns the given HTML edited following the given instruction.void
editText(javax.ws.rs.container.AsyncResponse response, DouiAiResource.EditTextRequest editRequest)
Returns the text edited following the instructions.void
generateContent(javax.ws.rs.container.AsyncResponse response, DouiAiResource.GenerateContentRequest generateContentRequest)
Generate content for a given form using AI.
-
-
-
Method Detail
-
editText
@POST @Path("/editText") @Consumes("application/json") @Produces("application/json") public void editText(@Suspended javax.ws.rs.container.AsyncResponse response, DouiAiResource.EditTextRequest editRequest) throws PortalException
Returns the text edited following the instructions.- Parameters:
response
- the asynchronous responseeditRequest
- the request- Throws:
PortalException
- Since:
- 16.0.0
-
editHtml
@POST @Path("/editHtml") @Consumes("application/json") @Produces("application/json") public void editHtml(@Suspended javax.ws.rs.container.AsyncResponse response, DouiAiResource.EditRequest editRequest) throws PortalException
Returns the given HTML edited following the given instruction.- Parameters:
response
- the asynchronous responseeditRequest
- the request- Throws:
PortalException
- Since:
- 16.0.0
-
generateContent
@Path("/generateContent") @POST @Consumes("application/json") @Produces("application/json") public void generateContent(@Suspended javax.ws.rs.container.AsyncResponse response, DouiAiResource.GenerateContentRequest generateContentRequest) throws AccessDeniedException, PortalException
Generate content for a given form using AI.- Parameters:
response
- the asynchronous responsegenerateContentRequest
- the generate content request- Throws:
PortalException
AccessDeniedException
- Since:
- 17.1.0
-
-