Developing your APIs in Django REST Framework

  • Each attribute of the model represents a database field.
  • With all of this, Django gives you an automatically-generated database-access API
  1. Serializer is a variable to which the return value of employeeSerializer is passed
  2. Thus to serializer, model values of firstname and lastname are passed as a dictionary

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Abhinav Srivastava

Abhinav Srivastava

Building: Ignite Tournaments / Former: DeFi Alliance, Persistence, Eth India Co