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

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

Awesome Lists containing this project

README

        

# Hack the Valley API

[![Build Status](https://travis-ci.org/hackthevalley/hack_the_valley_api.svg?branch=master)](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
```