# QHSE REST API

## Get Job

<mark style="color:blue;">`GET`</mark> `https://qhse-professionals.nl/wp-json/qhsejobs/v1/job/:jobid`

## Get Job

<mark style="color:blue;">`GET`</mark> `https://qhse-professionals.nl/wp-json/qhsejobs/v1/job/:jobid`

This endpoint allows you to get free cakes.

#### Path Parameters

| Name  | Type   | Description           |
| ----- | ------ | --------------------- |
| jobid | string | ID of the job to get. |

#### Query Parameters

| Name   | Type    | Description                                                           |
| ------ | ------- | --------------------------------------------------------------------- |
| recipe | string  | The API will do its best to find a cake matching the provided recipe. |
| gluten | boolean | Whether the cake should be gluten-free or not.                        |

#### Headers

| Name           | Type   | Description                                                    |
| -------------- | ------ | -------------------------------------------------------------- |
| Authentication | string | Authentication token to track down who is emptying our stocks. |

{% tabs %}
{% tab title="200 Cake successfully retrieved." %}

```javascript
{
    "name": "Cake's name",
    "recipe": "Cake's recipe name",
    "cake": "Binary cake"
}
```

{% endtab %}

{% tab title="404 Could not find a cake matching this query." %}

```javascript
{
    "message": "Ain't no cake like that."
}
```

{% endtab %}
{% endtabs %}

#### Path Parameters

| Name  | Type   | Description  |
| ----- | ------ | ------------ |
| jobid | string | G8eMXvLlYGyy |

#### Query Parameters

| Name   | Type    | Description  |
| ------ | ------- | ------------ |
| recipe | string  | 7cFtVIRaTYu1 |
| gluten | boolean | ZMwrgffJAoh2 |

#### Headers

| Name           | Type   | Description  |
| -------------- | ------ | ------------ |
| Authentication | string | DlhhY6Vvmnyb |

[![Build Status](https://circleci.com/gh/mikevdberge/qhse-jobs-api/tree/master.svg?style=shield\&circle-token=a2c6f7ffef5ccf3e9a7982c14b945f583f89c072)](https://circleci.com/gh/mikevdberge/qhse-jobs-api/tree/master)[!API Status](https://img.shields.io/uptimerobot/status/m783115057-d310c118d45e6c2dec230ad0.svg)

## API Description

### [API Blueprint](http://apiblueprint.org/)

* Document: [apiary.apib](https://github.com/mikevdberge/qhse-jobs-api/tree/51ad04a95024b758368831c179db648e3d713417/apiary.apib)
* Dredd configuration: [dredd.yml](https://github.com/mikevdberge/qhse-jobs-api/tree/51ad04a95024b758368831c179db648e3d713417/dredd.yml)

## CI Status

| CI                                | Configuration                                                                                                                           | Status                                                                                                                                                                                       |
| --------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [CircleCI](https://circleci.com/) | [.circleci/config.yml](https://github.com/mikevdberge/qhse-jobs-api/tree/51ad04a95024b758368831c179db648e3d713417/.circleci/config.yml) | [![](https://circleci.com/gh/mikevdberge/qhse-jobs-api/tree/master.svg?style=svg\&circle-token=a2c6f7ffef5ccf3e9a7982c14b945f583f89c072)](https://circleci.com/gh/mikevdberge/qhse-jobs-api) |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.qhse-professionals.nl/readme.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
