atsid/circuits-js

View on GitHub
examples/schema/ExampleService.js

Summary

Maintainability
A
0 mins
Test Coverage
define({
    "id": "Schema/SimpleTestBaseServiceSchema",
    "SMDVersion": "2.0",
    "$schema": "http://json-schema.org/draft-03/schema",
    "transport": "REST",
    "envelope": "PATH",
    "description": "Test Service Methods.",
    "contentType": "application/json",
    "target": "./data",
    "parameters": [
        {
            "name": "file",
            "type": "string",
            "envelope": "PATH",
            "description": "test parameter."
        }
    ],
    "services": {
        "getModel": {
            "target": "{file}",
            "transport": "GET",
            "description": "get a Model.",
            "payload": "",
            "returns": {
                "$ref": "schema/ExampleModel"
            }
        }
    }
});