POST /refUniversal

Request

{
	"propertyId": 4, //required
  "name": "someRefString", //required
	"description": "Some refUniversal",  //optional
  "value": {<любой валидный JSON>}, //optional 
	"order": 3 //optional 
}

Response

{
  "status": 1,
  "message": "",
  "response": {
			"id": 12,
			"propertyId": 4,
		  "name": "someRefString", 
			"description": "Some refUniversal",
		  "value": {<любой валидный JSON>},
			"order": 3
    }
}

PATCH /refUniversal

Request

{
	"id": 12, //required
	"propertyId": 4, //optional
  "name": "someRefString", //optional
	"description": "Some refUniversal", //optional
  "value": {<любой валидный JSON>}, //optional
	"order": 3 //optional
}

Response

{
  "status": 1,
  "message": "",
  "response": {
			"id": 12,
			"propertyId": 4,
		  "name": "someRefString", 
			"description": "Some refUniversal",
		  "value": {<любой валидный JSON>},
			"order": 3
    }
}

GET /refUniversal?q=string&propertyId=0&offset=0

q - регистронезависимая подстрока name

propertyId - опциональная фильтрация по одному property

Response

{
  "status": 1,
  "message": "",
  "response": {
    "references": [
      {
        "id": 12,
        "propertyId": 4,
        "name": "someRefString",
        "description": "Some refUniversal",
        "value": {},
        "order": 3
      },
      {
        "id": 12,
        "propertyId": 4,
        "name": "someRefString",
        "description": "Some refUniversal",
        "value": {},
        "order": 3
      },
      {
        "id": 12,
        "propertyId": 4,
        "name": "someRefString",
        "description": "Some refUniversal",
        "value": {},
        "order": 3
      }
    ]
  }
}

GET /refUniversal/{reference_id}

Request

Response

{
  "status": 1,
  "message": "",
  "response": {
			"id": 12,
			"propertyId": 4,
		  "name": "someRefString", 
			"description": "Some refUniversal",
		  "value": {<любой валидный JSON>},
			"order": 3
    }
}

DELETE /refUniversal/{reference_id}

Request

Response

{
  "status": 1,
  "message": "",
  "response": {}
}