Code Monkey home page Code Monkey logo

yvensb1-fiverr's Introduction

REST FRAMEWORK FOR CAR ADVERTISMENT SERVICE

API Endpoints

SUCCESS EVENTS RETURN { success: true }
  • API Server Status

    "/api/"

    Allowed Methods: [GET]
    image
  • User Options

    "/api/user/"

    Allowed Methods: [POST, PUT]
    • POST
      • can be used to create new users
      • JSON STRUCTURE
          {
              "first_name": "value",
              "last_name": "value",
              "age": value,
              "address_no": "value",
              "address_street": "value",
              "address_city": "value",
              "address_country": "value"
          }
      

    • PUT
      • for updating user details
      • user_id is compulsory to be passed in
      • pass in field names that needs to be changed along with the updated value
      • JSON STRUCTURE
          {
              "user_id": value,
              "first_name": "value",
              "last_name": "value",
              "age": value,
              "address_no": "value",
              "address_street": "value",
              "address_city": "value",
              "address_country": "value"
          }
      
      • "/api/user/<id>/"

      • _ lists down details for a specific user id _

        Allowed Methods: [GET]
      • Example: /api/user/1
      image

  • Car Options

    "/api/car/"

    Allowed Methods: [GET, POST, PUT, DELETE]
    • GET
      • Lists down all the available Cars

        image
    • POST
      • for creating new car objects
      • JSON STRUCTURE
          {
              "model": "value",
              "brand": "value",
              "number_plate": "value",
              "user_id": value
          }
      
    • PUT
      • for updating created car objects
      • user_id is compulsory to be passed in
      • pass in field names that needs to be changed along with the updated value
      • JSON STRUCTURE
          {
              "car_id": value,
              "model": "value",
              "brand": "value",
              "number_plate": "value",
              "user_id": value
          }
      
    • DELETE
      • for deleting existing car records
      • pass in only the value of car_id and it'll delete the record
      • JSON STRUCTURE
          {
              "car_id": value
          }
      
      • "/api/car/<id>/"

        • _ lists down details for a specific car id _
        Allowed Methods: [GET]
      • Example: /api/car/2
        image
  • Ad Options

    "/api/ad/"

    Allowed Methods: [GET, POST, PUT, DELETE]
    • GET
      • Lists down all the available Ads

        image
    • POST
      • for creating new ads
      • JSON STRUCTURE
          {
            "title": "value",
            "description": "value",
            "price": "value",
            "user_id": value,
            "car_id": value
          }
      
    • PUT
      • for updating Ad objects
      • ad_id is compulsory to be passed in
      • pass in field names that needs to be changed along with the updated value
      • JSON STRUCTURE
          {
              "ad_id": value,
              "car_id": value,
              "model": "value",
              "brand": "value",
              "number_plate": "value",
              "user_id": value
          }
      
    • DELETE
      • for deleting existing Ad records
      • pass in only the value of ad_id and it'll delete the record
      • JSON STRUCTURE
          {
              "ad_id": value
          }
      
      • "/api/ad/<id>/"

        • _ lists down details for a specific Ad id _
        Allowed Methods: [GET]
      • Example: /api/ad/1
        image

yvensb1-fiverr's People

Contributors

lithika-damnod 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.