Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue fixed regarding add product #983

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Keerthi1007
Copy link

@Keerthi1007 Keerthi1007 commented Jan 29, 2024

Fixed Issue About add product #840

@Keerthi1007
Copy link
Author

Step 1: Run from Docker images: From the command line:
docker run -p 8080:8080 shopizerecomm/shopizer:latest

Run the administration tool
⋅⋅⋅ Requires the java backend to be running

docker run -e "APP_BASE_URL=http://localhost:8080/api" -p 82:80 shopizerecomm/shopizer-admin
Step 2: The api /api/v2/private/product?lang=en&store=DEFAULT is accesible ony by admin, so make a login as admin using the api localhost:8080/api/v1/private/login
image

Step 3: Copy the token generated and paste the token in the Authorization Header as shown in below image
image
Step 4: Try to access the product defintion api /api/v2/private/product?lang=en&store=DEFAULT by giving post as method type in postman and pass the json
{
"canBePurchased": true,
"price": 29.00,
"quantity": 100,
"descriptions": [
{
"description": "T Shirt",
"friendlyUrl": "t-shirt",
"name": "T Shirt",
"title": "T Shirt",
"language": "en"
}
],
"identifier": "TSHIRT",
"productSpecifications": {
"dimensionUnitOfMeasure": "in",
"height": 22,
"length": 14,
"weight": 0.225,
"weightUnitOfMeasure": "lb",
"manufacturer": "DEFAULT",
"width": 36
},
"shipeable": true,
"sortOrder": 10,
"type": "GENERAL",
"virtual": false,
"visible": true
}
Note: "identifier" is a primary key , it should be unique and not null.

Product will get added succesfully , if all the above steps are followed successfully.

image

@Keerthi1007 Keerthi1007 reopened this Jan 29, 2024
Copy link

sonarcloud bot commented Jan 29, 2024

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant