Skip to content

dhmudalige/courses-api-python-client

Repository files navigation

swagger-client

This API can be used to obtain the information of the courses in the Department of Computer Engineering, University of Peradeniya

This Python package is automatically generated by the Swagger Codegen project:

  • API version: v1
  • Package version: 1.0.0
  • Build package: io.swagger.codegen.languages.PythonClientCodegen

Requirements.

Python 2.7 and 3.4+

Installation & Usage

pip install

If the python package is hosted on Github, you can install directly from Github

pip install git+https://github.com//.git

(you may need to run pip with root permission: sudo pip install git+https://github.com//.git)

Then import the package:

import swagger_client 

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import swagger_client

Getting Started

Please follow the installation procedure and then run the following:

from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi(swagger_client.ApiClient(configuration))
semester = 'semester_example' # str | Available Semesters (1, 2, 3, 4, 5, 6, 7, 8, general, technical, short-semester)
course_code = 'course_code_example' # str | Course Code

try:
    api_response = api_instance.get_course_by_code(semester, course_code)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->get_course_by_code: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to https://localhost

Class Method HTTP request Description
DefaultApi get_course_by_code GET /{semester}/{courseCode}/
DefaultApi get_course_details_by_semester GET /{semester}/
DefaultApi get_courses GET /

Documentation For Models

Documentation For Authorization

All endpoints do not require authorization.

Author

e18227@eng.pdn.ac.lk

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published