Versions Compared

Key

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

공지사항 게시판을 만들어 보자..

...

GET {{protocol}}://{{hostname}}:{{port}}/node/nodeType/noticeBoard

GET {{protocol}}://{{hostname}}:{{port}}/node/nodeType/read.json?id=noticeBoard

GET {{protocol}}://{{hostname}}:{{port}}/node/nodeType/list.json?id_matching=noticeBoard

GET {{protocol}}://{{hostname}}:{{port}}/node/propertyType/list.json?tid_matching=noticeBoard

...

  • primary key 가 없으면

    Status
    colourRed
    titlecreate
    , 있으면
    Status
    colourYellow
    titleupdate

...

Custom API

api Cartegory

  • id, categoryName 작성

Code Block
languagejson
[
  {
    "typeId": "apiCategory",
    "id": "notice",
    "categoryName": "Notice Board  API",
    "dateFormat": "yyyy-MM-dd HH:mm:ss",
    "fileUrlFormat": {
      "default": "{{:getEnvValue('core.cluster.api-url-prefix')}}"
    },
    "commonParameters": [
      {
        "parameter": "apiKey",
        "required": false
      }
    ],
    "commonResponse": [
      {
        "field": "time",
        "type": "field",
        "value": "{{:sysdate}}"
      }
    ]
  }
]

Api Context Path API

Status
colourYellow
titlefront
/svc/

Status
colourGreen
titleADMIN
/adm/

Status
colourBlue
titlemanager

...

...

Status
colourYellow
titleFront
공지사항 리스트

...