go-mokapi 0.43.0 → 0.44.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 +15 -13
- package/package.json +11 -8
package/README.md
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
<p align="center">
|
|
2
2
|
<a href="https://mokapi.io">
|
|
3
|
-
<img src="https://raw.githubusercontent.com/marle3003/mokapi/refs/heads/main/logo.svg" alt="Mokapi
|
|
3
|
+
<img src="https://raw.githubusercontent.com/marle3003/mokapi/refs/heads/main/logo.svg" alt="Mokapi - Open Source Mock API Server" width="300" />
|
|
4
4
|
</a>
|
|
5
5
|
</p>
|
|
6
|
-
|
|
6
|
+
|
|
7
|
+
# The Open-Source Mock API Tool Across Protocols
|
|
8
|
+
|
|
7
9
|
<p align="center">
|
|
8
10
|
<a href="https://www.npmjs.com/package/go-mokapi"><img src="https://img.shields.io/npm/v/go-mokapi.svg" alt="npm version"></a>
|
|
9
11
|
<a href="https://github.com/marle3003/mokapi/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="License"></a>
|
|
@@ -12,9 +14,8 @@
|
|
|
12
14
|
|
|
13
15
|
## What is Mokapi?
|
|
14
16
|
|
|
15
|
-
Mokapi is an open-source API
|
|
16
|
-
|
|
17
|
-
OpenAPI and AsyncAPI specifications.
|
|
17
|
+
Mokapi is an open-source [mock API](https://mokapi.io) tool for development and testing without backend dependencies. Easily mock
|
|
18
|
+
REST APIs, Kafka topics, LDAP directories, and SMTP servers using OpenAPI or AsyncAPI.
|
|
18
19
|
|
|
19
20
|
Perfect for:
|
|
20
21
|
- Frontend developers building UIs before backends exist
|
|
@@ -24,13 +25,13 @@ Perfect for:
|
|
|
24
25
|
|
|
25
26
|
## Quick Start
|
|
26
27
|
|
|
27
|
-
Try
|
|
28
|
+
Try the **mock API** instantly:
|
|
28
29
|
|
|
29
30
|
```
|
|
30
31
|
npx go-mokapi https://petstore3.swagger.io/api/v3/openapi.json
|
|
31
32
|
```
|
|
32
33
|
|
|
33
|
-
Then test your mock
|
|
34
|
+
Then test your local **mock API**:
|
|
34
35
|
|
|
35
36
|
```
|
|
36
37
|
curl http://localhost/api/v3/pet/1 -H 'Accept: application/json'
|
|
@@ -49,15 +50,15 @@ Check other installation methods [here](https://mokapi.io/docs/get-started/insta
|
|
|
49
50
|
|
|
50
51
|
## Key Features
|
|
51
52
|
|
|
52
|
-
### Multi-Protocol Support
|
|
53
|
+
### Multi-Protocol Mock API Support
|
|
53
54
|
Mock HTTP/HTTPS, Apache Kafka, LDAP, and SMTP — all from a single tool.
|
|
54
55
|
|
|
55
56
|
### Specification-Driven
|
|
56
|
-
Uses OpenAPI and AsyncAPI specs as the source of truth. Your
|
|
57
|
+
Uses OpenAPI and AsyncAPI specs as the source of truth. Your **mock API** stays aligned with your API contracts.
|
|
57
58
|
|
|
58
59
|
### Dynamic Behavior with JavaScript
|
|
59
60
|
|
|
60
|
-
Control responses, simulate errors, add delays, or create complex workflows using embedded JavaScript:
|
|
61
|
+
Control responses, simulate errors, add delays, or create complex workflows in your **mock API** using embedded JavaScript:
|
|
61
62
|
```javascript
|
|
62
63
|
import { on } from 'mokapi'
|
|
63
64
|
|
|
@@ -76,7 +77,7 @@ export default function() {
|
|
|
76
77
|
```
|
|
77
78
|
|
|
78
79
|
### Everything as Code
|
|
79
|
-
Version control your
|
|
80
|
+
Version control your **mock API** alongside your code. Run them in CI/CD pipelines. No UI configuration required.
|
|
80
81
|
|
|
81
82
|
### Configuration Patching
|
|
82
83
|
Override parts of your OpenAPI spec without modifying the original file. Perfect for testing different scenarios.
|
|
@@ -106,8 +107,8 @@ Validate that your requests and responses match your OpenAPI specification. Catc
|
|
|
106
107
|
|
|
107
108
|
Explore tutorials that walk you through mocking different protocols and scenarios:
|
|
108
109
|
|
|
109
|
-
- [Get started with REST API](https://mokapi.io/resources/tutorials/get-started-with-rest-api)
|
|
110
|
-
|
|
110
|
+
- [Get started with REST API Mocking](https://mokapi.io/resources/tutorials/get-started-with-rest-api)
|
|
111
|
+
Deploy a REST **mock API** using OpenAPI specification
|
|
111
112
|
|
|
112
113
|
- [Mock Kafka with AsyncAPI](https://mokapi.io/resources/tutorials/get-started-with-kafka)
|
|
113
114
|
Simulate Kafka topics and validate message producers
|
|
@@ -148,6 +149,7 @@ MIT License - see [LICENSE](https://github.com/marle3003/mokapi/blob/main/LICENS
|
|
|
148
149
|
- Website: [mokapi.io](https://mokapi.io)
|
|
149
150
|
- GitHub: [github.com/marle3003/mokapi](https://github.com/marle3003/mokapi)
|
|
150
151
|
- NPM Package: [npmjs.com/package/go-mokapi](https://npmjs.com/package/go-mokapi)
|
|
152
|
+
- Docker Image: [https://hub.docker.com/r/mokapi/mokapi](https://hub.docker.com/r/mokapi/mokapi)
|
|
151
153
|
- Documentation: [mokapi.io/docs](https://mokapi.io/docs)
|
|
152
154
|
- Tutorials: [mokapi.io/resources/tutorials](https://mokapi.io/resources/tutorials)
|
|
153
155
|
- Blog: [mokapi.io/resources/blogs](https://mokapi.io/resources/blogs)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "go-mokapi",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.44.1",
|
|
4
4
|
"description": "Easy and flexible API mocking",
|
|
5
5
|
"homepage": "https://mokapi.io",
|
|
6
6
|
"repository": {
|
|
@@ -20,13 +20,16 @@
|
|
|
20
20
|
"@go-mokapi/win32-x64": "*"
|
|
21
21
|
},
|
|
22
22
|
"keywords": [
|
|
23
|
-
"mock",
|
|
24
|
-
"api",
|
|
25
|
-
"
|
|
26
|
-
"kafka",
|
|
27
|
-
"ldap",
|
|
28
|
-
"smtp",
|
|
29
|
-
"imap"
|
|
23
|
+
"mock api",
|
|
24
|
+
"api mock",
|
|
25
|
+
"api mocking",
|
|
26
|
+
"kafka mock",
|
|
27
|
+
"ldap mock",
|
|
28
|
+
"smtp mock",
|
|
29
|
+
"imap mock",
|
|
30
|
+
"http mock",
|
|
31
|
+
"openapi",
|
|
32
|
+
"asyncapi"
|
|
30
33
|
],
|
|
31
34
|
"author": "Marcel Lehmann",
|
|
32
35
|
"license": "MIT",
|