Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/angie44/theoffice-api

an api to retrieve the Office (US) quotes and character co-occurrence data when needed (ALWAYS XD)
https://github.com/angie44/theoffice-api

golang lolz rest the-office

Last synced: 24 days ago
JSON representation

an api to retrieve the Office (US) quotes and character co-occurrence data when needed (ALWAYS XD)

Awesome Lists containing this project

README

        

# theOffice-api
a REST api to retrieve the Office quotes when needed (ALWAYS 💁‍)

Currently hosted at: https://the-office.fly.dev

Currently used for: https://angie44.github.io/theOffice

![](https://media.giphy.com/media/MaItK5SUgStdm/giphy.gif)

# API Reference

Available at: https://the-office.fly.dev/docs

## GET

* Get quotes or nodes/links by season number
* **URL:** _/season/:season/format/:format_
* **Method:** `GET`
* **URL Params:**

**Required:**

* `season=[integer] // season number [1-9], inclusive`

* `format=[string] // "quotes" or "connections"`

* **Success Response:**
* **Code:** 200
* **Content [Quotes]:** `[{ "season": seasonNumber, "episode" : episodeNumber, "scene": sceneNumber, "episode_name": episodeName, "character": character, "quote" : quote}]`
* **Content [Connections]:** `[{ "episode": episodeNumber, "name": episodeName, "links" : [{ "source" : characterName, "target": characterName, "value" : numberOfCoOccurencesInEpisode }], "nodes" : [{ "id" : characterName }]`


* Get quotes for a specific season and episode
* **URL:** _/season/:season/episode/:episode_
* **Method:** `GET`
* **URL Params:**

**Required:**

* `season=[integer] // season number [1-9], inclusive`

* `episode=[integer] // episode number within season (indexing begins at 1)`
* **Success Response:**
* **Code:** 200
* **Content:** `[{ "season": seasonNumber, "episode" : episodeNumber, "scene": sceneNumber, "episode_name": episodeName, "character": character, "quote" : quote }]`