@lap v0.3
# Machine-readable API spec. Each @endpoint block is one API call.
@api JSON2Video API
@base https://api.json2video.com/v2
@version 2.0.0
@endpoints 2
@toc movies(2)

@endpoint GET /movies
@returns(200)

@endpoint POST /movies
@required {scenes: [map{id: str, condition: str, variables: map, comment: str, background-color: str, duration: num(float), elements: [any], transition: map, cache: bool}]}
@optional {id: str=@randomString, comment: str, draft: bool(true/false)=true, variables: map=[object Object], resolution: str(sd/hd/full-hd/squared/instagram-story/instagram-feed/twitter-landscape/twitter-portrait/custom)=custom, width: int=640, height: int=360, quality: str(low/medium/high)=high, fps: int=25, client-data: map=[object Object], settings: map, elements: [any], cache: bool=true, exports: [any]}
@returns(200)

@end
