Projekt

Allgemein

Profil

Aktionen

GX-Task #65345

offen

Updating Slim dependency | Breaking changes for the REST API v2

Von Mirko Janssen vor mehr als 4 Jahren hinzugefügt. Vor etwa 3 Jahren aktualisiert.

Status:
Gemeldet
Priorität:
Hoch
Zugewiesen an:
-
Kategorie:
Change
% erledigt:

0%

Betroffene Versionen:
Unbestimmt

Beschreibung

In the upcoming feature release GX v4.1 there will be an update of the Slim dependency from v2 to v4. This update brings breaking changes regarding the REST API v2.

The AbstractApiV2Controller class will from then on no longer contain an api attribute of type \Slim\Slim, but the two attributes request of type Slim\Http\ServerRequest and response of type Slim\Http\Response.
Overloads or controllers that used the api attribute must be modified accordingly.

The following code examples show how such a customization might look like.

Before:

        $this->api->response->setStatus(200);
        $this->api->response->headers->set('Content-Type', 'application/json; charset=utf-8');
        $this->api->response->headers->set('X-Shop-Version', $shopVersion);

After:

        $this->response = $this->response->withStatus(200);
        $this->response = $this->response->withHeader('Content-Type', 'application/json; charset=utf-8');
        $this->response = $this->response->withHeader('X-Shop-Version', $shopVersion);

Aktionen #1

Von Mirko Janssen vor mehr als 4 Jahren aktualisiert

  • Status wurde von Gemeldet zu In Bearbeitung geändert
Aktionen #2

Von Mirko Janssen vor mehr als 4 Jahren aktualisiert

  • Beschreibung aktualisiert (Vergleich)
  • Status wurde von In Bearbeitung zu Gemeldet geändert
Aktionen #3

Von Mirko Janssen vor mehr als 4 Jahren aktualisiert

  • Privat wurde von Ja zu Nein geändert
Aktionen #4

Von Mirko Janssen vor etwa 4 Jahren aktualisiert

  • Zielversion wurde von 58 zu 4.1.1.0 beta4 geändert
Aktionen #5

Von Mirko Janssen vor etwa 3 Jahren aktualisiert

  • Thema wurde von Aktualisierung von Slim | Breaking Changes für die API v2 zu Updating Slim dependency | Breaking changes for the REST API v2 geändert
  • Beschreibung aktualisiert (Vergleich)
  • Priorität wurde von Normal zu Hoch geändert
Aktionen

Auch abrufbar als: Atom PDF