levelshoes / module-shopfinder
Simple Shopfinder Module including Graphql API
Package info
github.com/krunal2212/magento2-shopfinder
Type:magento2-module
pkg:composer/levelshoes/module-shopfinder
1.0.0
2023-06-26 11:06 UTC
Requires
- php: ~5.5.0|~5.6.0|7.*|8.*
README
Installation Steps
- Copy the whole code base under app/code/
Levelshoes/Shopfinder
OR - Using composer : composer require krunal/module-shopfinder
After performing above step please run below commands
php bin/magento module:enable Levelshoes_Shopfinder
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy -f
GraphQL API Request Example
URL : storeurl/graphql
- List all Shop
Choose the fields which you want to list in API Response
ListShopsGraphql {
shopname
identifier
addresslineone
addresslinetwo
city
country
state
zipcode
phone
latitude
longitude
email
shopimage
status
cancollect
shopdescription
shopopentimedetail
storeview
}
}
- Get Shop by shop_id
query {
ListShopsByStoreIDGraphql(shop_id:2) {
shopname
identifier
}
}
- Update Shop by shopid
mutation {
editShopData(shop_id: 1, shopname: "test shop", status: 1, state: 0) {
status
message
}
}
NOTE : Flag detail
Enabled : 1
Disabled : 0