{ "openapi": "3.0.1", "info": { "title": "API | v1", "version": "1.0.0" }, "paths": { "/Camera/Delay": { "get": { "tags": [ "Camera" ], "summary": "Returns the configured \"Camera Delay\".", "description": "Returns the configured \"Camera Delay\".", "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "type": "integer", "format": "int32" } } } } } }, "patch": { "tags": [ "Camera" ], "summary": "Sets the \"Camera Delay\".", "description": "Sets the \"Camera Delay\".", "requestBody": { "content": { "application/json": { "schema": { "maximum": 2147483647, "minimum": 0, "type": "integer", "format": "int32" } }, "text/json": { "schema": { "maximum": 2147483647, "minimum": 0, "type": "integer", "format": "int32" } }, "application/*+json": { "schema": { "maximum": 2147483647, "minimum": 0, "type": "integer", "format": "int32" } } }, "required": true }, "responses": { "200": { "description": "OK" } } } }, "/Camera/TakePicture": { "post": { "tags": [ "Camera" ], "summary": "Takes a photo.", "description": "Takes a photo.", "responses": { "200": { "description": "OK" } } } }, "/Camera/LatestPhoto": { "get": { "tags": [ "Camera" ], "summary": "Gets the latest captured Image.", "description": "Gets the latest captured Image.", "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/FileContentHttpResult" } }, "application/json": { "schema": { "$ref": "#/components/schemas/FileContentHttpResult" } }, "text/json": { "schema": { "$ref": "#/components/schemas/FileContentHttpResult" } } } } } } }, "/Camera/Settings": { "post": { "tags": [ "Camera" ], "summary": "Change the settings of the camera.", "description": "Change the settings of the camera.", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CameraSettings" } }, "text/json": { "schema": { "$ref": "#/components/schemas/CameraSettings" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/CameraSettings" } } }, "required": true }, "responses": { "200": { "description": "OK" } } } }, "/Flash/Delay": { "get": { "tags": [ "Flash" ], "summary": "Returns the configured \"Flash Delay\".", "description": "Returns the configured \"Flash Delay\".", "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "type": "integer", "format": "int32" } } } } } }, "patch": { "tags": [ "Flash" ], "summary": "Sets the \"Flash Delay\".", "description": "Sets the \"Flash Delay\".", "requestBody": { "content": { "application/json": { "schema": { "maximum": 2147483647, "minimum": 0, "type": "integer", "format": "int32" } }, "text/json": { "schema": { "maximum": 2147483647, "minimum": 0, "type": "integer", "format": "int32" } }, "application/*+json": { "schema": { "maximum": 2147483647, "minimum": 0, "type": "integer", "format": "int32" } } }, "required": true }, "responses": { "200": { "description": "OK" } } } }, "/Flash/PinNumber": { "get": { "tags": [ "Flash" ], "summary": "Returns the GPIO Pin-Number of the Flash.", "description": "Returns the GPIO Pin-Number of the Flash.", "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "type": "integer", "format": "int32" } } } } } }, "patch": { "tags": [ "Flash" ], "summary": "Sets the GPIO Pin-Number of the Flash.", "description": "Sets the GPIO Pin-Number of the Flash.", "requestBody": { "content": { "application/json": { "schema": { "maximum": 27, "minimum": 0, "type": "integer", "format": "int32" } }, "text/json": { "schema": { "maximum": 27, "minimum": 0, "type": "integer", "format": "int32" } }, "application/*+json": { "schema": { "maximum": 27, "minimum": 0, "type": "integer", "format": "int32" } } }, "required": true }, "responses": { "200": { "description": "OK" } } } }, "/Flash/Flash": { "post": { "tags": [ "Flash" ], "summary": "Triggers the flash.", "description": "Triggers the flash.", "responses": { "200": { "description": "OK" } } } }, "/Trigger/PinNumber": { "get": { "tags": [ "Trigger" ], "summary": "Returns the GPIO Pin-Number of the Trigger.", "description": "Returns the GPIO Pin-Number of the Trigger.", "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "type": "integer", "format": "int32" } } } } } }, "patch": { "tags": [ "Trigger" ], "summary": "Sets the GPIO Pin-Number of the Trigger.", "description": "Sets the GPIO Pin-Number of the Trigger.", "requestBody": { "content": { "application/json": { "schema": { "maximum": 27, "minimum": 0, "type": "integer", "format": "int32" } }, "text/json": { "schema": { "maximum": 27, "minimum": 0, "type": "integer", "format": "int32" } }, "application/*+json": { "schema": { "maximum": 27, "minimum": 0, "type": "integer", "format": "int32" } } }, "required": true }, "responses": { "200": { "description": "OK" } } } }, "/Trigger/Flank": { "get": { "tags": [ "Trigger" ], "summary": "Get the Flank on which the trigger executes.", "description": "Get the Flank on which the trigger executes.", "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/PinEventTypes" } }, "application/json": { "schema": { "$ref": "#/components/schemas/PinEventTypes" } }, "text/json": { "schema": { "$ref": "#/components/schemas/PinEventTypes" } } } } } }, "patch": { "tags": [ "Trigger" ], "summary": "Sets the Flank on which the trigger should execute.", "description": "Sets the Flank on which the trigger should execute.", "requestBody": { "content": { "application/json": { "schema": { "type": "string" } }, "text/json": { "schema": { "type": "string" } }, "application/*+json": { "schema": { "type": "string" } } }, "required": true }, "responses": { "200": { "description": "OK" } } } } }, "components": { "schemas": { "AutoFocusMode": { "enum": [ "Default", "Auto", "Manual", "Continous" ] }, "AutoFocusRange": { "enum": [ "Normal", "Macro", "Full" ] }, "AutofocusWindow": { "required": [ "x", "y", "w", "h" ], "type": "object", "properties": { "x": { "type": "number", "format": "float" }, "y": { "type": "number", "format": "float" }, "w": { "type": "number", "format": "float" }, "h": { "type": "number", "format": "float" } }, "nullable": true }, "AwbMode": { "enum": [ "Auto", "Incandescent", "Tungsten", "Fluorescent", "Indoor", "Daylight", "Cloudy" ] }, "CameraSettings": { "type": "object", "properties": { "mode": { "type": "string", "nullable": true }, "width": { "maximum": 2147483647, "minimum": 1, "type": "integer", "format": "int32", "nullable": true }, "height": { "maximum": 2147483647, "minimum": 1, "type": "integer", "format": "int32", "nullable": true }, "hflip": { "type": "boolean", "nullable": true }, "vflip": { "type": "boolean", "nullable": true }, "rotate180": { "type": "boolean", "nullable": true }, "shutterSpeed": { "maximum": 2147483647, "minimum": 0, "type": "integer", "format": "int32", "nullable": true }, "gain": { "minimum": 0, "type": "number", "format": "float", "nullable": true }, "metering": { "$ref": "#/components/schemas/MeteringMode" }, "exposure": { "$ref": "#/components/schemas/ExposureMode" }, "ev": { "maximum": 10, "minimum": -10, "type": "number", "format": "float", "nullable": true }, "awb": { "$ref": "#/components/schemas/AwbMode" }, "brightness": { "maximum": 1, "minimum": -1, "type": "number", "format": "float", "nullable": true }, "contrast": { "minimum": 0, "type": "number", "format": "float", "nullable": true }, "saturation": { "minimum": 0, "type": "number", "format": "float", "nullable": true }, "sharpness": { "minimum": 0, "type": "number", "format": "float", "nullable": true }, "denoise": { "$ref": "#/components/schemas/DenoiseMode" }, "autofocusMode": { "$ref": "#/components/schemas/AutoFocusMode" }, "autofocusRange": { "$ref": "#/components/schemas/AutoFocusRange" }, "autofocusWindow": { "$ref": "#/components/schemas/AutofocusWindow" }, "quality": { "maximum": 100, "minimum": 0, "type": "integer", "format": "int32", "nullable": true }, "encoding": { "$ref": "#/components/schemas/Encoding" }, "raw": { "type": "boolean", "nullable": true } } }, "DenoiseMode": { "enum": [ "Auto", "Off", "CdnOff", "CdnFast", "CdnHq" ] }, "Encoding": { "enum": [ "Jpeg", "Png", "Rgb", "Bmp", "Yuv420" ] }, "EntityTagHeaderValue": { "type": "object", "properties": { "tag": { "$ref": "#/components/schemas/StringSegment" }, "isWeak": { "type": "boolean" } }, "nullable": true }, "ExposureMode": { "enum": [ "Normal", "Sport", "Long" ] }, "FileContentHttpResult": { "type": "object", "properties": { "contentType": { "type": "string" }, "fileDownloadName": { "type": "string", "nullable": true }, "lastModified": { "type": "string", "format": "date-time", "nullable": true }, "entityTag": { "$ref": "#/components/schemas/EntityTagHeaderValue" }, "enableRangeProcessing": { "type": "boolean" }, "fileLength": { "type": "integer", "format": "int64", "nullable": true }, "fileContents": { "$ref": "#/components/schemas/ReadOnlyMemoryOfbyte" } } }, "MeteringMode": { "enum": [ "Center", "Spot", "Average" ] }, "PinEventTypes": { "type": "string" }, "ReadOnlyMemoryOfbyte": { "type": "string" }, "StringSegment": { "type": "object", "properties": { "buffer": { "type": "string", "nullable": true }, "offset": { "type": "integer", "format": "int32" }, "length": { "type": "integer", "format": "int32" }, "value": { "type": "string", "nullable": true }, "hasValue": { "type": "boolean" } } } } }, "tags": [ { "name": "Camera" }, { "name": "Flash" }, { "name": "Trigger" } ] }