Code Monkey home page Code Monkey logo

djangorestful_sample's Introduction

requirements

  • python 2.7.x
  • pip then install djano and rest framework: pip install Django pip install djangorestframework

and runserver : python manage.py runserver

admin username : root

admin password : root

auth token : d93c0cd63d90e257bede80e1e5cc1d5060b803e0
(NOTE:Add an authorization header "Authorization:Token [your token]" when you want access urls)

it is better use 'postman' but also you can use 'curl' command

sample:

  1. /books (get: send a list of exist books)
  2. /books/BOOK_ID/ (post : get information of a book using its id)
  3. /books/BOOK_ID/vote/ (post : vote a book)
  4. /publishers/ (same with 2 but for publishers)
  5. /authors/ (same with 2 but for authors)
  6. /users/ (post : create a account )
  7. /login/ (post : make a new token for you)

djangorestful_sample's People

Contributors

amirhoseinbidar avatar

Stargazers

Mahdi Ghasemi avatar  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.