Skip to content

An example module on how to work with annotations, controllers as services, fractal and Symfony Form.

Notifications You must be signed in to change notification settings

slootjes/drupal-example-api-module

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Drupal Example API Module

An example module which demonstrates on how to create custom API endpoints with the use of:

Requirements

  • PHP 7.2+
  • Drupal 8.6+

Installation

Add the following repository to your composer.json file under repositories:

{
    "type": "vcs",
    "url": "https://github.com/slootjes/drupal-example-api-module"
}

and then add the module with composer:

composer require drupal/example-api

Then enable the module Controller Annotations and Example API module like you're used to and you're good to go.

Disclaimer

This module is created for educational and research purposes. Most examples are not following Drupal security best practices and thus are not meant to be used as-is. I cannot be held responsible for any issues that occur from you using these examples.

About

An example module on how to work with annotations, controllers as services, fractal and Symfony Form.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages