3
3
The class Microservice is the core of all microservices built with PyMS.
4
4
5
5
6
- You can create a simple microservices like :
6
+ You can create a simple microservice such as :
7
7
8
8
``` python
9
9
from flask import jsonify
@@ -29,9 +29,9 @@ And a config file like this config.yml
29
29
my-minimal-microservice :
30
30
APP_NAME : " Python Microservice"
31
31
` ` `
32
- See [Configuration](configuration.md) section to know how create a configuration file.
32
+ Check [Configuration](configuration.md) section to know how to create a configuration file.
33
33
34
- Each keyworkd in our configuration block, could be accessed in our Microservice object througth the attribute ` config`.
34
+ Each keyword in our configuration block, can be accessed in our Microservice object through the attribute ` config`.
35
35
36
36
` ` ` yaml
37
37
# Config.yml
@@ -61,10 +61,10 @@ print(ms.config.multiplevars.config2)
61
61
62
62
63
63
# Looking for Configuration file
64
- By default, Microservice class search a config.yml in the same path. You can set a diferent route or set a json file.
64
+ By default, Microservice class search a config.yml in the same path. You can set a different route or set a json file.
65
65
To change this path, define a environment variable `CONFIGMAP_FILE`.
66
66
67
- This way of search the configuration is useful when you work with Docker and Kubernetes. For example, you can integrate
67
+ This way of looking for the configuration is useful when you work with Docker and Kubernetes. For example, you can integrate
68
68
a configmap of Kubernetes, with this microservice and a deployment with :
69
69
70
70
` ` ` yaml
92
92
name: my-microservice-configmap
93
93
` ` `
94
94
95
- See more examples in [this Github page](https://github.com/python-microservices/pyms/tree/master/examples)
95
+ Check more examples in [this Github page](https://github.com/python-microservices/pyms/tree/master/examples)
0 commit comments