-
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Prepare new release * Remove old docs * Add admin API documentation, see mockoon/mockoon#1334 * Pro data sync: - Add data sync documentation - Update terms and privacy - Reorder docs entries - Move ai assistant doc to new mockoon-cloud entry - Add sync quotas in user account - Update plans * Update docs images * Update contributing file * Add doc for mockoon/mockoon#1337 * Update docs images for mockoon/mockoon#964 * update alias for faker ipv4 (#129) * Add changelog --------- Co-authored-by: Ankit <[email protected]>
- Loading branch information
Showing
491 changed files
with
1,815 additions
and
3,834 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--- | ||
title: Overview | ||
meta: | ||
title: Admin API overview | ||
description: Learn how to use the admin API exposed by Mockoon to manage your environments, routes, and responses | ||
order: 800 | ||
--- | ||
|
||
# Admin API overview | ||
|
||
--- | ||
|
||
Each running mock server **exposes an admin API** that allows you to manage your environment. This API can be used to automate the management of your mock server, especially in a remote environment, without having to restart the application. | ||
|
||
## Admin API base endpoint | ||
|
||
The admin API **base endpoint** is the same as the mock server URL with the `/mockoon-admin` path appended. | ||
|
||
For example, if your mock server is running on `http://localhost:3000`, the admin API base endpoint will be `http://localhost:3000/mockoon-admin`. | ||
|
||
> 💡 The [API prefix](docs:server-configuration/port-prefix) is not applied to the admin API base endpoint. If your API endpoints are accessible on `http://localhost:3000/myprefix/{endpoint}`, the admin API base endpoint will still be `http://localhost:3000/mockoon-admin`. | ||
## Admin API capabilities | ||
|
||
Currently, the admin API allows you to: | ||
|
||
- [purge the state of a running environment](docs:admin-api/server-state) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
title: Server state | ||
meta: | ||
title: Server state | ||
description: Learn how to purge the state of a running environment using the admin API, resetting the request count and regenerating the data buckets | ||
order: 801 | ||
--- | ||
|
||
# Server state endpoint `/mockoon-admin/state` | ||
|
||
--- | ||
|
||
The `/mockoon-admin/state` endpoint currently allows you to purge the state of a running environment. | ||
|
||
### Purging the state of a running environment | ||
|
||
To purge the state of a running environment is done by calling one of the following endpoints: | ||
|
||
- `PURGE /mockoon-admin/state`. | ||
- `POST /mockoon-admin/state/purge`. | ||
|
||
**Effects:** | ||
|
||
- Resets the [request counter](docs:route-responses/dynamic-rules#1-target) to 1 for each route. | ||
- Regenerates the data buckets for the environment. The data buckets containing request helpers will be [generated again during the next request](docs:data-buckets/overview#data-buckets-generation). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.