Skip to content

Commit

Permalink
adds api docs for services
Browse files Browse the repository at this point in the history
  • Loading branch information
boristane committed Jun 6, 2024
1 parent f103ca8 commit f7b2813
Showing 1 changed file with 61 additions and 3 deletions.
64 changes: 61 additions & 3 deletions api-docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ This endpoint enables the client to interact with resources on Baselime platform

## Authentication Headers
* `content-type: application/json`
* `x-api-key: <api key>` - get your API key from [Baselime console](https://console.baselime.io)
* `x-api-key: <api key>` - get your admin API key from [Baselime console](https://console.baselime.io)

## Dashboards

Expand Down Expand Up @@ -371,7 +371,6 @@ This endpoint enables the client to interact with resources on Baselime platform
}
```
===

## Alerts

==- [!badge GET] `/alerts`
Expand Down Expand Up @@ -621,6 +620,65 @@ This endpoint enables the client to interact with resources on Baselime platform

---

## Services

==- [!badge GET] `/services`
**Description:** Lists all services in the environment.

**Response**
```typescript Body
{
"data": Array<{
"name": string
"workspaceId": string
"environmentId": string
"userId": string
"generated": boolean
"created": string
"updated": string
"metadata": Record<string, any>
}>
}

```

==- [!badge GET] `/services/{name}`
**Description:** Gets a service by name.


**Request**
* `{id}` - The name of the service.

**Response**
```typescript Body
{
"data": {
"name": string
"workspaceId": string
"environmentId": string
"userId": string
"generated": boolean
"created": string
"updated": string
"metadata": Record<string, any>
}
}
```

==- [!badge variant="danger" text="DELETE"] `/services/{name}`
**Description:** Deletes a service.

**Request**
* `{name}` - The name of the service.

**Response**
```typescript Body
{
"message": "Service deleted",
}
```
===


# Telemetry data

Expand All @@ -630,7 +688,7 @@ This endpoint enables you to query your telemetry data.

## Authentication
* `content-type: application/json`
* `x-api-key: <api key>` - get your API key from [Baselime console](https://console.baselime.io)
* `x-api-key: <api key>` - get your admin API key from [Baselime console](https://console.baselime.io)

==- [!badge POST] `/query_runs`
**Description:** Creates a new query run and returns its results.
Expand Down

0 comments on commit f7b2813

Please sign in to comment.