This module provides a movie content type and a movie view that lists all movies in a restful way.
- Compile the assets (check below).
- Install the module as usual
drush en movie
. - Clear the cache
drush cr
.
The restful URL is /api/v1/movie/all?_format=json
.
The format can be changed to xml
: /api/v1/movie/all?_format=xml
.
- Work on any modifications in the
assets/scss
orassets/js
folders. - Compile/Watch the assets (check below).
- Install nvm.
- Install node
nvm install
. - Install dependencies
npm install
.
npx mix
.
npx mix watch
.