Giter Site home page Giter Site logo

vishaag / amritatoday Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 8.64 MB

AmritaToday is an Android based application which connects the people in Amrita in the most essential ways possible. This repository contains the source code of the application's RESTful API.

Python 99.71% Shell 0.05% HTML 0.01% CSS 0.08% C 0.08% JavaScript 0.08%

amritatoday's Introduction

AmritaToday

AmritaToday is an Android based application which connects the people in Amrita in the most essential ways possible. This repository contains the source code of the application's RESTful API.

  1. Canteen Menu APIs - A crowdsource based implementation for anyone in Amrita to see and post data about the present items availabe in all 3 canteens.(v1.0 implemented)
  2. Clubs@Amrita - Enables everyone to view the upcoming events by various clubs at Amrita. Also provides heads of clubs to create new events.(v1.0 implemented)
  3. Buy/Sell@Amrita - Buy/Sell things at Amrita. No money transactions, only details and contact. (v1.0 implemented)

Tech

AmritaToday's backend is built using the python web framework Flask. It is current hosted on Heroku (free plan). It uses the PostgreSQL for its database.

API Reference

  1. Canteen Menu APIs: To get list of items availabe in the canteens, send a GET request to

https://amritatoday.herokuapp.com/api/v1.0/menu/main

https://amritatoday.herokuapp.com/api/v1.0/menu/mba

https://amritatoday.herokuapp.com/api/v1.0/menu/it

  1. Club Event APIs: To get list of events posted by various clubs at Amrita, send a GET request to

Retrieves the list of clubs:

https://amritatoday.herokuapp.com/api/v1.0/clubs

Retrieves all events:

https://amritatoday.herokuapp.com/api/v1.0/events

Retrieves events of specific clubs:

https://amritatoday.herokuapp.com/api/v1.0/events?club=clubname

Eg: https://amritatoday.herokuapp.com/api/v1.0/events?club=Srishti

Eg: https://amritatoday.herokuapp.com/api/v1.0/events?club=Srishti&club=Sahaya

Create New events:

To create new events, send a POST request to:

https://amritatoday.herokuapp.com/api/v1.0/events

with body:

{
      "club": "clubname", 
      "event": "eventname",
      "description": "event description",
      "date": "event start date & time",  eg: 2016-04-12 04:00 PM
      "end_date": "event end date & time", eg: 2016-04-12 06:00 PM
      "venue": "AM Hall"
      "poster":"poster link" eg: www.sahaya.com/poster
} 

Eg:

{
      "club": "Srishti", 
      "event": "Mime",
      "description": "Fun and Frolic!",
      "date": "Tue, 12 Apr 2016 07:00:00 GMT", 
      "end_date": "Fri, 15 Apr 2016 07:00:00 GMT", 
      "venue": "AM Hall"
      "poster":"www.sahaya.com/poster"
} 
  1. Buy/Sell APIs:

    To buy and sell items - for people at Amrita.

    To retrieve list of items put for sale, send a GET request to:

    https://amritatoday.herokuapp.com/api/v1.0/buy

    To post for a sale a new item, send a POST request to:

    https://amritatoday.herokuapp.com/api/v1.0/sell

    with body:

  {

  "item": "itemname",
  "category": "category",
  "price": price in rs,
  "orig_price": price in rs,
  "description": "Why do you want to sell this?",
  "email": "seller's email id",
  "phone": "sellers phone number"

  }
Eg:
  {

  "item": "Shirt",
  "category": "Clothes",
  "price": 500,
  "orig_price": 1000,
  "description": "I got big!",
  "email": "[email protected]",
  "phone": "9876543210"

  }

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.