Giter Site home page Giter Site logo

shebak's Introduction

Shebak Assessment

  • Endpoint Authentication.
  • Custom decorator methon verify the authorization header.
  • The endpoint should pick a random quote, and send it, along with its author, as a JSON response.
  • Generate an excel report file after every 100 calls composed of one sheet.

Setup

To get started with this project we highly recommend the following:

  • Clone this repository by running https://github.com/abrar4799/shebak.git in your terminal.
  • Install project dependancies by running pip3 install -r requirements.txt
  • Run python3 manage.py makemigrations
  • Run python3 manage.py migrate
  • Run the project using python3 manage.py runserver

Get Token

Get Random Quote

  • Using this route http://127.0.0.1:8000/quote/random/
  • Sending your token in headers as key and value pairs
  • Ex: { key: Authorization , value: Token 8ac76bae227187e04977c5206f8a2e0c5af3f763 }
  • After 100 call of API excel report file automatically generated with name quotes_api_report_ and date , time Ex: quotes_api_report_27_11_2022_16_24_52.xlsx

shebak's People

Contributors

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