MBS’s documentation!¶
Welcome to the MBS’s documentation.
Please provide feedback to @vilsafur.
Installation¶
clone repository —
git clone https://github.com/Vilsafur/mbs.git
Build project —
npm run build
Run service —
npm run start
Register service¶
Request¶
- Url
- “/services”
- Verb
- “post”
- Body
{ "serviceName": string; "version": string; "ip": string; "port": number; "url": string; "messageType": string[]; }
Parameter | Mandatory | Data Type | Description |
---|---|---|---|
serviceName | Y | string | Service Name, must comply with RFC 1123, only allowsthe ASCII letters ‘a’ through ‘z’ , the digits ‘0’ through ‘9’, and the minus sign (‘-‘). |
version | Y | string | Service Version |
ip | Y | string | The ip of the service instance node, it could also be a hostname |
port | Y | number | The port of the service instance node |
url | Y | string | The url to call to send message |
messageType | Y | string[] | List of messageType subscribe |
Response¶
- Success Code
- 201
- Valid Request
- Error Code
- 422
- Invalid Parameters
- 500
- Internal Server Error
- Body
{ "serviceName": string, "version": string, "uuid": string }
Parameter | Description |
serviceName | The service name of the microservice bus |
version | The version of the microservice bus |
uuid | The Universal Unique Identifier used by the service |
Unregister service¶
Request¶
- Url
- “/services/:uuid”
- Verb
- “delete”
Response¶
- Success Code
- 201
- Valid Request
- Error Code
- 422
- Invalid Parameters
- 500
- Internal Server Error
Query service¶
Support¶
The easiest way to get help with the project is to send me a mail directly. The other good way is to open an issue on Github.