1.0.6 • Published 8 years ago

marathon-node-library v1.0.6

Weekly downloads
1
License
MIT
Repository
github
Last release
8 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

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago

0.0.5

8 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago