Skip to content
This repository has been archived by the owner on May 25, 2020. It is now read-only.

Commit

Permalink
Merge pull request #13 from Pitt-CSC/edit-readme
Browse files Browse the repository at this point in the history
Add API endpoints to README.md
  • Loading branch information
solastley authored Aug 31, 2017
2 parents 0de3e3a + 377e81d commit ed5cf83
Showing 1 changed file with 70 additions and 0 deletions.
70 changes: 70 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,76 @@
1. Run `pip install -r apiwrapper/PittAPI/requirements.txt` to install PittAPI dependencies.
1. Launch `python server.py` to run the server.

# API Endpoints

#### Courses
```
/courses/<term>/<code>
```

#### Classes
```
/class/<class_number>/<term>
```

#### Lab Status
```
/lab_status/<lab_name>
```

#### Laundry Status
For simple laundry status:
```
/laundry/simple/<location>
```

For detailed laundry status:
```
/laundry/detailed/<location>
```

#### People
```
/people/<query>
```

#### Shuttles
For shuttle routes:
```
/shuttle/routes
```

For shuttle vehicle points:
```
/shuttle/points
```

For shuttle arrivals:
```
/shuttle/arrivals/<times_per_stop>
```

For shuttle stop estimates:
```
/shuttle/estimates/<vehicle_id>/<quantity>
```

#### Textbooks
If the term is to be specified:
```
/textbook/<department_code>/<course_name>/<instructor>/<term>
```

If the term is not to be specified:
```
/textbook/<department_code>/<course_name>/<instructor>
```

#### News
```
/news/<feed>/<max_news_items>
```


## License
```
Expand Down

0 comments on commit ed5cf83

Please sign in to comment.