{ "info": { "author": "(the author)", "author_email": "mverleg.noreply@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "Django mock rest\n===============================\n\nSimple way to create static mock data at rest api endpoints in the Django admin.\n\nIf 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.\n\nInstall\n===============================\n\n* Install using\n\n.. code:: bash\n\n\tpip install django-mock-rest\n\n* Add `django_mock_rest` to installed apps in `settings.py`:\n\n.. code:: python\n\n\tINSTALLED_APPS = [\n\t\t...\n\t\t'django_mock_rest',\n\t\t...\n\t]\n\n* By default the mock service is available only in `DEBUG` mode. You can override this with `DJANGO_MOCK_REST = True` or `False`.\n\n* Add the root url to `url.py`:\n\n.. code:: python\n\n\turlpatterns = [\n\t\t...\n\t\turl(r'^api-mock/', include('django_mock_rest.urls')),\n\t\t...\n\t]\n\nHow to use\n===============================\n\nIn the Django admin, you can create endpoints:\n\n.. image:: https://raw.githubusercontent.com/mverleg/django_mock_rest/master/resources/admin_preview.png\n\nAfter that, you can do http(s) request to the endpoints you defined:\n\n.. code:: bash\n\n\t$ curl -X GET http://127.0.0.1:8000/api-mock/post/1/\n\t{\n\t\t\"post\": \"Hello world\"\n\t}\n\nYou 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/~`.\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/mverleg/django_mock_rest", "keywords": "django", "license": "Revised BSD License (LICENSE.txt)", "maintainer": "", "maintainer_email": "", "name": "django-mock-rest", "package_url": "https://pypi.org/project/django-mock-rest/", "platform": "", "project_url": "https://pypi.org/project/django-mock-rest/", "project_urls": { "Homepage": "https://github.com/mverleg/django_mock_rest" }, "release_url": "https://pypi.org/project/django-mock-rest/1.3/", "requires_dist": null, "requires_python": "", "summary": "Simple way to create static mock data at rest api endpoints in the Django admin", "version": "1.3" }, "last_serial": 4349308, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "cdf383aeaa34e4367c8795e38c707821", "sha256": "26641c6d98809ab806a7028ccb0d249a88ac35be8d47d0f46a89fa3dec521501" }, "downloads": -1, "filename": "django-mock-rest-1.0.tar.gz", "has_sig": false, "md5_digest": "cdf383aeaa34e4367c8795e38c707821", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5653, "upload_time": "2018-09-26T18:33:37", "url": "https://files.pythonhosted.org/packages/3e/59/a5c8baa1edacd24365820c55ea4f87783638f6c4de295fe38d712e73b801/django-mock-rest-1.0.tar.gz" } ], "1.1": [ { "comment_text": "", "digests": { "md5": "8d88597a48ed873611ed62fa5682e5a2", "sha256": "18aad3f48e620dc3e3be2a0e90c3ad877ea6b20bb9fd57d32ba3b78a355f5367" }, "downloads": -1, "filename": "django-mock-rest-1.1.tar.gz", "has_sig": false, "md5_digest": "8d88597a48ed873611ed62fa5682e5a2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5748, "upload_time": "2018-09-26T19:32:13", "url": "https://files.pythonhosted.org/packages/20/9a/95fe18b4bb43ee36e7dbb458307a6b286ef8927378c5be27d539549d1da9/django-mock-rest-1.1.tar.gz" } ], "1.2": [ { "comment_text": "", "digests": { "md5": "3a85fcfeb817d58f6ee91d6c3af9c7ef", "sha256": "0e3a975e5e4bf46deefabd7e94f8cafde4f10a0ddbaf7d6f0cafe65e0e32b637" }, "downloads": -1, "filename": "django-mock-rest-1.2.tar.gz", "has_sig": false, "md5_digest": "3a85fcfeb817d58f6ee91d6c3af9c7ef", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5764, "upload_time": "2018-09-26T20:05:50", "url": "https://files.pythonhosted.org/packages/e7/65/83742945fad4cfeab2661ee96e616c503bb32f6677ca1904c1df0b81b7bd/django-mock-rest-1.2.tar.gz" } ], "1.3": [ { "comment_text": "", "digests": { "md5": "3bf056c50390f617ffc331c636d33850", "sha256": "25fae5ea4eff1eaea3e2ffd2ad281950ae52feafcd3e2307efa986cf869ac7e2" }, "downloads": -1, "filename": "django-mock-rest-1.3.tar.gz", "has_sig": false, "md5_digest": "3bf056c50390f617ffc331c636d33850", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5792, "upload_time": "2018-10-07T13:34:30", "url": "https://files.pythonhosted.org/packages/ba/bb/e7c50d33b9671b7d8af83cdfa751e0261a2bb77bd44319da6708bff20f04/django-mock-rest-1.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "3bf056c50390f617ffc331c636d33850", "sha256": "25fae5ea4eff1eaea3e2ffd2ad281950ae52feafcd3e2307efa986cf869ac7e2" }, "downloads": -1, "filename": "django-mock-rest-1.3.tar.gz", "has_sig": false, "md5_digest": "3bf056c50390f617ffc331c636d33850", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5792, "upload_time": "2018-10-07T13:34:30", "url": "https://files.pythonhosted.org/packages/ba/bb/e7c50d33b9671b7d8af83cdfa751e0261a2bb77bd44319da6708bff20f04/django-mock-rest-1.3.tar.gz" } ] }