1.0.5 • Published 3 years ago

opsi-api v1.0.5

Weekly downloads
3
License
MIT
Repository
github
Last release
3 years ago

OPSI Api Wrapper

Codacy Badge Build Status

Known Vulnerabilities

dependencies

Documentation

This API wrapper provide more readable and documented API Actions against a OPSI Server.

Usage

import {OPSIApi} from './src/api'

const api = new OPSIApi('https://localhost:4447', 'username', 'password');
(async function(){
   const { success, data, message } = await api.createHostGroup(
                       'group01',
                       '',
                       'Group description',
                       '')
       console.log(success) // if all data are ok then this should return true else false
       console.log(message) // message is empty if success is true. if success is false there is a error message
       console.log(data) // data returns also true or an error object on fail
})();

Development

Start Docker Dev Environment

npm run docker:dev-server

Build documentation update

npm run documentation:build

Test with httpie

echo '{ "method": "group_createHostGroup", "params": ["test_group"], "id": 1 }' | http --verify=no -a opsi:opsi https://localhost:4447/rpc

http --verify=no -a opsi:opsi https://localhost:4447/rpc < test/testdata/client.json

Publish new Version

npm version patch -m "Upgrade to %s for reasons"

1.0.2

3 years ago

0.0.40

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

0.0.37

3 years ago

0.0.38

3 years ago

0.0.36

3 years ago

0.0.25

3 years ago

0.0.26

3 years ago

0.0.21

3 years ago

0.0.23

3 years ago

0.0.19

3 years ago

0.0.16

5 years ago

0.0.15

5 years ago

0.0.14

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago