<commit_before>![Logo](admin/simple-api.png)
ioBroker simple-api adapter
=================
![Number of Installations](http://iobroker.live/badges/simple-api-installed.svg) ![Number of Installations](http://iobroker.live/badges/simple-api-stable.svg) [![NPM version](http://img.shields.io/npm/v/iobroker.simple-api.svg)](https://www.npmjs.com/package/iobroker.simple-api)
[![Downloads](https://img.shields.io/npm/dm/iobroker.simple-api.svg)](https://www.npmjs.com/package/iobroker.simple-api)
[![Tests](https://travis-ci.org/ioBroker/ioBroker.simple-api.svg?branch=master)](https://travis-ci.org/ioBroker/ioBroker.simple-api)

[![NPM](https://nodei.co/npm/iobroker.simple-api.png?downloads=true)](https://nodei.co/npm/iobroker.simple-api/)

This is RESTFul interface to read the objects and states from ioBroker and to write/control the states over HTTP Get/Post requests.

## Usage
Call in browser ```http://ipaddress:8087/help``` to get the help about API. The result is:

```
{
  "getPlainValue": "http://ipaddress:8087/getPlainValue/stateID",
  "get": "http://ipaddress:8087/get/stateID/?prettyPrint",
  "getBulk": "http://ipaddress:8087/getBulk/stateID1,stateID2/?prettyPrint",
  "set": "http://ipaddress:8087/set/stateID?value=1&prettyPrint",
  "toggle": "http://ipaddress:8087/toggle/stateID&prettyPrint",<commit_msg>(bluefox) formatting README.md<commit_after>![Logo](admin/simple-api.png)
# Simple-api

![Number of Installations](http://iobroker.live/badges/simple-api-installed.svg) ![Number of Installations](http://iobroker.live/badges/simple-api-stable.svg) [![NPM version](http://img.shields.io/npm/v/iobroker.simple-api.svg)](https://www.npmjs.com/package/iobroker.simple-api)
[![Downloads](https://img.shields.io/npm/dm/iobroker.simple-api.svg)](https://www.npmjs.com/package/iobroker.simple-api)
[![Tests](https://travis-ci.org/ioBroker/ioBroker.simple-api.svg?branch=master)](https://travis-ci.org/ioBroker/ioBroker.simple-api)

[![NPM](https://nodei.co/npm/iobroker.simple-api.png?downloads=true)](https://nodei.co/npm/iobroker.simple-api/)

This is RESTFul interface to read the objects and states from ioBroker and to write/control the states over HTTP Get/Post requests.

## Usage
Call in browser ```http://ipaddress:8087/help``` to get the help about API. The result is:

```
{
  "getPlainValue": "http://ipaddress:8087/getPlainValue/stateID",
  "get": "http://ipaddress:8087/get/stateID/?prettyPrint",
  "getBulk": "http://ipaddress:8087/getBulk/stateID1,stateID2/?prettyPrint",
  "set": "http://ipaddress:8087/set/stateID?value=1&prettyPrint",
  "toggle": "http://ipaddress:8087/toggle/stateID&prettyPrint",
{'fraction_non_alphanumeric': 0.19650323071075637, 'fraction_numerical': 0.020524515393386546, 'mean_word_length': 5.697201017811705, 'pattern_counts': {'":': 10, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 14, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2384566', 'n_tokens_mistral': 1036, 'n_tokens_neox': 963, 'n_words': 119}