Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hkjang/jeus
https://github.com/hkjang/jeus
Last synced: 5 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/hkjang/jeus
- Owner: hkjang
- License: mit
- Created: 2021-03-18T01:04:27.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-03-18T06:30:02.000Z (almost 4 years ago)
- Last Synced: 2024-12-28T19:36:20.353Z (about 1 month ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# jeus API for javascript
**Javascript** jeus API package, Support **Node.js**
## Installation
```bash
npm install --save jeus
```## Getting Started
### with Node.js
```javascript
const jeus = require('jeus')```
## Authentication
```
basic auth
```## jeus API
* basic auth: jeusadmin id, password
### jeus.admin.command(url: string, auth: object = {}, params: object = {})
execute jeus command
```javascript
var url = 'http://localhost:9736/jsonCommand/command.json';
var auth = {
username : USERNAME,
password : PASSWORD
}
var params = {
"jeusadmin": {
"command": "server-info",
"options":[
"-server server1",
"-state"
],
"argument": null
}
};jeus.admin.command(url, auth, params);
```
### jeus.admin.api(url: string, auth: object = {}, params: object = {})```javascript
var url = 'http://localhost:9736/jsonCommand/command.json';
var auth = {
username : USERNAME,
password : PASSWORD
}
var params = {
"command": "server-info",
"options":[
"-server server1",
"-state"
],
"argument": null
}jeus.admin.api(url, auth, params);
```
## Details
https://technet.tmaxsoft.com/upload/download/online/jeus/pver-20170202-000001/reference-book/ch04.html#jeusadmin-json-support## License
[MIT](https://github.com/hkjang/jeus/blob/master/LICENSE)
Copyright 2018-2020. [hkjang](https://github.com/hkjang). All rights reserved.