A RESTful web API for Mezzanine CMS.
Project description
Created by George Cushen
Overview
Mezzanine API is a RESTful web API built using the Django framework which extends the Mezzanine content management platform. The API empowers developers to automate, extend and combine Mezzanine with other services such as Ember.js or a mobile app.
Features
REST API resources for posts, pages, users, and categories
Apply filters and search queries to narrow down results
OAuth 2.0 allows users to authorize and revoke access to third party applications without the need for those applications to request the user’s credentials
Web browsable API
Endpoints documented with Swagger UI
Leverages Django Rest Framework
Roadmap
More endpoints
Refinement
Writeable API access
Test Suite
Further documentation for configuration and customization
Installation
Install from PyPI:
$ pip install mezzanine-api
Add the following apps to INSTALLED_APPS in your Mezzanine settings.py:
INSTALLED_APPS = ( ... 'mezzanine_api', 'rest_framework', 'rest_framework_swagger', 'oauth2_provider', )
Also, add the following lines at the end of your settings.py module:
##################### # REST API SETTINGS # ##################### try: from mezzanine_api.settings import * except ImportError as e: pass
Add the following code in your Mezzanine urls.py somewhere after the urlpatterns = [] line:
# REST API URLs urlpatterns += patterns("", ("^api/", include("mezzanine_api.urls")), )
Migrate the database to support Oauth2:
$ python manage.py migrate
Start the server:
$ python manage.py runserver
Visit http://127.0.0.1:8000/api/docs/ to view the endpoint documentation and query the API.
Contributing
Mezzanine API is an open source project managed using the Git version control system. The repository is hosted on GitHub , so contributing is as easy as forking the project and committing back your enhancements.
Support
If you have questions about the API, consider discussing them on the mezzanine-users mailing list.
Otherwise, if you have found a bug, please use the GitHub issue tracker and include the steps necessary to reproduce it.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for mezzanine_api-0.2.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f4775e066a8671e30d55017f8b281b6c1b730551363b2a03ef11b04de2667e6 |
|
MD5 | f51c354c02c6976b38a7c0acbd182ba9 |
|
BLAKE2b-256 | 6c341a35044f75760f83eaed4f3edf0b2ebd75373fb41d4ef4abecd8d4733759 |