Closed niaeashes closed 2 years ago
refs #51
@export(<variable-name>, <relative-path>)
@import(<variable-name>, <relative-path>)
@import-random(<variable-name>, <relative-path>[, <extension>])
.jpg
Make BinaryVariable class for manage binary in context. @export and @import supports binary.
@export
@import
@import(photo, ./photos/sample.jpg) POST /photos { request = $photo }
GET /photos/sample.jpg { receiver { @export($response, ./photos/sample.jpg) } }
refs #51
@export(<variable-name>, <relative-path>)
: Export variables to file. When the variable is object, convert as JSON.@import(<variable-name>, <relative-path>)
: Import JSON/Binary file as a variable.@import-random(<variable-name>, <relative-path>[, <extension>])
: Import random file as JSON/Binary. extension is optional filter like.jpg
.Make BinaryVariable class for manage binary in context.
@export
and@import
supports binary.Request
Response