@autofleet/node-common 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -19,7 +19,7 @@ Implement:
|
|
|
19
19
|
|
|
20
20
|
The API is just like [axios](https://github.com/axios/axios) api but the creation of new instance **must** have either `serviceName` or `serviceUrl` in options.
|
|
21
21
|
|
|
22
|
-
In case `serviceName` used the constractor will look for an environment varible with the the name
|
|
22
|
+
In case `serviceName` used the constractor will look for an environment varible with the the name `<SERVICE_NAME>_SERVICE_HOST`.
|
|
23
23
|
|
|
24
24
|
For Example:
|
|
25
25
|
```
|
|
@@ -31,7 +31,7 @@ n.get('/posts/1');
|
|
|
31
31
|
```
|
|
32
32
|
.env file:
|
|
33
33
|
```
|
|
34
|
-
|
|
34
|
+
RIDE_SERVICE_HOST=jsonplaceholder.typicode.com
|
|
35
35
|
```
|
|
36
36
|
|
|
37
|
-
To learn more [click here](https://blog.risingstack.com/designing-microservices-architecture-for-failure/).
|
|
37
|
+
To learn more [click here](https://blog.risingstack.com/designing-microservices-architecture-for-failure/).
|