Skip to content

issue fixed regarding add product#983

Open
Keerthi1007 wants to merge 1 commit intoshopizer-ecommerce:mainfrom
Keerthi1007:main
Open

issue fixed regarding add product#983
Keerthi1007 wants to merge 1 commit intoshopizer-ecommerce:mainfrom
Keerthi1007:main

Conversation

@Keerthi1007
Copy link
Copy Markdown

@Keerthi1007 Keerthi1007 commented Jan 29, 2024

Fixed Issue About add product #840

@Keerthi1007
Copy link
Copy Markdown
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
@sonarqubecloud
Copy link
Copy Markdown

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