Skip to content

Commit 0d5cea5

Browse files
authored
Merge pull request #342 from Chisanan232/develop/src-code
🎉🎊🍾 [Release] Officially release **0.2.0** version for the young Python tool *PyMock-API*.
2 parents e2313f7 + 57d5f90 commit 0d5cea5

5 files changed

Lines changed: 64 additions & 26 deletions

File tree

Lines changed: 29 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,32 @@
11
### 🎉🎊🍾 New feature
22
<hr>
33

4-
1. Provide command line interface ``mock-api`` for mocking HTTP server.
5-
6-
```shell
7-
usage: mock-api [SUBCOMMAND] [OPTIONS]
8-
9-
A Python tool for mocking APIs by set up an application easily. PyMock-API bases on Python web framework to set up application, i.e., you could select using *flask* to set up application to mock APIs.
10-
11-
options:
12-
-h, --help show this help message and exit
13-
-v, --version The version info of PyMock-API.
14-
15-
Subcommands:
16-
17-
{run,sample,add,check,get,pull}
18-
run Set up APIs with configuration and run a web application to mock them.
19-
sample Quickly display or generate a sample configuration helps to use this tool.
20-
add Something processing about configuration, i.e., generate a sample configuration or validate configuration content.
21-
check Check the validity of *PyMock-API* configuration.
22-
get Do some comprehensive inspection for configuration.
23-
pull Pull the API details from one specific source, e.g., Swagger API documentation.
24-
```
25-
26-
2. Provide [documentation](https://chisanan232.github.io/PyMock-API/) for details of the project.
4+
1. Support parsing version2 (aka Swagger) and version3 OpenAPI document configuration.
5+
2. Support nested data structure about collection data types, i.e., ``list`` or ``dict``, in response.
6+
3. Add new command line argument ``--source-file`` in sub-command line ``pull`` for being more convenience to pull configuration for **_PyMock-API_**.
7+
4. Let sub-command line ``add`` support dividing feature.
8+
9+
10+
### 🛠🐛💣 Bug Fix
11+
<hr>
12+
13+
1. Fix some issues.
14+
1. It cannot parse finely at the empty body of one specific column in response.
15+
2. Fix broken tests.
16+
3. Fix incorrect serializing logic if request parameter or body is empty.
17+
4. Fix incorrect checking logic at configuration validation in sub-command line ``check``.
18+
5. Fix the issue about it cannot work finely with argument ``--base-file-path`` in sub-command line ``pull``.
19+
20+
21+
### 🤖⚙️🔧 Improvement
22+
<hr>
23+
24+
1. Upgrade the dependencies.
25+
2. Upgrade the reusable workflows in CI workflow.
26+
3. Extract the logic about initialing test data for testing as modules.
27+
28+
29+
### 📝📑📗Docs
30+
<hr>
31+
32+
1. Update the content for new feature.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v0.1.0 - Newborn Python tool: **_PyMock-API_** <0001f9f9>🍻
1+
v0.2.0 - Support parsing version 2 and version 3 OpenAPI documentation <0001f9f9>🍻

docs/release_note/version_0xx.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,37 @@
11
# Version 0.X.X
22

3+
## 0.2.0
4+
5+
### 🎉🎊🍾 New feature
6+
7+
1. Support parsing version2 (aka Swagger) and version3 OpenAPI document configuration.
8+
2. Support nested data structure about collection data types, i.e., ``list`` or ``dict``, in response.
9+
3. Add new command line argument ``--source-file`` in sub-command line ``pull`` for being more convenience to pull configuration for **_PyMock-API_**.
10+
4. Let sub-command line ``add`` support dividing feature.
11+
12+
13+
### 🛠🐛💣 Bug Fix
14+
15+
1. Fix some issues.
16+
1. It cannot parse finely at the empty body of one specific column in response.
17+
2. Fix broken tests.
18+
3. Fix incorrect serializing logic if request parameter or body is empty.
19+
4. Fix incorrect checking logic at configuration validation in sub-command line ``check``.
20+
5. Fix the issue about it cannot work finely with argument ``--base-file-path`` in sub-command line ``pull``.
21+
22+
23+
### 🤖⚙️🔧 Improvement
24+
25+
1. Upgrade the dependencies.
26+
2. Upgrade the reusable workflows in CI workflow.
27+
3. Extract the logic about initialing test data for testing as modules.
28+
29+
30+
### 📝📑📗Docs
31+
32+
1. Update the content for new feature.
33+
34+
335
## 0.1.0
436

537
### 🎉🎊🍾 New feature

pymock_api/__pkg_info__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
__title__ = "PyMock-API"
1212
__description__ = "🕸🤖👺 A Python tool to mock API easily and humanly."
1313
__url__ = "https://chisanan232.github.io/PyMock-API/"
14-
__version__ = "0.1.0"
14+
__version__ = "0.2.0"
1515
__author__ = "Liu, Bryant"
1616
__author_email__ = "chi10211201@cycu.org.tw"
1717
__license__ = "MIT"

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
44

55
[tool.poetry]
66
name = "PyMock-API"
7-
version = "0.1.0"
7+
version = "0.2.0"
88
description = "🕸🤖👺 A Python tool to mock API easily and humanly without any coding."
99
authors = ["Liu, Bryant <chi10211201@cycu.org.tw>"]
1010
license = "MIT"

0 commit comments

Comments
 (0)