# Shopware 5 API: Mit Tabelle/Spalten erweitern?

**URL:** <https://forum.shopware.com/t/shopware-5-api-mit-tabelle-spalten-erweitern/95452>\
**Category:** Plugins\
**Created:** [25. Juli 2022 um 14:28 UTC](https://forum.shopware.com/t/shopware-5-api-mit-tabelle-spalten-erweitern/95452 "2022-07-25T14:28:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pim](https://avatars.discourse-cdn.com/v4/letter/p/43a26b/32.png) [@pim](https://forum.shopware.com/u/pim)\
**Post date:** [25. Juli 2022 um 14:28 UTC](https://forum.shopware.com/t/shopware-5-api-mit-tabelle-spalten-erweitern/95452/1 "2022-07-25T14:28:19Z")

</div>

Hallo,

die Spalten attribute1, attribute2, attribute3 der Tabelle **s\_articles\_img\_attributes** können mit der API weder gelesen noch geschrieben werden.

Brauche ich dazu bereits ein Plug-In, der mindestens die Methoden **getOne** und **update** überschreibt?  
Die Anleitung habe ich hier bereits gesehen: [Extend a REST API resource](https://developers.shopware.com/developers-guide/rest-api/extend-api-resource/)

Oder gibt es eine Konfigurationsdatei in Shopware, in die ich die Tabelle nur hinzufügen muss und schon wird sie in der API bereitgestellt?

Die Tabelle ist wie folgt definiert:

```auto
CREATE TABLE `s_articles_img_attributes` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `imageID` int(11) DEFAULT NULL,
  `attribute1` text COLLATE utf8_unicode_ci DEFAULT NULL,
  `attribute2` text COLLATE utf8_unicode_ci DEFAULT NULL,
  `attribute3` text COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `imageID` (`imageID`),
  CONSTRAINT `s_articles_img_attributes_ibfk_1` FOREIGN KEY (`imageID`) REFERENCES `s_articles_img` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION
) ENGINE=InnoDB;

```
