Skip to content

Instantly share code, notes, and snippets.

@nearnshaw
Created July 28, 2015 01:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nearnshaw/b4836f406c188cbd43c2 to your computer and use it in GitHub Desktop.
Save nearnshaw/b4836f406c188cbd43c2 to your computer and use it in GitHub Desktop.
#%RAML 0.8
title: muletallica
version: 1.0.0
baseUri: http://server/lights/{group}
/effects:
displayName: effects
/{group}:
displayName: group
/gamma:
displayName: gamma
put:
description: change color gamma in a group of lights to any color
body:
application/json:
example: |
{
"note": 1
}
/directcolor:
displayName: direct color
put:
description: change color gamma in a group of lights, to predefined colors
body:
application/json:
example: |
{
"note": 32,
"velocity": 100
}
/intensity:
displayName: intensity
put:
description: change brightness in a group of lights
body:
application/json:
example: |
{
"velocity": 1
}
/both:
displayName: both
put:
description: flicker with color and intensity
body:
application/json:
example: |
{
"note": 1,
"velocity": 1
}
/flicker:
displayName: flicker
put:
description: make a group of lights flicker
body:
application/json:
example: |
{
"note": 1
}
/wiii:
displayName: wiii
put:
description: make wiii effect in a group of lights
body:
application/json:
example: |
{
"note": 1,
"velocity": 1
}
/wub:
displayName: wub
put:
description: make wub effect in a group of lights
body:
application/json:
example: |
{
"note": 1,
"velocity": 1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment