Closed chrisrouse closed 5 years ago
Layer Presets only need to accept an ID value.
/layerPreset
GET
Gets all the layer presets available
Request: curl -X GET http://localhost:8080/api/0/layerPreset -k JSON Response: { "data" : [ { "id": "example", "name": "exampleBlendModeName" } ] }
/layerPreset/layer/{id}
GET Gets the layer preset for a specific layer
Parameters
Notes
Number
only parameters are always interpreted as an index and never name.
Request: curl -X GET http://localhost:8080/api/0/layerPreset/layer/0 -k JSON Response: { "data" : [ { "id": "example", "name": "exampleBlendModeName" } ] }
POST
Sets the layer preset for a specific layer
Request Body JSON
Request: curl -X POST http://localhost:8080/api/0/layerPreset/layer/0 -k JSON Body: { "value": "exampleLayerPresetName", }
https://gist.github.com/chrisrouse/a14205fa0a1645536b1fa631ca0a415f
Layer Presets only need to accept an ID value.
Available Layer Presets
/layerPreset
GET
Gets all the layer presets available
Layer Preset
/layerPreset/layer/{id}
GET Gets the layer preset for a specific layer
Parameters
Notes
Number
only parameters are always interpreted as an index and never name.
POST
Sets the layer preset for a specific layer
Parameters
Request Body JSON
Notes