def response_object()

in services/ui_backend_service/doc.py [0:0]


def response_object(ref_definition: str):
    return {
        "type": "object",
        "properties": {
            "data": {
                "type": "object",
                "$ref": ref_definition
            },
            "status": {
                "type": "integer",
                "description": "Response status",
                "default": 200
            },
            "links": {
                "type": "object",
                "properties": {
                    "self": {
                        "type": "string",
                        "description": "Full URL to current page",
                        "default": "http://localhost:8083/path"
                    }
                }
            },
            "query": {
                "type": "object",
                "description": "Object of query parameters"
            }
        }
    }