Histórico da Página
...
Bloco de código | ||
---|---|---|
| ||
... DEFINE OUTPUT PARAM jsonOutput AS JsonObject NO-UNDO. DEFINE VARIABLE oJsonObject AS JsonObject NO-UNDO. ASSIGN oJsonObject = NEW JSONObject(). CREATE RowErrors. ASSIGN RowErrors.ErrorNumber = 1 RowErrors.ErrorDescription = "Descrição do alerta" RowErrors.ErrorSubType = "warning". jsonOutput = JsonAPIResponseBuilder:asWarning(oJsonObject, TEMP-TABLE RowErrors:HANDLE). /* ou */ jsonOutput = JsonAPIResponseBuilder:asWarning(oJsonObject, 201, TEMP-TABLE RowErrors:HANDLE). /* retorna status 401 */ ... |
...
Visão Geral
Import HTML Content
Conteúdo das Ferramentas
Tarefas