Skip to content

Commit

Permalink
Merge branch 'master' of github.com:prabhuomkar/droll-api
Browse files Browse the repository at this point in the history
  • Loading branch information
prabhuomkar committed Oct 25, 2019
2 parents 4feaa1b + 58d99f8 commit 059bc1b
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 1 deletion.
1 change: 1 addition & 0 deletions Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
web: ./bin/droll-api
48 changes: 48 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,53 @@
![Droll](assets/logo.png)

## Supported Comics

| xkcd | Indexed | PHD Comics |
|----------------------------------------|-------------|--------------|
| ![xkcd](https://xkcd.com/s/0b7742.png) | Coming Soon | Coming Soon |

## Examples

### XKCD

**General**
```
query {
xkcd {
alt
day
image
link
month
news
num
safeTitle
title
transcript
year
}
}
```

**With Limit and Offset**
```
query {
xkcd(limit: 10, offset: 1) {
alt
day
image
link
month
news
num
safeTitle
title
transcript
year
}
}
```

## Getting Started

### Installation and Setup
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func main() {
})

http.Handle("/graphql", h)
err = http.ListenAndServe(os.Getenv("PORT"), nil)
err = http.ListenAndServe(":"+os.Getenv("PORT"), nil)
if err != nil {
log.Fatal(err)
log.Printf("Cannot start %s", utils.APIName)
Expand Down

0 comments on commit 059bc1b

Please sign in to comment.