# Uplift

## GraphQL

<mark style="color:green;">`POST`</mark> `http://uplift-backend.cornellappdev.com/graphQL`

This endpoint takes GraphQL queries and get the requested data as JSON result.

#### Query Parameters

| Name          | Type   | Description                                                            |
| ------------- | ------ | ---------------------------------------------------------------------- |
| GraphQL Query | string | <p>Example:<br><br>{<br>  gyms {<br>    id<br>    name<br>  }<br>}</p> |

{% tabs %}
{% tab title="200 Response to example query" %}

```
{
  "data": {
    "gyms": [
      {
        "id": "7045d11329b3645c93556c5aaf44bb21d56934f5",
        "name": "Helen Newman"
      },
      {
        "id": "7c53229a64f4794f57a715a9ec0c7f806db23514",
        "name": "Appel"
      },
      {
        "id": "1f114d3b981f832c858f5cfa52f3a1eb6191e1a4",
        "name": "Noyes"
      },
      {
        "id": "939c7a2c16d2299cc8558475a8007defc414069c",
        "name": "Teagle Up"
      },
      {
        "id": "043c57f3b63411c7a3500c0986fa4b1c8712798c",
        "name": "Teagle Down"
      }
    ]
  }
}
```

{% endtab %}
{% endtabs %}

For more information on GraphQL: <https://graphql.org/>
