go-mokapi 0.8.5 → 0.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -4,14 +4,28 @@
|
|
|
4
4
|
|
|
5
5
|
<h3 align="center">Easy and flexible API mocking</h3>
|
|
6
6
|
|
|
7
|
+
**Mokapi** is an open-source tool that allows Agile, DevOps and Continuous Deployment teams
|
|
8
|
+
to create and test API designs before actually building them.
|
|
7
9
|
|
|
8
|
-
|
|
10
|
+
With Mokapi you can quickly and easily test various
|
|
11
|
+
scenarios, such as delayed or failed responses without
|
|
12
|
+
having to rely on a fully functional API.
|
|
9
13
|
|
|
10
|
-
Mokapi
|
|
14
|
+
Mokapi helps you improve the quality of APIs and
|
|
15
|
+
reduces the risk of bugs or errors in production.
|
|
11
16
|
|
|
12
|
-
|
|
17
|
+
Its core feature are:
|
|
13
18
|
|
|
14
|
-
|
|
19
|
+
- **Multiple Protocol support**: HTTP, HTTPS, Apache Kafka, SMTP, LDAP
|
|
20
|
+
- **Everything as Code**: Reusing, version control, consistency and integrate mocks with your CI/CD.
|
|
21
|
+
- **An embedded JavaScript engine** to control everything - status, headers, delays, errors or other edge cases.
|
|
22
|
+
- **Patch Configuration** changes for mocking needs, rather than changing the original contract
|
|
23
|
+
- **Multiple Provider support**: File, HTTP, GIT to gather configurations and scripts.
|
|
24
|
+
- **Dashboard** to see what's going on.
|
|
25
|
+
|
|
26
|
+
## Example
|
|
27
|
+
|
|
28
|
+
<img src="https://mokapi.io/everythingcode.png" alt="Example">
|
|
15
29
|
|
|
16
30
|
## Web UI
|
|
17
31
|
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
package/types/mokapi.d.ts
CHANGED
|
@@ -100,10 +100,12 @@ declare interface Url {
|
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
declare interface DateArgs {
|
|
103
|
-
layout?:
|
|
103
|
+
layout?: DateLayout
|
|
104
104
|
timestamp?: number
|
|
105
105
|
}
|
|
106
106
|
|
|
107
|
+
declare type DateLayout = 'DateTime' | 'DateOnly' | 'TimeOnly' | 'UnixDate' | 'RFC882' | 'RFC822Z' | 'RFC850' | 'RFC1123' | 'RFC1123Z' | 'RFC3339' | 'RFC3339Nano'
|
|
108
|
+
|
|
107
109
|
declare interface EventArgs {
|
|
108
110
|
/**
|
|
109
111
|
* Adds or overrides existing tags used in dashboard
|