Skip to content

Commit

Permalink
Minor readibility improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
catalinaadam authored Mar 6, 2024
1 parent 158fd8f commit adb356e
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions docs/api/inventory/add-service.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ category: 626de009b977e3003179f7dd

This section describes how to add a Service of any type to PMM Inventory.

In PMM versions prior to 3.0.0, we featured a separate API call for each Service type. Starting with PMM 3.0.0, we offer a single API endpoint for all Service types. While previously the Service type was defined by the endpoint, i.e. `Services/AddMySQL`, now the Service type must be specified as the top-level property of the request payload. Along with this single API endpoint, we are deprecating individual API endpoints for each Service type.
In PMM versions prior to 3.0.0, we featured a separate API call for each Service type. Starting with PMM 3.0.0, we have streamlined the process by offering single API endpoint for all Service types.
Previously, the Service type was defined by the endpoint, such as `Services/AddMySQL`. In the new approach, the Service type must be specified as the top-level property of the request payload. As part of the single API endpoint update, we have deprecated individual API endpoints for each Service type.

Let's see how to add a Node of type `mysql` using the old and new API calls.
Here's how to add a Node of type `mysql` using the old and the new API calls:

Old API call:
**Old API call**:

```shell
curl --insecure -X POST \
Expand All @@ -36,7 +37,7 @@ curl --insecure -X POST \
'
```

New API call:
**New API call**:

```shell
curl --insecure -X POST \
Expand Down Expand Up @@ -71,4 +72,4 @@ You can choose from the following Service types:
- haproxy
- external

To get the authentication token, please visit [the Authentication page](ref:authentication).
To get the authentication token, check [the Authentication page](ref:authentication).

0 comments on commit adb356e

Please sign in to comment.