Developer Portal

Report this

Description

Transform OpenAPI/ThingDescriptor


Additional information

Domain

Health

Reviews

There are no reviews yet.

Be the first to review “Developer Portal”

Your email address will not be published. Required fields are marked *

Privacy Policy

we respect your privacy

Q&A

You are not logged in

API Documentation

Download Documentation

{
    "internal_id": "mrIwxNYh",
    "@context": "https://www.w3.org/2022/wot/td/v1.1",
    "title": "Developer Portal",
    "description": "Transform OpenApi/Thing Descriptor",
    "properties": {
        "learningMaterials": {
            "forms": [
                {
                    "op": "readproperty",
                    "href": "https://gatekeeper.lst.tfo.upm.es/tms/learning-materials",
                    "contentType": "application/json",
                    "security": [
                        "bearer_sc"
                    ]
                },
                {
                    "op": "writeproperty",
                    "href": "https://gatekeeper.lst.tfo.upm.es/tms/learning-materials",
                    "contentType": "application/json",
                    "security": [
                        "bearer_sc"
                    ]
                }
            ]
        },
        "thingDescriptor": {
            "uriVariables": {
                "thing_id": {
                    "title": "thing_id",
                    "description": "TMS Thing descriptor id",
                    "type": "string"
                }
            },
            "forms": [
                {
                    "op": "readproperty",
                    "href": "https://gatekeeper.lst.tfo.upm.es/tms/broker",
                    "contentType": "application/json",
                    "security": [
                        "bearer_sc"
                    ]
                },
                {
                    "op": "readproperty",
                    "href": "https://gatekeeper.lst.tfo.upm.es/tms/broker/{thing_id}",
                    "contentType": "application/json",
                    "security": [
                        "bearer_sc"
                    ]
                },
                {
                    "op": "writeproperty",
                    "href": "https://gatekeeper.lst.tfo.upm.es/tms/broker",
                    "contentType": "application/json",
                    "security": [
                        "bearer_sc"
                    ]
                }
            ]
        },
        "thingDescriptorMetaData": {
            "forms": [
                {
                    "op": "readproperty",
                    "href": "https://gatekeeper.lst.tfo.upm.es/tms/metadata",
                    "contentType": "application/json",
                    "security": [
                        "bearer_sc"
                    ]
                },
                {
                    "op": "writeproperty",
                    "href": "https://gatekeeper.lst.tfo.upm.es/tms/metadata",
                    "contentType": "application/json",
                    "security": [
                        "bearer_sc"
                    ]
                }
            ]
        },
        "userMetadata": {
            "uriVariables": {
                "user_id": {
                    "title": "user_id",
                    "description": "WoT transformation tests direction",
                    "type": "string"
                }
            },
            "forms": [
                {
                    "op": "readproperty",
                    "href": "https://gatekeeper.lst.tfo.upm.es/tms/user-metadata/{user_id}",
                    "contentType": "application/json",
                    "security": [
                        "bearer_sc"
                    ]
                },
                {
                    "op": "writeproperty",
                    "href": "https://gatekeeper.lst.tfo.upm.es/tms/user-metadata/{user_id}",
                    "contentType": "application/json",
                    "security": [
                        "bearer_sc"
                    ]
                }
            ]
        }
    },
    "actions": {
        "addLearningMaterial": {
            "input": {
                "type": "object",
                "required": [
                    "true"
                ],
                "title": "Thing Metadata"
            },
            "forms": [
                {
                    "op": "invokeaction",
                    "href": "https://gatekeeper.lst.tfo.upm.es/tms/learning-materials",
                    "contentType": "application/json",
                    "security": [
                        "bearer_sc"
                    ]
                }
            ]
        },
        "addThingDescriptor": {
            "input": {
                "type": "object",
                "required": [
                    "true"
                ],
                "title": "Thing Metadata"
            },
            "forms": [
                {
                    "op": "invokeaction",
                    "href": "https://gatekeeper.lst.tfo.upm.es/tms/broker",
                    "contentType": "application/json",
                    "security": [
                        "bearer_sc"
                    ]
                }
            ]
        },
        "addThingDescriptorMetaData": {
            "input": {
                "type": "object",
                "required": [
                    "true"
                ],
                "title": "Thing Metadata"
            },
            "forms": [
                {
                    "op": "invokeaction",
                    "href": "https://gatekeeper.lst.tfo.upm.es/tms/td-metadata",
                    "contentType": "application/json",
                    "security": [
                        "bearer_sc"
                    ]
                }
            ]
        },
        "fileUploadService": {
            "input": {
                "type": "string",
                "required": [
                    "true"
                ],
                "contentMediaType": "image/png"
            },
            "forms": [
                {
                    "op": "invokeaction",
                    "href": "https://gatekeeper.lst.tfo.upm.es/dev-files/files",
                    "contentType": "multipart/form-data",
                    "security": [
                        "bearer_sc"
                    ]
                }
            ]
        },
        "auth": {
            "input": {
                "type": "object",
                "required": [
                    "true"
                ],
                "properties": {
                    "username": {
                        "type": "string"
                    },
                    "password": {
                        "type": "string"
                    },
                    "grant_type": {
                        "type": "string"
                    },
                    "client_id": {
                        "type": "string"
                    }
                }
            },
            "forms": [
                {
                    "op": "invokeaction",
                    "href": "https://gatekeeper.lst.tfo.upm.es/auth/realms/gatekeeper/protocol/openid-connect/token",
                    "contentType": "application/x-www-form-urlencoded"
                }
            ]
        }
    },
    "security": [
        "bearer_sc"
    ],
    "securityDefinitions": {
        "bearer_sc": {
            "scheme": "bearer",
            "in": "header",
            "format": "jwt",
            "alg": "ES256",
            "authorization": "https://gatekeeper.lst.tfo.upm.es/auth/realms/gatekeeper/protocol/openid-connect/token/"
        }
    }
}