levelshoes / module-shopfinder
Simple Shopfinder Module including Graphql API
Installs: 8
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:magento2-module
pkg:composer/levelshoes/module-shopfinder
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