Git Product home page Git Product logo

rest-api-for-forum-on-drf-docker's Introduction

Virtual Env: move to project folder and run 'venv\Scripts\activate' for Windows or 'source venv\Scripts\activate' for *nix systems


Docker-compose: move to project folder in your bash-terminal of Docker and run command:
docker-compose up


Don't forget to change database in settings.py for Docker or Venv!


API Enpoints:

For getting access to authorized only/author only use Postman/frontend client providing authorization bearer token

/api/v1/signup - Registration(via Postman/frontend client providing "name" "email" "password" in body)

/api//token/ - Obtaining token for authorization(via Postman/frontend client providing "email" "password" in body)

/api/v1/posts - Post List for all

/api/v1/posts/post/id - Post retrive for all

/api/v1/posts/create - Create post for authorized only

/api/v1/posts/update/id - Update post only by its author

/api/v1/posts/like_dislike/id - Like/Dislike post for authorized only

/api/v1/posts/comments - Comment list for all

/api/v1/posts/comments/create - Comment create for authorized only

/api/v1/posts/comments/update/id - Update comment only by its author

/api/v1/posts/comments/like_dislike/id - Like/Dislike comment for authorized only

/api/v1/accounts - Account List for all

/api/v1/accounts/id - User Statistic for all

rest-api-for-forum-on-drf-docker's People

Contributors

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