Search found 14 matches

by JakubŽídek
13 Jul 2021, 12:30
Forum: Help
Topic: CSRF mismatch when creating item through JsonAPI
Replies: 6
Views: 9883

CSRF mismatch when creating item through JsonAPI

Hello, our AIMEOS version is 2021.04 and we run PHP 7.4.3. I am trying to create a product via the JsonAPI in our .NET 5 app. I log in using the api/login endpoint and get a bearer token. Then I use that for the OPTIONS in admin/default/jsonadm, where I get the CSRF token in the meta object. Then I ...
by JakubŽídek
14 Jun 2021, 10:27
Forum: Laravel package
Topic: Full product/media control over API
Replies: 5
Views: 1880

Re: Full product/media control over API

Thanks for the reply.

One more question though. If I manage to upload the image to the /files/ using a PHP function, can I then create a "media" object with the Json API and put the file's url into the media.url attribute?
by JakubŽídek
14 Jun 2021, 08:24
Forum: Laravel package
Topic: Full product/media control over API
Replies: 5
Views: 1880

Re: Full product/media control over API

Thank you for your reply,

our AIMEOS version is 2021.04 and we run PHP 7.4.3.

I would like to manage the "media" including images without using the Aimeos backend. So through the JSONapi would be best.
by JakubŽídek
09 Jun 2021, 15:23
Forum: Laravel package
Topic: Full product/media control over API
Replies: 5
Views: 1880

Full product/media control over API

Hello, I'm new here, so sorry if I break any rules here. I am building a very specialized e-shop/e-warehouse and I use aimeos API for authentication, product catalogue and basically everything. I don't use a separat database. I am able to create a new product with the API with a POST request. I get ...