| @@ 199-205 (lines=7) @@ | ||
| 196 | /** |
|
| 197 | * @inheritdoc |
|
| 198 | */ |
|
| 199 | public function createItem($tableName, array $data) |
|
| 200 | { |
|
| 201 | $path = $this->buildPath(static::TABLE_ENTRY_CREATE_ENDPOINT, $tableName); |
|
| 202 | $data = $this->processData($tableName, $data); |
|
| 203 | ||
| 204 | return $this->performRequest('POST', $path, ['body' => $data]); |
|
| 205 | } |
|
| 206 | ||
| 207 | /** |
|
| 208 | * @inheritdoc |
|
| @@ 210-216 (lines=7) @@ | ||
| 207 | /** |
|
| 208 | * @inheritdoc |
|
| 209 | */ |
|
| 210 | public function updateItem($tableName, $id, array $data) |
|
| 211 | { |
|
| 212 | $path = $this->buildPath(static::TABLE_ENTRY_UPDATE_ENDPOINT, [$tableName, $id]); |
|
| 213 | $data = $this->processData($tableName, $data); |
|
| 214 | ||
| 215 | return $this->performRequest('PUT', $path, ['body' => $data]); |
|
| 216 | } |
|
| 217 | ||
| 218 | /** |
|
| 219 | * @inheritdoc |
|