Skip to content

Latest commit

 

History

History
55 lines (39 loc) · 1.94 KB

README.md

File metadata and controls

55 lines (39 loc) · 1.94 KB

Sample Django API

A sample api with Django Rest Framework.

Still in Development

Setup project locally

Use a virtual env

  • Clone repo : $ git clone https://github.com/ADC-Club-AMU/django-rest-api.git
  • $ cd django-rest-api
  • Create a virtualenv: $ mkvirtualenv env or $ python -m venv env
  • Activate env : $ workon env or $ source env/bin/activate
  • Install dependencies : $ pip install -r requirements.txt
  • Run project : $ python manage.py runserver

API Endpoints

Returns data of all faculties.

Returns data of a single faculty.

Returns data of all departments.

Returns data of a department.

It will return all the events and university wide events for the day.

It will return all the events, and university wide events for the particular faculty.

It will return all the available exams for the day.

It will return all entrance exams of the year.

It will return all notices.

It will return all holidays for a particular year.

It will return all holidays for that particular month.

This API fetches news heading and url from beta.amu.ac.in using web scraping and returns the data as json.

ToDo

  • Create a Web UI for admins.
  • Create an API that returns json data after webscraping from amu.ac.in (Completed)