Skip to content

Latest commit

 

History

History
65 lines (54 loc) · 1.25 KB

File metadata and controls

65 lines (54 loc) · 1.25 KB

Get all by parent

If the term has no parent: name of the dictionary is used as parent option.

GET /termAllByParent/Овощи?limit=5 HTTP/1.1
Content-Type: application/json

Put one item

To dictionary (First items in dictionary):

POST /term HTTP/1.1
Content-Type: application/json

{
  "dictionaryId": "3e3e9614-7032-4f04-bd9f-523c3b74f3d4",
  "term": "Огурец",
}

To parent term (Nested terms):

POST /term HTTP/1.1
Content-Type: application/json

{
  "dictionaryId": "3e3e9614-7032-4f04-bd9f-523c3b74f3d4",
  "parentId": "023370f2-1ef3-4968-ae6a-315242b6c757",
  "term": "Корнишон",
}

Put multiple items

To dictionary (First items in dictionary):

POST /termAll HTTP/1.1
Content-Type: application/json

{
  "dictionaryId": "3e3e9614-7032-4f04-bd9f-523c3b74f3d4",
  "terms": [
    {"term": "Огурец"}
    {"term": "Помидор"}
    {"term": "Картофель"}
  ]
}

To parent term (Nested terms):

POST /termAll HTTP/1.1
Content-Type: application/json

{
  "dictionaryId": "3e3e9614-7032-4f04-bd9f-523c3b74f3d4",
  "parentId": "023370f2-1ef3-4968-ae6a-315242b6c757",
  "terms": [
    {"term": "Корнишон"}
    {"term": "Пикули"}
    {"term": "Салатный"}
  ]
}