Skip to content

Commit

Permalink
And some more POST APIs :)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonginter committed May 16, 2018
1 parent 17c4cad commit 73f5fe0
Showing 1 changed file with 87 additions and 0 deletions.
87 changes: 87 additions & 0 deletions versions/0.0.2/lights.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,83 +171,170 @@ Returns an array of [Light PPFD](lights.md#light-ppfd)

## Fixtures
### Talking to one fixture
**Retrieving ID information**
```
GET http://[domain:port]/agroapi/[version]/lights/fixtures/[fixtureid]/info
```
Returns [Info](general.md#info-data)

**Sending ID information**
```
POST http://[domain:port]/agroapi/[version]/lights/fixtures/[fixtureid]/info
```
Sends [Info](general.md#info-data)

**Retrieving version information**
```
GET http://[domain:port]/agroapi/[version]/lights/fixtures/[fixtureid]/version
```
Returns [Version](general.md#version-data)

**Retrieving location information**
```
GET http://[domain:port]/agroapi/[version]/lights/fixtures/[fixtureid]/location
```
Returns [Location](general.md#location-data)

**Sending location information**
```
POST http://[domain:port]/agroapi/[version]/lights/fixtures/[fixtureid]/location
```
Sends [Location](general.md#location-data)

**Retrieving configuration information**
```
GET http://[domain:port]/agroapi/[version]/lights/fixtures/[fixtureid]/config
```
Returns [Fixture Configuration](lights.md#fixture-configuration)

**Sending configuration information**
```
POST http://[domain:port]/agroapi/[version]/lights/fixtures/[fixtureid]/config
```
Sends [Fixture Configuration](lights.md#fixture-configuration)

**Retrieving power state information**
```
GET http://[domain:port]/agroapi/[version]/lights/fixtures/[fixtureid]/power
```
Returns [Fixture Power](lights.md#fixture-power)

**Sending power state information**
```
POST http://[domain:port]/agroapi/[version]/lights/fixtures/[fixtureid]/power
```
Sends [Fixture Power](lights.md#fixture-power)

### Talking to all fixtures
**Retrieving ID information**
```
GET http://[domain:port]/agroapi/[version]/lights/fixtures/info
```
Returns an array of [Info](general.md#info-data)

**Sending ID information**
```
POST http://[domain:port]/agroapi/[version]/lights/fixtures/info
```
Sends an array of [Info](general.md#info-data)

**Retrieving version information**
```
GET http://[domain:port]/agroapi/[version]/lights/fixtures/version
```
Returns an array of [Version](general.md#version-data)

**Retrieving location information**
```
GET http://[domain:port]/agroapi/[version]/lights/fixtures/location
```
Returns an array of [Location](general.md#location-data)

**Sending location information**
```
POST http://[domain:port]/agroapi/[version]/lights/fixtures/location
```
Sends an array of [Location](general.md#location-data)

**Retrieving configuration information**
```
GET http://[domain:port]/agroapi/[version]/lights/fixtures/config
```
Returns an array of [Fixture Configuration](lights.md#fixture-configuration)

**Sending configuration information**
```
POST http://[domain:port]/agroapi/[version]/lights/fixtures/config
```
Sends an array of [Fixture Configuration](lights.md#fixture-configuration)

**Retrieving power state information**
```
GET http://[domain:port]/agroapi/[version]/lights/fixtures/power
```
Returns an array of [Fixture Power](lights.md#fixture-power)

**Sending power state information**
```
POST http://[domain:port]/agroapi/[version]/lights/fixtures/power
```
Sends an array of [Fixture Power](lights.md#fixture-power)

### Talking to all fixtures in a zone
**Retrieving ID information**
```
GET http://[domain:port]/agroapi/[version]/zones/[zoneid]/lights/fixtures/info
```
Returns an array of [Info](general.md#info-data)

**Sending ID information**
```
POST http://[domain:port]/agroapi/[version]/zones/[zoneid]/lights/fixtures/info
```
Sends an array of [Info](general.md#info-data)

**Retrieving version information**
```
GET http://[domain:port]/agroapi/[version]/zones/[zoneid]/lights/fixture/[fixtureid]/version
```
Returns an array of [Version](general.md#version-data)

**Retrieving location information**
```
GET http://[domain:port]/agroapi/[version]/zones/[zoneid]/lights/fixtures/location
```
Returns an array of [Location](general.md#location-data)

**Sending location information**
```
POST http://[domain:port]/agroapi/[version]/zones/[zoneid]/lights/fixtures/location
```
Sends an array of [Location](general.md#location-data)

**Retrieving configuration information**
```
GET http://[domain:port]/agroapi/[version]/zones/[zoneid]/lights/fixtures/config
```
Returns an array of [Fixture Configuration](lights.md#fixture-configuration)

**Sending configuration information**
```
POST http://[domain:port]/agroapi/[version]/zones/[zoneid]/lights/fixtures/config
```
Sends an array of [Fixture Configuration](lights.md#fixture-configuration)

**Retrieving power state information**
```
GET http://[domain:port]/agroapi/[version]/zones/[zoneid]/lights/fixtures/power
```
Returns an array of [Fixture Power](lghts.md#fixture-power)

**Sending power state information**
```
POST http://[domain:port]/agroapi/[version]/zones/[zoneid]/lights/fixtures/power
```
Sends an array of [Fixture Power](lghts.md#fixture-power)

### Fixture Configuration
| Name | Description | Unit |
| -------- | ------------------------------- | ----- |
Expand Down

0 comments on commit 73f5fe0

Please sign in to comment.