Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

pymacaron-helloworld

A super simple REST api server illustrating how to use pymacaron

See pymacaron for more information.

Start the server and run tests

Once you have checked out 'pymacaron-helloworld', start by running the server and executing its api tests to make sure all is in order.

In one terminal, do:

python server.py --port 8080

In a second terminal, do:

pymtest

All pymacaron microservices implement the default routes 'v1/ping', 'v1/version' and 'v1/auth/version', defined here.

Asynchronous task

The endpoint '/async' calls a task asynchronously via celery. To see it in action, do in one terminal:

python server.py --port 8080

In an other terminal:

curl http://127.0.0.1:8080/async

Authentication

The endpoint '/async' calls a task asynchronously via celery. To see it in action, do in one terminal:

python server.py --port 8080

In an other terminal:

curl http://127.0.0.1:8080/async

About

A simple microservice based on pymacaron

Resources

License

Releases

No releases published

Packages

No packages published

Languages