api/db/<dbname>/classes/<struct_no>/byindex/<index_no>/eq/<key>/field/<field_no> ResourceThe
api/db/<dbname>/classes/<struct_no>/byindex/<index_no>/eq/<key>/field/<field_no>resource allows individual field access. The field is identified by its number,field_no, which can be retrieved from the class schema. The index referred to byindex_nois required to be unique.It executes the following operations for HTTP
GET,DELETEandPATCH:
GET: Returns the value of the field.DELETE: Writes null into nullable fields, and resets optional structures.PATCH: Overwrites thevalueof the field.For an overview see page eXtremeDB Web Service Resources
For classes with an
autoidThe
/api/db/<dbname>/classes/<struct_no>/byautoid/eq/<key>/field/<field_no>is provided for classes with anautoiddefined.GET
The
GETrequest returns thevalueof the field. The returned JSON object contains a single key:value.For example:GET http://localhost:8083/api/db/xsqldb/classes/1/byindex/1/eq/1/field/0The
valueis formatted according to the rules defined for theendpoint and supports the same query arguments./api/db/<dbname>/classes/<struct_no>/byindex/<index_no>/listDELETE
The
DELETErequest writesnullinto nullable fields, and resets optional structures. It returns HTTP status400if the field is neithernullablenoroptional.PATCH
The
PATCHrequest overwrites the value of the field. It accepts a JSON object containing a single key,value:For example:
PATCH http://localhost:8083/api/db/xsqldb/classes/1/byindex/1/eq/1/field/1 { "value": "new_value" }The format of the
valueis the same as for the POST method of the/api/db/<dbname>/classes/<struct_no>endpoint and the same restrictions apply.