Rest CLI

If you love ?
- Beautiful restful web service with standard architecture
- The fastest way to get things done with less human coding
- Easy way to synchronize from components to documentation
- Well tested structure with explicit request & response
- Powered by an industrial framework with outstanding performance
Then this powerful tool is the right choice for you.
Prerequisite
- Docker
- Python 2.7 with pip
- PHP 7.2 with composer
Installation
$ pip install rest-cli
Road map
- Create web service base on a lightweight skeleton
- Database schema migration
- Reverse schema to model - repository - service and dependency injectors
- Support built-in query annotations
- Compile api routes and generate controller with integration tests
- Serve and test application
- Generate swagger documentation base on api routes (in-progress)
- Support response header & type casting for complex Request
- Support Service - Repository symbolic link to comply top down architecture
- Export service interfaces for inter-communication
- Support RPC exception via response verification
Usages
- Create web service application
- --quite : Quite mode without asking anything about configuration
- --force : Force creating application without complaining about existing project
- --mysql : Start a mysql container with default information
$ rest create <awesome-service>
- Change directory to service and write some migrations at
src/Shared/Migration
$ rest migrate
- Synchronize model - repository - service - controller - test cases
- To create some awesome apis, update your routes at
config/api/*.json
$ rest sync
- View route list
- To see which routes are configured and manage apis
$ rest route
- Serve your application to test in browser
$ rest serve
- Test your application with PHPUnit
$ rest test
- Check current version
$ rest version
- Update new version of rest-cli ?
$ rest upgrade
- Need more help ?
$ rest --help
API Documentation
After rest sync you can serve your service with rest serve
Swagger Documentation should be ready at http://localhost:8000/docs
License
Rest CLI and related projects are licensed under the MIT
Thanks for the sponsor from GO1 Company
~ Happy Coding ~
Metadata
Release files for rest-cli 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| rest-cli-0.0.3.tar.gz | 16.0 kB | Without provenance | Details for rest-cli-0.0.3.tar.gz |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rest_cli-0.0.3-py2.7.egg | Legacy Egg format | - | - | Details for rest_cli-0.0.3-py2.7.egg |
| rest_cli-0.0.3-py2-none-any.whl | Python 2 | none | any | Details for rest_cli-0.0.3-py2-none-any.whl |
Total release size: 66.5 kB
Release files / rest-cli-0.0.3.tar.gz
| Download URL | rest-cli-0.0.3.tar.gz |
|---|---|
| Size | 16.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9ae38b07b06142e5a0e64fc052d0dee178628ea44cc4b3b8b33692b005e7a5bd
|
|
BLAKE2b-256 checksum How to use checksums |
a76814b4ce738fe9c9d425ae9e56d797210805ef0cd00ec27706106e0fbd7f77
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / rest_cli-0.0.3-py2.7.egg
| Download URL | rest_cli-0.0.3-py2.7.egg |
|---|---|
| Size | 33.3 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
1972e38d55e96de28c0aa288749ae0eeaf0a7055b833da20bba4fe8e70519a24
|
|
BLAKE2b-256 checksum How to use checksums |
5296d599ce09c5b81fb7e02c438f48586c4e84929e5a2b53a5b340b323269519
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / rest_cli-0.0.3-py2-none-any.whl
| Download URL | rest_cli-0.0.3-py2-none-any.whl |
|---|---|
| Size | 17.1 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
dc9a125a3bd9bae0b07d8a71a3d92565a979427efbcc8923624e0e15b6116202
|
|
BLAKE2b-256 checksum How to use checksums |
439b3de21f40ef372bbb6b35b68de22909f88a82e260091c16d032d4f9f256ab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for rest-cli 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.