httpYac REST API
httpYac Restful API
Representational State Transfer (REST) model for a programming framework
server/tests
bookTest01_editor.http
@host=http://localhost:9090 ### run pegasus server if not running, and return books GET /app ### GET /bookTest01 ### GET /bookTest01/page1 ### selectLayer GET /bookTest01/page1/imageOne ### GET /bookTest01/page1/imageOne/?class=linear ### modify layer props POST /bookTest01/page1/imageOne/ Content-Type: application/yaml { alpha=0.5 } ### save layer props with the current value PUT /bookTest01/page1/imageOne/ Content-Type: application/yaml
PUT
you can create a lua file and index.lua will be updated too
bookTest01_editor_put.http
PUT /bookTest01 PUT /bookTest01/page1 ### update index.lua too PUT /bookTest01/page1/imageOne PUT /bookTest01/page1/imageOne/?class=linear ### events GET /bookTest01/commands/page1 PUT /bookTest01/commands/page1/eventOne // create page2 and copy *.lua from bookTest/page2 by the copy script PUT /bookTest01/page2?copyFrom=bookTest/page2