Skip to content

eivinde/incremental-jsonsystem

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

incremental-jsonsystem

An example of system config:

{
  "_id": "incremental-jsonsystem_id",
  "type": "system:microservice",
  "connect_timeout": 60,
  "docker": {
    "environment": {
      "URL_PATTERN": "http://external-host:8888/__PATH__?offset=__since__&limit=__limit__",
      "AUTHENTICATION": "oauth2",
      "CONFIG": {
        "oauth2": {
          "client_id": "id",
          "client_secret": "secret",
          "resource": "resource",
          "token_url": "url"
        },
        "..": ".."
      },
      "UPDATED_PROPERTY": "sequenceNumber"
    },
    "image": "sesamcommunity/incremental-jsonsystem",
    "port": 5000
  },
  "read_timeout": 7200,
}

This microservice is used to support incremental Sesam json protocal when the external system dont support it. We will add one property _updated whose value is copied from updated_property.

A pipe send a request to the microservice, such as "http://incremental-urlsystem:5000/relative_path". The request will be forward to a new url defined in URL_PATTERN. The optional variables in URL_PATTERN are:

  • __path__: the relative path of the request
  • __since__: the since parameter gotten from the request
  • __limit__: the limit parameter gotten from the request. If the web service don't support limit, we will sort the response and only return top entities back.

Supported authentication method:

  • if it is empty, we use it as an url service without any authentication method
  • oauth2

About

a microsystem support Sesam Json pull protocol.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 100.0%