https://github.com/hackthevalley/graphql_api
Hack the Valley Primary API, Shared Across All Events
https://github.com/hackthevalley/graphql_api
api docker graphql hackathon nodejs nosql
Last synced: about 2 months ago
JSON representation
Hack the Valley Primary API, Shared Across All Events
- Host: GitHub
- URL: https://github.com/hackthevalley/graphql_api
- Owner: hackthevalley
- License: mit
- Created: 2018-07-23T21:04:01.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-15T07:12:30.000Z (over 6 years ago)
- Last Synced: 2025-02-05T08:51:33.332Z (4 months ago)
- Topics: api, docker, graphql, hackathon, nodejs, nosql
- Language: JavaScript
- Homepage: https://api.hackthevalley.io/graphql
- Size: 146 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Hack the Valley API
[](https://travis-ci.org/hackthevalley/hack_the_valley_api)
Hack the Valley Primary API, Shared Across All Events
Visit [https://api.hackthevalley.io/graphql](https://api.hackthevalley.io/graphql) to explore our GraphQL API!
## Authorization
Our API is open to the public, however, some queries and mutations might require authentication.
First you will need to obtain an API key, this can be achieved by calling `createHackerToken()` with your login credentials.
```graphql
mutation {
createHackerToken(email_address: "[email protected]", password: "htv123") {
token_body
}
}
```> By default, API key expire after 24 hours, you can pass an optional argument called `expire_after` in seconds.
After obtaining `token_body`, pass it as bearer token header to authenticate:
```
Authorization: Bearer
```