1.0.6 • Published 7 years ago

marathon-node-library v1.0.6

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

Marathon Node.js Client Library

Node.js client library lightweight for Marathon's REST API. ES6

Install

Install using npm or yarn

$ npm install marathon-node-library
$ yarn add marathon-node-library

Config

const marathonClient = require('marathon-node-library')(MARATHON_API_URL, {
  // if you have basic authentifiaction in you marathon API
  auth: {
    user: MARATHON_USER,
    pass: MARATHON_PASSWORD,
  },
  // Or Accestoken auth
  headers: {
    'Authorization': 'token=MARATHON_AUTH_TOKEN'
  }
});

API Methods

Apps

  • /v2/apps GET
marathonClient.apps.getList(query)
  • /v2/apps POST "Create App"
marathonClient.app.create(body)

Insipred on marathon-node of @elasticio

#License

MIT.

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago