Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 960 Bytes

INSTALL.rst

File metadata and controls

31 lines (22 loc) · 960 Bytes

Installation

Invenio-REST is on PyPI so all you need is:

$ pip install invenio-rest

If you want Cross-Origin Resource Sharing (CORS) support you need to either install Flask-CORS manually or simply use the extra requires directive like this:

$ pip install invenio-rest[cors]

Configuration

REST_ENABLE_CORS Set to True to enable Cross-Origin Resource Sharing. Defaults to False.
REST_CORS_RESOURCES Dictionary for configuring CORS for endpoints. See Flask-CORS for further details.

Please also see Flask-Limiter and Flask-CORS for many more configuration options.