Skip to main content

Rest CLI Build Status PyPI version Documentation

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

  1. 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>
  1. Change directory to service and write some migrations at src/Shared/Migration
$ rest migrate
  1. Synchronize model - repository - service - controller - test cases
  • To create some awesome apis, update your routes at config/api/*.json
$ rest sync
  1. View route list
  • To see which routes are configured and manage apis
$ rest route
  1. Serve your application to test in browser
$ rest serve
  1. Test your application with PHPUnit
$ rest test
  1. Check current version
$ rest version
  1. Update new version of rest-cli ?
$ rest upgrade
  1. 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)

Source distribution for rest-cli 0.0.3
File Size Uploaded
rest-cli-0.0.3.tar.gz 16.0 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for rest-cli 0.0.3
File Interpreter ABI Platform
rest_cli-0.0.3-py2.7.egg Legacy Egg format - - Details
rest_cli-0.0.3-py2-none-any.whl Python 2 none any Details

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

Release history Release notifications | RSS feed

This release

0.0.3 This release

3 release files

0.0.2

3 release files

0.0.1

3 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page