Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

바인딩 변수 정의

Expressions

{{: }}

Param

Parent response result

Value

Method

MethodHelper.java 참조

ID

Description

sysdate

{{:sysdate}}

"2020-10-22T09:49:28.374+0000"

today

{{:today}}

"20201022"

dateFormat

stringFormat

decimalFormat

substringBefore

substringAfter

replace

replaceAll

contains

substring

max

or

isNullYn

isNotNullYn

decode

decodeEmpty

replaceMulti

remove

unHtml

isNotNullStr

isNullStr

default

defaultVal

decodeVal

decodeValEmpty

aboveInt

belowInt

excessInt

underInt

equalsVal

equals

notEquals

makeIdValue

conditionSysdate

weekDate

addDate

addDateTime

getEnvValue

fileName

getLastCode

getNode

getList

add

subtract

multiply

divide

Method can be customized

...

Code Block
[
  {
    "typeId": "apiCategory",
    "id": "snack",
    "categoryName": "snack API",
    "dateFormat": "yyyy-MM-dd HH:mm:ss",
    "fileUrlFormat": {
      "default": "{{:getEnvValue('core.cluster.api-url-prefix')}}"
    },
    "commonParameters": [
      {
        "parameter": "_siteId",
        "required": true
      }
    ],
    "commonResponse": [
    ]
  },
  {
    "typeId": "api",
    "category": "snack",
    "apiId": "list",
    "apiName": "snack List",
    "apiType": "service",
    "method": "GET",
    "parameters": [
    ],
    "statistic": true,
    "aggregation": false,
    "root": {
      "configId": "root",
      "tid": "snack",
      "type": "query",
      "query": [
        {
          "method": "matching",
          "field": "name",
          "value": "{{:name}}"
        }
      ],
      "response": [
        {
          "field": "id",
          "type": "field",
          "value": ""
        },
        {
          "field": "name",
          "type": "field",
          "value": ""
        },
        {
          "field": "scoreList",
          "type": "config",
          "config": [
            {
              "tid": "snackScore",
              "type": "query",
              "query": [
                {
                  "method": "sorting",
                  "value": "score desc"
                },
                {
                  "method": "matching",
                  "field": "snack",
                  "value": "{{:id}}"
                }
              ],
              "response": [
                {
                  "field": "id",
                  "type": "field",
                  "value": ""
                },
                {
                  "field": "score",
                  "type": "field",
                  "value": ""
                }
              ]
            }
          ]
        }
      ]
    }
  }
]

...