eggate/chalhoub-shopfinder

Shopfinder module allows you to add shops to your magento2 store

Installs: 2

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:magento2-module

1.0.1 2023-01-19 12:05 UTC

This package is auto-updated.

Last update: 2024-09-19 16:25:23 UTC


README

An assignment for Chalhoub M2 open vaccancy.

Installation

Install extension with composer

  composer require eggate/chalhoub-shopfinder

Run magento installion commands

  bin/magento setup:install
  bin/magento setup:di:compile
  bin/magento setup:static-content:deploy --area adminhtml
  bin/magento cache:flush

Features

  • We want you to prepare a module for us which can be installable with composer.
  • We should be able to see "Shopfinder" menu on the Content section, When we click on Shopfinder link it should list all added shops. And it should also have filtering options
  • We should be able to add/edit new shops
  • we have lots of fields. For this scenario, you just need to cover these fields
    • Shop name - the name of the shop, string
    • Identifier - a unique identifier of a shop, string
    • country - which should be populated by a list of countries in Magento
    • image - user should be able to upload an image
    • (Optional) longitude/latitude, string

REST API Reference

Get all shops

  GET /V1/shopfinder

Get shop by shop id

  GET /V1/shopfinder/${shopId}

Create new shop or update existing shop if shop_id exists

  POST /V1/shopfinder
  DELETE /V1/shopfinder/${shopId}