{ "info": { "author": "Anthon Alindada", "author_email": "anthon.alindada.435@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Framework :: Django", "Framework :: Django :: 1.10", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Natural Language :: English", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5" ], "description": "Django Api View\n===============\n\n.. image:: https://travis-ci.org/anthon-alindada/django_api_view.svg?branch=master\n :target: https://travis-ci.org/anthon-alindada/django_api_view\n\n.. image:: https://codecov.io/gh/anthon-alindada/django_api_view/branch/master/graph/badge.svg\n :target: https://codecov.io/gh/anthon-alindada/django_api_view\n\nDjango basic api view and api response.\n\nDocumentation\n-------------\n\nThe full documentation is at https://django_api_view.readthedocs.io.\n\nQuickstart\n----------\n\nInstall Django api view. In the command line::\n\n pip install django_api_view\n\nConfiguration\n-------------\n\nAdd `'django_api_view'` it to your `INSTALLED_APPS`::\n\n INSTALLED_APPS = (\n ...\n 'django_api_view',\n ...\n )\n\nSimple usage\n------------\n\nRead full documentation for full features https://django_api_view.readthedocs.io.\n\nApi View\n--------\n\nApiView will automatically parse post data.\n\nIt accepts ``'application/json'``, ``'application/x-www-form-urlencoded'``, or ``'multipart/form-data'``\n\nFor example::\n\n from django_api_view.api_view import ApiView\n\n class BasicApiView(ApiView):\n\n def get(self, request):\n # For get method use 'GET' to get parameters\n email = request.GET.get('email')\n\n def post(self, request):\n # For post method use 'data' to get parameters\n email = request.data.get('email')\n\nApi Response\n------------\n\nApi response retuns json response.\n\nBasic example::\n\n from django_api_view.api_response import ApiResponse\n\n def get(request):\n # 'data' parameter is optional\n return ApiResponse().success(data={})\n\nVersion 0.1 (2017-07-25)\n~~~~~~~~~~~~~~~~~~~~~~~~\n\n- Initial release.\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/anthon-alindada/django_api_view", "keywords": "django api view", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "django-api-view", "package_url": "https://pypi.org/project/django-api-view/", "platform": "", "project_url": "https://pypi.org/project/django-api-view/", "project_urls": { "Homepage": "https://github.com/anthon-alindada/django_api_view" }, "release_url": "https://pypi.org/project/django-api-view/0.1.1/", "requires_dist": [ "Django (>=1.8)" ], "requires_python": "", "summary": "Django api view", "version": "0.1.1" }, "last_serial": 3046786, "releases": { "0.1.1": [ { "comment_text": "", "digests": { "md5": "9aa003a8ddcaa2fba81d2b9629f30347", "sha256": "4e830fe128f2bcd37b96692185fff21230e3295fb59887a98124e447f5f4e3f8" }, "downloads": -1, "filename": "django_api_view-0.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "9aa003a8ddcaa2fba81d2b9629f30347", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7074, "upload_time": "2017-07-25T08:06:35", "url": "https://files.pythonhosted.org/packages/c2/9e/0e9998ea0f0f8301bfc39075ad88399972460ba423d9c9d5109a89e48bf5/django_api_view-0.1.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b85deb9a1095e8e531faa27534168934", "sha256": "cf1324212df6731e998c39d446a46e063226c0c3c4d3e118ff54f90ae5e61b2f" }, "downloads": -1, "filename": "django_api_view-0.1.1.tar.gz", "has_sig": false, "md5_digest": "b85deb9a1095e8e531faa27534168934", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5754, "upload_time": "2017-07-25T08:06:36", "url": "https://files.pythonhosted.org/packages/86/bc/46da74f4cc2a6acbec38c97a027589d0cb521c35a43779544308278e5abd/django_api_view-0.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9aa003a8ddcaa2fba81d2b9629f30347", "sha256": "4e830fe128f2bcd37b96692185fff21230e3295fb59887a98124e447f5f4e3f8" }, "downloads": -1, "filename": "django_api_view-0.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "9aa003a8ddcaa2fba81d2b9629f30347", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7074, "upload_time": "2017-07-25T08:06:35", "url": "https://files.pythonhosted.org/packages/c2/9e/0e9998ea0f0f8301bfc39075ad88399972460ba423d9c9d5109a89e48bf5/django_api_view-0.1.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b85deb9a1095e8e531faa27534168934", "sha256": "cf1324212df6731e998c39d446a46e063226c0c3c4d3e118ff54f90ae5e61b2f" }, "downloads": -1, "filename": "django_api_view-0.1.1.tar.gz", "has_sig": false, "md5_digest": "b85deb9a1095e8e531faa27534168934", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5754, "upload_time": "2017-07-25T08:06:36", "url": "https://files.pythonhosted.org/packages/86/bc/46da74f4cc2a6acbec38c97a027589d0cb521c35a43779544308278e5abd/django_api_view-0.1.1.tar.gz" } ] }