-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: improve the the pub.dev points
- Loading branch information
1 parent
a991201
commit 766ad25
Showing
3 changed files
with
26 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
## 1.0.2 | ||
|
||
- Improved pub points | ||
|
||
## 1.0.1 | ||
|
||
- Restructure the structure | ||
|
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,19 @@ | ||
# Generate Swagger Endpoints | ||
|
||
If you are using **Flutter** with **Swagger**, you may be annoyed that no library allows you to build models and endpoints flexibly. For example, a popular library called [swagger_dart_code_generator](https://pub.dev/packages/swagger_dart_code_generator) includes most functionality, but it is not flexible at all. It strictly binds the [Chopper](https://pub.dev/packages/chopper), if you don't want to use another client library like [Dio](https://pub.dev/packages/dio), you can only generate data models without any endpoint. That is a library I built for my freelance projects and company projects to quickly solve these issues of [swagger_dart_code_generator](https://pub.dev/packages/swagger_dart_code_generator). I saw my friend also face this issue on his company's new project. ~~So he should treat me a Big Mac now~~ | ||
|
||
This project is still very simple and I am busy on another thing right now, please leave your feedback on the issues or the requirements on the issues. | ||
|
||
## Install | ||
|
||
```Bash | ||
dart pub global activate generate_swagger_endpoint | ||
``` | ||
|
||
### How to use | ||
|
||
```Bash | ||
dart pub global run generate_swagger_endpoint --input ./lib/api/swagger -output ./lib/api/endpoints/ | ||
|
||
dart pub global run generate_swagger_endpoint --input ./lib/api/swagger -output ./lib/api/endpoints/ | ||
``` |
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