Git Product home page Git Product logo

thiru-kumaran-r / aptitude-api Goto Github PK

View Code? Open in Web Editor NEW
15.0 1.0 2.0 484 KB

A REST-API that provides random or topic based Aptitude question for each call. Each topic in this API contains more than 100+ questions.Topics that are available in this API are Mixture and Alligation , Profit and Loss , Pipes and Cisterns , Age , Permutation and Combination , Speed Time Distance , Simple Interest , Calendars.

Home Page: https://aptitude-gq2iufa01-thirukumarans-projects.vercel.app/

License: MIT License

JavaScript 51.88% CSS 33.78% HTML 14.34%
apititude aptitude-interview-prep aptitude-tests aptitude-rest-api public-api

aptitude-api's Introduction

APTITUDE API

MIT License

Aptitude API is a free API that generates aptitude questions based on your choice for each call. Each topic in this Aptitude API has more than 100 questions. Topics that are currently available in this API are :

  • Mixture and Alligation
  • Profit and Loss
  • Pipes and Cisterns
  • Age
  • Permutation and Combination
  • Speed Time Distance
  • Simple Interest
  • Calendars

End Points

Get all aptitude questions

 https://aptitude-api.vercel.app/Random

Get questions only on Mixture and Alligation topic

  https://aptitude-api.vercel.app/MixtureAndAlligation

Get questions only on Age topic

  https://aptitude-api.vercel.app/Age

Get questions only on Permutation and Combination topic

  https://aptitude-api.vercel.app/PermutationAndCombination

Get questions only on Profit and Loss topic

  https://aptitude-api.vercel.app/ProfitAndLoss

Get questions only on Pipes and Cisterns topic

  https://aptitude-api.vercel.app/PipesAndCisterns

Get questions only on Speed Time Distance topic

  https://aptitude-api.vercel.app/SpeedTimeDistance

Get questions only on Calendars topic

  https://aptitude-api.vercel.app/Calendar

Get questions only on Simple Interest topic

  https://aptitude-api.vercel.app/SimpleInterest

Documentation

For more reference follow this Documentation

Examples

GET

fetch('https://aptitude-api.vercel.app/Age')
  .then(response => {
    console.log(response.json());
  });

POST

fetch('https://aptitude-api.vercel.app/Age', {
  method : 'POST',
  body : JSON.stringify({
      question: "The sum of ages of A and B is 45 years. If the ratio of their ages is 5:3, what is B's age?",
      answer: "18 years",
      options: ["15 years", "18 years", "20 years", "25 years"],
      explanation: "Let the ages of A and B be 5x and 3x, respectively. Given that 5x + 3x = 45. Solving this equation gives x = 5. Hence, B's age = 3 * 5 = 15 years."
    }),
  headers : {
    'Content-Type' : 'application/json ; charset=UTF-8'
  }
})
  .then(response => {
    console.log(response.json());
  })

PATCH

fetch('https://aptitude-api.vercel.app/Age', {
  method : 'PATCH',
  body : JSON.stringify({
      questionToBeUpdated : "The sum of ages of B and A is 45 years. If the ratio of their ages is 5:3, what is B's age?",
      question: "The sum of ages of A and B is 45 years. If the ratio of their ages is 5:3, what is B's age?",
      answer: "18 years",
      options: ["15 years", "18 years", "20 years", "25 years"],
      explanation: "Let the ages of A and B be 5x and 3x, respectively. Given that 5x + 3x = 45. Solving this equation gives x = 5. Hence, B's age = 3 * 5 = 15 years."
    }),
  headers : {
    'Content-Type' : 'application/json ; charset=UTF-8'
  }
})
  .then(response => {
    console.log(response.json());
  })

Contributing

Contributions are always welcome!

You can contribute aptitude questions by submitting a post request to that route on a certain topic.The following format should be used for each question.

 {
    question: "If Alice is 5 years older than Bob, and the sum of their ages is 35, how old is Alice?",
    answer: "20",
    options: ["20", "25", "30", "35"],
    explanation: "Let Bob's age be x. Then Alice's age is x + 5. Given that x + (x + 5) = 35. Solving this equation, we find x = 15, so Alice is x + 5 = 20 years old."
  }

Make sure to verify the clarity of the explanation and the query.

Screenshots

App Screenshot

aptitude-api's People

Contributors

thiru-kumaran-r avatar

Stargazers

Bapan Mandal avatar  avatar  avatar  avatar  avatar Perumal avatar Ashwin Kumar avatar Kunal Chaudhari avatar  avatar Surendar avatar  avatar  avatar  avatar Deependra M B avatar Kiruthiga Ravi 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.