Download the PHP package contentacms/contenta_jsonapi without Composer
On this page you can find all versions of the php package contentacms/contenta_jsonapi. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package contenta_jsonapi
Contenta CMS
DEPRECATED. Contenta CMS was an educational distribution to show examples of best practices for decoupled projects. Decoupled Drupal has been stable for a long time and the relevance of this project has dwindled over the years. Additionally, since no one has stepped up to fill the maintainer role, I have decided to archive this project. Thanks to everyone who participated to this project over the years.
LOOKING FOR HELP TO MAINTAIN CONTENTA. It has been a while since I have found the motivation to keep Contenta CMS up-to-date and improved. I don't anticipate this changing in the near future. Please reach out if you would like to step up as a new maintainer of this project.
Contenta is a content API and CMS based on Drupal 8. It provides a standard, jsonapi-based platform for building decoupled applications and websites.
Install
Follow the documentation instructions to install Contenta CMS.
CURL
Once your site is running locally, you might want to use Curl to examine the pre-installed content:
The result will be a list of recipes. Note that:
- The Drupal implementation of the jsonapi uses entity uuids to identify individual content resources. Append a
/{{uuid}}
to the URL above to fetch a single recipe. - Contenta uses the JSON API Extras module to customize the URL to resources:
/api/recipes
instead of/jsonapi/node/recipes
, for example. Contenta also configures JSON API Extras to customize the output of the request to eliminate unnecessary fields.
CORS
When you actually build a front-end you will likely have CORS (Cross-Origin Resource Sharing) issues.
In order to allow browsers to request the contenta back-end you need to:
- Copy sites/default/default.services.yml to sites/default/services.yml
-
Allow your app to access it, by replacing the end of this configuration file.
- Run drush:
Development
Join the discussion in the #contenta Slack channel.
For documention on the development on contenta_jsonapi itself, see docs/development.
Development Installation
- If you want a setup which allows you to contribute back to Contenta, follow the installation instructions above
- Replace the
/web/profiles/contrib/contenta_jsonapi directory with a checkout of this repo
Testing
Nightwatch
Nightwatch provides automated browser testing and can be found in the tests/nightwatch
directory. To install and run locally, you will need Yarn and Chrome.
Front-ends
There are a bunch of example consumers, see http://www.contentacms.org/#example-consumers for a list of them.
Update
Contenta CMS is a Fork & Go solution. There is no supported upgrade path. You may update your Drupal like you usually do.
Please see documented issues :
Credits
This work is based upon a couple of contrib modules.
On top of that the thunder distrbution was used as sort of a base for this installation profile.
Contenta CMS is built by humans.
All versions of contenta_jsonapi with dependencies
drupal/admin_toolbar Version ^1.23
drupal/adminimal_theme Version ^1.4
drupal/consumer_image_styles Version ^3.0@rc
drupal/consumers Version ^1.8
drupal/contentajs Version ^1.0@beta
drupal/core Version ^8.7
drupal/decoupled_router Version ^1.1
drupal/image_widget_crop Version ^2.1
drupal/inline_entity_form Version ^1.0@beta
drupal/jsonapi_extras Version ^3.6
drupal/jsonrpc Version ^1.0@beta
drupal/material_admin Version ^1.0@alpha
drupal/openapi Version ^1.0@beta
drupal/schemata Version ^1.0@alpha
drupal/simple_oauth Version ^3.3
drupal/subrequests Version ^2.0
drupal/video_embed_field Version ^2.0
drupal/openapi_ui Version ^1.0@rc
drupal/openapi_ui_redoc Version ^1.0@rc