Metadata-Version: 1.1
Name: django-mock-rest
Version: 1.1
Summary: Simple way to create static mock data at rest api endpoints in the Django admin
Home-page: https://github.com/mverleg/django_mock_rest
Author: (the author)
Author-email: mverleg.noreply@gmail.com
License: Revised BSD License (LICENSE.txt)
Description-Content-Type: UNKNOWN
Description: Django mock rest
        ===============================
        
        Simple way to create static mock data at rest api endpoints in the Django admin.
        
        If you're designing a rest api client, and want to create a simple mock server for testing, then this app lets you do that using the Django admin.
        
        Install
        ===============================
        
        * Install using
        
        .. code:: bash
        
        	pip install django-mock-rest
        
        * Add `django_mock_rest` to installed apps in `settings.py`:
        
        .. code:: python
        
        	INSTALLED_APPS = [
        		...
        		'django_mock_rest',
        		...
        	]
        
        * By default the mock service is available only in `DEBUG` mode. You can override this with `DJANGO_MOCK_REST = True` or `False`.
        
        * Add the root url to `url.py`:
        
        .. code:: python
        
        	urlpatterns = [
        		...
        		url(r'^api-mock/', include('django_mock_rest.urls')),
        		...
        	]
        
        How to use
        ===============================
        
        In the Django admin, you can create endpoints:
        
        .. image:: https://raw.githubusercontent.com/mverleg/django_mock_rest/master/resources/admin_preview.png
        
        After that, you can do http(s) request to the endpoints you defined:
        
        .. code:: bash
        
        	$ curl -X GET http://127.0.0.1:8000/api-mock/post/1/
        	{
        		"post": "Hello world"
        	}
        
        You can also see an overview of all the mock endpoints (if logged in) by visiting `~`, i.e. `http://127.0.0.1:8000/api-mock/~`.
        
Keywords: django,mock,test,unit-test,django-admin,rest,rest-api,api,http
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Natural Language :: English
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Topic :: Software Development :: Libraries :: Python Modules
