DEV Community

Cover image for Day 22 of #100DaysOfCode: Create Endpoints to Manipulate Resources for Django App
Jen-Hsuan Hsieh
Jen-Hsuan Hsieh

Posted on • Edited on

1

Day 22 of #100DaysOfCode: Create Endpoints to Manipulate Resources for Django App

Introduction

We have to run two servers if we want to use React App as a SPA server and use Django app as an APIs server. What if we only want to launch one server on the machine?

The target for this week is to understand the process of creating endpoints in DRF (Django REST Framework).

Details

Please refer to my article. It includes four parts.

  1. Overview (models, serializers, views, and urls)
  2. Serializers
  3. Views and URLS: Type 1. Use APIview
  4. Views and URLS: Type 2. Use viewsets.ModelViewSet

https://medium.com/a-layman/build-single-page-application-with-react-and-django-part-4-create-endpoints-to-manipulate-13aefa60625b

Articles

There are some of my articles. Feel free to check if you like!

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay