Giter Site home page Giter Site logo

drf-api's Introduction

Project: Permissions & Postgresql

Features - General

  • You have been supplied with two demos, each presenting a key new feature.
    • One demonstrates how to restrict access to portions of your APIs data.
    • The other demonstrates switching over to using postgres vs sqlite
  • Your job is to merge the functionality of both demos.
  • Customize your project to use different application features/models than what was used in demos.

Features - Django REST Framework

  • Make your site a DRF powered API as you did in previous lab.
  • Adjust project’s permissions so that only authenticated user’s have access to API.
  • Add a custom permission so that only appropriate users can update or delete it.
    • Exactly what this means will depend on your application, so if you have any questions about “appropriate users” means reach out to TA/Instructor.
    • Add ability to switch user’s directly from browsable API.

Features - Docker

  • NOTE Refer to demo for built out Dockerfile and docker-compose.yml examples.
  • create Dockerfile based off python:3.10-slim
  • create docker-compose.yml to run Django app as a web service.
  • enter docker-compose up --build to start your site.
  • add postgres as a service
  • Note: It is not required to include a volume so that data can persist when container is shut down.
  • Go to browsable api and confirm site properly restricts users based on their permissions.

drf-api's People

Contributors

bkhanal4351 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.