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
Python 2.7 and 3.4+
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 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_clientPlease 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)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 / |
All endpoints do not require authorization.