wally-wally / drf-api-sandbox

πŸ““ API Sandbox with Django Rest Framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

πŸ“„ drf-api-sandbox


πŸ“Œ Overview

  • Frontend ν•™μŠ΅ν•  λ•Œ Backend와 API 톡신을 μ‹€μŠ΅ν•˜κΈ° μœ„ν•΄ 직접 λ§Œλ“  APIμž…λ‹ˆλ‹€.

πŸ“Œ Tech Stack

  • Language : Python 3.7.4
  • Framework : Django 3.2.4, Django Rest Framework 3.12.4
  • Database : sqlite3
  • OS : Windows10 Home

πŸ“Œ Getting Started

  • μ•„λž˜ λͺ…λ Ήμ–΄λ₯Ό μž…λ ₯ν•˜κΈ° μ „ Python 3.7.4와 sqlite3λ₯Ό λ°˜λ“œμ‹œ μ„€μΉ˜ν•΄μ£Όμ„Έμš”.

  • Clone to Repository

git clone https://github.com/wally-wally/drf-api-sandbox.git
cd drf-api-sandbox
  • Run Virtual Environment
python -m venv venv
source venv/Scripts/activate
  • Install Packages
pip install -r requirements.txt
  • Migrate Database
python manage.py migrate
  • Load Dump Data
python manage.py loaddata todos/dummy.json
  • Run to Server at local
python manage.py runserver
  • http://127.0.0.1:8000/api/v1/todos/에 μ ‘μ†ν•΄μ„œ μ•„λž˜μ™€ 같이 λ‚˜μ˜€λ©΄ 성곡

todo


πŸ“Œ API Documentation

λ‘œμ»¬μ—μ„œ μ„œλ²„λ₯Ό κ΅¬λ™ν•œ ν›„ μ ‘μ†ν•΄μ„œ 확인할 수 μžˆμŠ΅λ‹ˆλ‹€.

  • swagger λ¬Έμ„œ : http://127.0.0.1:8000/api/v1/swagger/
  • redocs λ¬Έμ„œ : http://127.0.0.1:8000/api/v1/redocs/

About

πŸ““ API Sandbox with Django Rest Framework


Languages

Language:Python 100.0%