Package: autogenerated-api
Autogenerated ApiGet Autogenerated Serializers and API EndPointsRequirements- django
- djangorestframeworkTested with all Django versions from `1.8.x to 2.x.x`Released with latest version ofDjango.NoteFor Django==1.8.x
	- djangorestframework==3.4.2Installing autogenerated-apiautogenerated-api built for django.pipinstallautogenerated_apiCustomizable Files in Appsdjango_app architecture looks like
- app_name
	- __init__.py
	- admin.py
	- models.py
	- serializers.py
	- tests.py
	- views.pyserilizers.pyfrom.modelsimportModelNamefromautogenerated_api.serializersimportDeadlySerializerFactoryModelNameDeadlySerializer=DeadlySerializerFactory(modelName)-DeadlySerializerFactory`OptionalParamaters`-nest=["field_1","field_2"]-nested_fields={"field_name_in_releation":["related_model_field_1","related_model_field_2"]}-ifyouwanttogetallfieldsofmodelwhileisinrelation-nested_fields={"field_name_in_reletion":["*"]}-exclude=["field_1","field_2"]:fieldsthatyouwanttoexcludeModelNameDeadlySerializer=DeadlySerializerFactory(modelName,nest,nested_fields,exclude)views.pyimportapp_name.modelsimportapp_name.serializersfromautogenerated_api.autogenerationimportmake_all_viewsetsmake_all_viewsets(__name__)Create a new fileapi_urls.pyin main project folder.Main project folder Architecture-main_proj_name-__init__.py-settings.py-urls.py-wsgi.py-api_urls.pyAdd below codes inapi_urls.pyfile.importapp_name.viewsfromdjango.urlsimportpath,re_path,includefromautogenerated_apiimportautogenerated_urlsurlpatterns=autogenerated_urls.urlpatternsurlpatterns+=[]Adding to URLsAdd the Belowurls.pyimportdjangodj_version=django.get_version()fromdjango.contribimportadmintry:fromdjango.urlsimportpath,include,re_pathexceptImportError:fromdjango.conf.urlsimportinclude,urltry:fromdjango.core.urlresolversimportreverseexceptImportError:fromdjango.urlsimportreverseimportreifre.search('^2[\d.]+',str(dj_version)):urlpatterns=[re_path(r'^api/',include(('main_proj_name.api_urls','main_proj_name'),namespace="api")),]else:urlpatterns=[url(r'^admin/',include(admin.site.urls)),url(r'^api/',include('main_proj_name.api_urls',namespace="api")),]Customizable Fields in Settings.AUTOGENERATE_APPS=["app_name"]Finally, you will get autogenerated seraializers and end points.- Autogenerated End Points
	- `/api/model_name_in_lower/` :  list out all the model_instance
	- `/api/model_name_in_lower/<instance_id>` : you will get detail of instance of given idWhy use autogenerated_api?Throughautogenerated_apimodule , you can directly create serializers coresponding to each model and can also access the all fields value of model which are in relation(m2m or foreignkey relationship).To get the list of  model instance , You  have to write an api end points , likeListAPiViewand for getting the detail of model instance, have to implementDetailAPIView or RetrieveApiViewend points.Now , You don't have to create these APi-end points and get worry about the serailizers . This module will take care. Just , follow the steps that i mentioned above.Coming- Module with more functionality and more autogenerated end points.I will really appreciate if you support the project by clicking the star button on Github repository