Create new resource items Postman
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Re: Create new resource items Postman
The JSON REST API is only for the frontend and doesn't allow managing products. You need to use the JsonAdm API for managing products:
https://aimeos.org/docs/latest/admin/jsonadm/
https://aimeos.org/docs/latest/admin/jsonadm/
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
Re: Create new resource items Postman
I have changed the URL in postman but still not working no error no info according to the doc how I understand,
the URL is http://localhost:8000/jsonadm/default/product method is post and in the body we need
{
"data": {
"type": "product",
"attributes": {
"product.code": "test",
"product.label": "Test product",
"product.status": "0"
}
}
}
the token need to be pass in the URL as well or just using postman in the header pls give me an example in postman
the URL is http://localhost:8000/jsonadm/default/product method is post and in the body we need
{
"data": {
"type": "product",
"attributes": {
"product.code": "test",
"product.label": "Test product",
"product.status": "0"
}
}
}
the token need to be pass in the URL as well or just using postman in the header pls give me an example in postman
Re: Create new resource items Postman
Don't know Postman but CURL should be similar. Here's the excerpt from the docs:
Make sure you are logged in with an admin account and you pass the Laravel session cookie along with the request.
Code: Select all
curl -b cookies.txt -c cookies.txt \
-X POST 'http://localhost:8000/jsonadm/default/product?_token=...' \
-H 'Content-Type: application/json' \
-d '{"data": {
"type": "product",
"attributes": {
"product.code": "test",
"product.label": "Test product",
"product.status": "0"
}
}}'
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star