magento2-backend-dev

Solid

This skill should be used when the user asks to "create an API endpoint", "build a REST API", "add a GraphQL resolver", "create a CLI command", "add a cron job", "set up a message queue", "implement a web API", "add a SOAP service", or "create a data provider". Covers Magento 2 backend development: REST/SOAP/GraphQL APIs, CLI commands, and cron jobs. DEPENDENT on magento2-dev-core for security and architecture patterns.

API & Backend 4 stars 2 forks Updated today MIT

Install

View on GitHub

Quality Score: 83/100

Stars 20%
23
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Magento 2 Backend Developer This skill covers API development (REST, SOAP, GraphQL), CLI commands, cron jobs, and message queues. ## Related Skills **REQUIRED BACKGROUND:** Load `magento2-dev-core` first — it defines the DI, repository, and security patterns (constructor injection, service contracts, escaping, discouraged functions) this skill assumes without repeating. Pairs with `magento2-security-scan` when the API/resolver you're building touches authentication, ACL, or user input, and with `magento2-performance-audit` for queue/consumer and N+1 concerns once the endpoint is built. In a Govard environment, use `govard-magento` for the CLI/container side (`bin/magento`, cache, indexers). ## REST API ### Service Contract Structure ``` Vendor/Module/ ├── Api/ │ ├── ProductRepositoryInterface.php # Declaration │ └── Data/ │ └── ProductInterface.php # Data entity └── Model/ └── ProductRepository.php # Implementation ``` ### Data Interface ```php <?php declare(strict_types=1); namespace Vendor\Module\Api\Data; use Magento\Framework\Api\ExtensibleDataInterface; /** * Product entity interface */ interface ProductInterface extends ExtensibleDataInterface { const ENTITY_ID = 'entity_id'; const NAME = 'name'; const SKU = 'sku'; const PRICE = 'price'; /** * @return int|null */ public function getId(): ?int; /** * @param int $id * @return self */ public function setId(int ...

Details

Author
ddtcorex
Repository
ddtcorex/dev-skills-hub
Created
3 months ago
Last Updated
today
Language
JavaScript
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category