{ "openapi": "3.0.3", "info": { "title": "Analysis service for torsional vibration", "contact": { "name": "Riku Ala-Laurinaho", "url": "https://www.aalto.fi/en/people/riku-ala-laurinaho" }, "version": "0.0.1" }, "paths": { "/opentorsion": { "post": { "summary": "Runs a torsional vibration analysis.", "requestBody": { "description": "Send a JSON object that contains two objects: 1. assebly_urls: a list of DTIDs that are used to construct an assembly for the analysis and 2. linspace: a linspace object that defines the RPM interval of the performed vibration analyses.", "content": { "application/json": { "schema": { "type": "object", "properties": { "assembly_urls": { "type": "array", "items": { "type": "string" } }, "linspace": { "type": "object", "properties": { "start": { "type": "number" }, "stop": { "type": "integer" }, "num": { "type": "integer" } }, "required": [ "start", "stop", "num" ] } }, "required": [ "assembly_urls", "linspace" ] }, "examples": { "windmill": { "value": { "assembly_urls": [ "https://dtid.org/e85c46f4-bdc2-4e0e-acd2-6b0ae582072d", "https://dtid.org/1febe1f0-16ff-4245-8fb2-759c93b01808", "https://dtid.org/19707b48-028a-49ef-abc1-778e68b6010f" ], "linspace": { "start": 0.1, "stop": 25, "num": 5000 } }, "summary": "Runs a windmill analysis" } } } }, "required": true }, "responses": { "200": { "description": "Maximum amplitude of torsional vibration", "content": { "application/json": { "schema": { "type": "object", "properties": { "max_amplitude": { "type": "number", "example": 41999.921, "description": "Maximum amplitude of torsional vibration in Newtons" } } } } } } } } } }, "servers": [ { "url": "http://127.0.0.1:5000/v1", "description": "Development server" } ] }