Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Health API — Catch up #172

Merged
merged 1 commit into from
Oct 3, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 53 additions & 0 deletions text/0172-health-api.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# Health API

## 1. Summary

This specification describes the health API endpoint. The `/health` route allows to verify the status and availability of a Meilisearch instance.

## 2. Motivation

To know the status of a Meilisearch instance, `/health` is a public route that can be long pooled with simple monitoring tools.

## 3. Functional Specification

### 3.1. `health` API resource properties

| Field | Type | Required |
|--------------------------------------------------|-----------------|----------|
| [status](#311-status) | String | True |
irevoire marked this conversation as resolved.
Show resolved Hide resolved

#### 3.1.1. `status`

- Type: String
- Required: True
- Default: `available`
irevoire marked this conversation as resolved.
Show resolved Hide resolved

Returns the status of a Meilisearch instance, the only possible value is `available`.

## 3.2. API Endpoints Definition

### 3.2.1. `GET` - `health`

Retrieves the status of a Meilisearch instance.

`200` - Response body

```json
{
"status": "available"
}
```

All properties must be returned when the resource is retrieved.

### 3.2.2. Endpoint access

This route is always public and access to it cannot be protected by an API key.

## 2. Technical Details

n/a

## 3. Future Possibilities

n/a