{"openapi":"3.0.0","info":{"version":"1","title":"","description":""},"servers":[{"description":"SwaggerHub API Auto Mocking","url":"https://virtserver.swaggerhub.com/ChristianZU/3.0Hausarbeit_TrainTracer/1"}],"paths":{"/gueterwaggon/gueterwaggonID":{"get":{"tags":["/Gueterwaggon"],"summary":"Returns a gueterwaggon record by ID","parameters":[{"name":"searchstring","in":"path","required":true,"description":"The gueterwaggon record of the specific ID to return","schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/gueterwaggon"}}}},"204":{"description":"No content."},"500":{"description":"Internal server error."},"400":{"description":"Invalid request"}}},"put":{"tags":["/Gueterwaggon"],"summary":"Updates a gueterwaggon record by ID","parameters":[{"name":"gueterwaggonID","in":"path","required":true,"description":"Updates the record of gueterwaggon with the specified ID","schema":{"type":"integer"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/gueterwaggon"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/gueterwaggon"}}}},"204":{"description":"No content."},"500":{"description":"Internal server error."},"400":{"description":"Invalid request"}}},"delete":{"tags":["/Gueterwaggon"],"summary":"Deletes a gueterwaggon record by ID","parameters":[{"name":"gueterwaggonID","in":"path","required":true,"description":"Delete the record of the gueterwaggon with the specified ID","schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/gueterwaggon"}}}},"204":{"description":"No content."},"500":{"description":"Internal server error."},"400":{"description":"Invalid request"}}},"post":{"tags":["/Gueterwaggon"],"summary":"Create a gueterwaggon record with a specific ID","requestBody":{"description":"Create a record of a gueterwaggon with a specified ID","content":{"application/json":{"schema":{"$ref":"#/components/schemas/gueterwaggon"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/gueterwaggon"}}}},"204":{"description":"No content."},"500":{"description":"Internal server error."},"400":{"description":"Invalid request"}}}},"/gueterzug/gueterzugID":{"get":{"tags":["/Gueterzug"],"summary":"Returns a gueterzug record by ID","parameters":[{"name":"gueterzugID","in":"path","required":true,"description":"The gueterzug record of the specific ID to return","schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/gueterzug"}}}},"204":{"description":"No content."},"500":{"description":"Internal server error."},"400":{"description":"Invalid request"}}},"put":{"tags":["/Gueterzug"],"summary":"Updates a gueterzug record by ID","parameters":[{"name":"gueterzugID","in":"path","required":true,"description":"Updates the record of gueterzug with the specified ID","schema":{"type":"integer"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/gueterzug"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/gueterzug"}}}},"204":{"description":"No content."},"500":{"description":"Internal server error."},"400":{"description":"Invalid request"}}},"delete":{"tags":["/Gueterzug"],"summary":"Deletes a gueterzug record by ID","parameters":[{"name":"gueterzugID","in":"path","required":true,"description":"Delete the record of the gueterzug with the specified ID","schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/gueterzug"}}}},"204":{"description":"No content."},"500":{"description":"Internal server error."},"400":{"description":"Invalid request"}}},"post":{"tags":["/Gueterzug"],"summary":"Create a gueterzug record with a specific ID","requestBody":{"description":"Create a record of a gueterzug with a specified ID","content":{"application/json":{"schema":{"$ref":"#/components/schemas/gueterzug"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/gueterzug"}}}},"204":{"description":"No content."},"500":{"description":"Internal server error."},"400":{"description":"Invalid request"}}}}},"components":{"schemas":{"gueterwaggon":{"type":"object","description":"This object represents the record for a gueterwaggon. Each gueterwaggon must be repreented by one gueterwaggon record.","required":["gueterwaggonID","eta","location","temperature","humidity","doorOpenings","shock","delay"],"properties":{"gueterwaggonID":{"type":"integer","description":"The ID of a gueterwaggon. The gueterwaggonID must be unique.","example":11548926},"eta":{"type":"string","description":"Estimated time of arrival","example":"23:59"},"location":{"type":"string","description":"Location of the Gueterwaggon","example":"Hamburg"},"temperature":{"type":"string","description":"Temperature insdide the Gueterwaggon","example":"36 + \"degree\""},"humidity":{"type":"string","description":"Humidity insdide the Gueterwaggon","example":"12 + \"g/m²\""},"doorOpenings":{"type":"integer","description":"Numbers of door openings of the Gueterwaggon","example":2},"shock":{"type":"string","description":"Number of impacts on the Gueterwaggon greater than one g","example":"1 + \"g in m/s^2\""},"delay":{"type":"string","description":"Delay of the Gueterwaggon at destination","example":"15 + \"minutes\""}}},"gueterzug":{"type":"object","description":"This object represents the record for a gueterzug. Each gueterzug must be repreented by one gueterzug record.","required":["gueterzugID","eta","location","delay"],"properties":{"gueterzugID":{"type":"integer","description":"The ID of a gueterzug. The gueterzugID must be unique.","example":548926},"eta":{"type":"string","description":"Estimated time of arrival","example":"23:59"},"location":{"type":"string","description":"Location of the Gueterzug","example":"Hamburg"},"delay":{"type":"string","description":"Delay of the Gueterzug at destination","example":"15 + \"minutes\""}}}}}}