Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gdiggs/gi_joe_psa
Knowing is half the battle
https://github.com/gdiggs/gi_joe_psa
Last synced: 7 days ago
JSON representation
Knowing is half the battle
- Host: GitHub
- URL: https://github.com/gdiggs/gi_joe_psa
- Owner: gdiggs
- Created: 2013-08-29T02:53:30.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-07-06T20:14:43.000Z (over 9 years ago)
- Last Synced: 2024-12-11T17:22:25.724Z (about 1 month ago)
- Language: Go
- Homepage: http://gijoepsa.herokuapp.com/
- Size: 4.07 MB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GI Joe PSA Moral API
### Returns a certain number of GI Joe PSA lessons
*All lessons sourced from [this page](http://www.joeheadquarters.com/joeendings.shtml)*
### GET `/`
Requesting the root path will return the most recent version of the API response
### GET `/v1` / GET `/v1.json`
#### Params
`:num` - Number of responses. Defaults to 1 and will return the max if a greater number is specified
#### Returns
* `:text` - The text of the lesson
* `:season` - The season in which this PSA aired
* `:code_name` - The name of the GI Joe who delivered this lesson
* `:situation` - The main situation for this PSA**Note: These attributes will be in an array if `num` is greater than 1**
### Running
```bash
$ go build && PORT=5000 ./gi_joe_psa
```