Skip to content
Merged
Show file tree
Hide file tree
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
27 changes: 2 additions & 25 deletions 03.usage/03.api/docs.md → 03.usage/03.api/00.overview/docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Credentials can be customized by setting your own user and password in configura

```
api-port ="10005"
api-credential = "admin:repman"
api-credentials = "admin:repman"
```

At startup of the monitor, X509 certificates are loaded from the replication-manager share directory or from keys defined from config files to ensure TLS https secure communication.
Expand Down Expand Up @@ -58,29 +58,6 @@ TOKEN=$(wget -qO- --no-check-certificate --post-data '{"username":"admin","pass

wget -qO- --no-check-certificate --header 'Accept: application/json' --header "Authorization: Bearer ${TOKEN}" https://127.0.0.1:10005/api/clusters

### Monitor Unprotected Endpoints

/api/login

INPUT: POST
```
{"username":"admin", "password":"mariadb"}
```
OUTPUT:
```
{"token":"hash"}
```

/api/status

OUPUT:
```
{"alive": true}
./replication-manager api --url="https://127.0.0.1:10005/api/status"
```

/api/clusters/{clusterName}/status

## API documentation
[Can be browsed online] https://dbaas-fr-2.signal18.io/api-docs/index.html)
Or by installing the product and point to http://127.0.0.1:10001/api-docs
Or by installing the product and point to http://127.0.0.1:10001/api-docs
Loading