API Doku

Hallo,

bis wann ist denn mit einer Doku der neuen „Headless“ Shopware API (Shopware 6) zu rechnen? Oder gibt es sie evtl schon?

Hallo @FloC3‍,

bitte einmal hier entlang: https://docs.shopware.com/en/shopware-platform-dev-en/api

Viele Grüße,
Stephan Pohl  Shopware

Hi [@Stephan Pohl](http://forum.shopware.com/profile/2/Stephan Pohl „Stephan Pohl“)‍,

in der Doku gibt es den Verweis

The full schema can be explored with the swagger client in the administration client under  Documentation → Platform API.

Die Stelle finde ich leider nicht - hast Du da noch einen Verweis für mich?
Wenn ich die API so verstehe, kann man quasi alle Resourcen per API ansteuern (Use Case, z.B. Custom Fields/Sets anlegen usw. …)
Das würde ich gerne in der Doku einmal prüfen und angucken.

Vorab vielen Dank!
Niklas
 

Hey @TeichDatensysteme‍,

ich habe gerade einen Fix für SwaggerUI gepusht, der gleich auf den „master“-Branch landet. Nachdem der PR durch ist kannst du SwaggerUI über http://your-shop.com/api/v1/_info/swagger.html die API Doku bei dir auf’m System aufrufen.

Hier der Commit: https://github.com/shopware/platform/commit/f72d2c29ebe0b2906cd225d86ca66d61cc037ba5

Viele Grüße,
Stephan Pohl  Shopware

[@Stephan Pohl](http://forum.shopware.com/profile/2/Stephan Pohl “Stephan Pohl”)‍

Also wenn ich /api/v1/_info/swagger.html aufrufe bekomme ich einen 404. Muss ich da noch etwas anderes beachten?

@biloba schrieb:

[@Stephan Pohl](http://forum.shopware.com/profile/2/Stephan Pohl „Stephan Pohl“)‍

Also wenn ich /api/v1/_info/swagger.html aufrufe bekomme ich einen 404. Muss ich da noch etwas anderes beachten?

Also ich habe mein Repo wie folgt geupdatet wie in den Docs beschrieben

> git pull
> cd platform
> git pull
> cd ..
> composer update
> ./psh.phar cache
> .psh.phar install

Was nicht funktioniert ist, wenn du Swagger über die watch URL / localhost:8080 aufrufst. Du musst deine „normale“ URL verwenden bspw. http://development.test/api/v1/_info/swagger.html

Danke für den Hinweis, hat mir noch mal den Anstoss gegeben nachzuforschen. Hatte nochmal alles aktualisiert und dann tat es immer noch nicht. Hatte jetzt aber festgestellt, dass ich noch einen Fehler in meiner nginx Config Datei hatte.