Giter VIP home page Giter VIP logo

create_restful_api's Introduction

Django Watchlist App API

This repository contains a Django project for managing a watchlist of movies and TV shows, providing a RESTful API using the Django REST Framework.

Features

  • Watchlists: Manage a list of movies and TV shows with details such as name, description, and status.
  • Stream Platforms: Keep track of different streaming platforms where content is available.
  • Reviews: Users can review and rate items on the watchlist.

Getting Started

Prerequisites

  • Python 3.x
  • Django
  • Django REST Framework

Installation

  1. Clone the repository:

    git clone https://github.com/amirjahantab/Create_Simple_RestAPI.git
  2. Create a virtual environment (optional but recommended):

    python -m venv venv
    source venv/bin/activate  # On Windows, use `venv\Scripts\activate`
  3. Install dependencies:

    pip install -r requirements.txt
  4. Apply database migrations:

    python manage.py migrate
  5. Run the development server:

    python manage.py runserver
  6. Visit http://localhost:8000 in your browser to access the API.

API Endpoints

  • Watchlist:

    • List all watchlist items: /list/ (GET)
    • Retrieve a specific item: /<int:pk>/ (GET)
    • Create a new item: /list/ (POST)
    • Update an existing item: /<int:pk>/ (PUT)
    • Delete an item: /<int:pk>/ (DELETE)
  • Stream Platforms:

    • List all platforms: /stream/ (GET)
    • Retrieve a specific platform: /stream/<int:pk>/ (GET)
    • Create a new platform: /stream/ (POST)
    • Update an existing platform: /stream/<int:pk>/ (PUT)
    • Delete a platform: /stream/<int:pk>/ (DELETE)
  • Reviews:

    • List all reviews for a platform: /stream/<int:pk>/review/ (GET)
    • Create a new review for a platform: /stream/<int:pk>/review-create/ (POST)
    • Retrieve, update, or delete a review: /stream/review/<int:pk>/ (GET, PUT, DELETE)

Authentication

Some endpoints may require authentication. Make sure to include the necessary authentication headers in your requests.

create_restful_api's People

Contributors

amirjahantab avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.