1
1
# Configuration
2
2
3
- Each microservice needs a config file in yaml or json format to work with it. This configuration contain
4
- the Flask configuration of your project and the [ Services] ( services.md ) .
3
+ Each microservice needs a config file in yaml or json format to work with it. This configuration contains
4
+ the Flask settings of your project and the [ Services] ( services.md ) .
5
5
6
6
a simple configuration file could be a config.yaml:
7
7
@@ -43,7 +43,7 @@ This file could contains this keywords:
43
43
44
44
## pyms block
45
45
46
- ``` pyms ``` : all subset inside this keywords is the configuration of this library. Each keyword will be a service of our
46
+ ``` pyms ``` : all subsets inside this keyword are the settings of this library. Each keyword will be a service of our
47
47
[ Microservice class] ( ms_class.md ) . For example, we declare our microservice class as:
48
48
49
49
``` python
@@ -57,14 +57,14 @@ pyms:
57
57
requests : true
58
58
` ` `
59
59
60
- our object ` ms` has got a attribute `requests` that is a instance of our service [requests](services.md).
60
+ our object ` ms` has an attribute `requests` that is a instance of our service [requests](services.md).
61
61
62
62
# # Our microservice block
63
63
This part contains all keywords of a [Flask Configuration Handling](http://flask.pocoo.org/docs/1.0/config/) and our
64
- constants of the enviroments (local configuration, staging configuration...). Take care that a Flask configuration needs
65
- the keywords are declared as upper case .
64
+ constants of the enviroments (local configuration, staging configuration...). Keep in mind that a Flask configuration needs
65
+ the keywords to be declared as uppercase .
66
66
67
- The name of this block is defined when you create the object of [Microservice class](ms_class.md). For example,
67
+ The name of this block is defined when you create the object of [Microservice class](ms_class.md) :
68
68
69
69
# ## Example 1
70
70
` ` ` python
0 commit comments