Skip to content

Latest commit

 

History

History

specification

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Specification

This project define the specification of each microservice.

Each service has is own directory (which is the service name) and three specification files:

{
  "consume": {
    "event-name": {
      "type": "service-name"
    }
  },
  "produce": {
    "event-name": {
      "type": "service-name"
    },
    "event-name": {
      "type": "service-name"
    },
  }
}

Each produce event must be at least consume once by another service.
Each consume event must be produce by the service defined in "type".

Deploying

Once your specification is ready you need to follow these steps:

  • Run the tests.

  • Upload the api.json file to API builder to see if the formating is correct and then use the swagger generator and the postman generator to download the swagger doc and the postman doc to add inside the documentation service.

  • Deploy the microservice using the generator.

  • Follow the information about creating a service.

Tests

Two tests are present to ensure style consistency and good formating: test-apis.js and test-events.js.