UNPKG

openapi-directory

Version:

Building & bundling https://github.com/APIs-guru/openapi-directory for easy use from JS

1 lines 22.1 kB
{"openapi":"3.0.0","info":{"contact":{"name":"The open API platform by Mercedes-Benz","x-twitter":"MercedesBenz"},"description":"The Remote Diagnostic Support API will provide the possibility for 3rd party applications (e.g. ADAC, ATU, etc.) to access vehicle diagnostics data remotely on behalf of the Daimler customer. To use the endpoints you need a valid vin/fin (vehicleId).","title":"Remote Diagnostic Support","version":"1.0","x-apisguru-categories":["transport"],"x-logo":{"url":"https://twitter.com/MercedesBenz/profile_image?size=original"},"x-origin":[{"format":"swagger","url":"https://developer.mercedes-benz.com/content/sites/default/files/2018-10/swagger_remote_diagnostics_api_2.yaml","version":"2.0"}],"x-providerName":"mercedes-benz.com","x-serviceName":"diagnostics"},"tags":[{"description":"Remote Diagnostic Support service for view all resources.","name":"Resources"},{"description":"Remote Diagnostic Support services for view ecu List.","name":"Electronical Control Units (ECU's)"},{"description":"Remote Diagnostic Support service for view dtc List.","name":"Diagnostic Trouble Codes (DTC's)"},{"description":"Remote Diagnostic Support service for view dtc snapshot List.","name":"Diagnostic Trouble Code (DTC) Snapshots"}],"paths":{"/vehicles/{vehicleId}/dtcReadouts":{"post":{"description":"This API creates a readout of DTCs for one vehicle. If the result is available immediately, the result is returned. If the result isn't available, a location to the DTC readout is returned. This location shall be polled until the result is available. INFO: GET Requests are not yet supported!","operationId":"getDtcDataListByEcuUsingPOST","parameters":[{"description":"The vehicle identifier of the vehicle to read from.","in":"path","name":"vehicleId","required":true,"example":"WDD111111PKW01000","schema":{"type":"string"}},{"description":"Return DTCs from this ECU id only. Default: Return DTCs from all ECUs.","in":"query","name":"ecuId","required":false,"schema":{"type":"string"}},{"description":"Returns DTCs with this statuses only. Default: Return DTCs with all statuses.","in":"query","name":"dtcStatus","required":false,"schema":{"type":"string"}}],"responses":{"201":{"description":"Returns a DTC List","content":{"application/x.exve.org.dtcreadout.v1+json;charset=utf-8":{"schema":{"$ref":"#/components/schemas/DtcDataContainer"}},"application/json;charset=utf-8":{"schema":{"$ref":"#/components/schemas/DtcDataContainer"}}}},"202":{"description":"The request has been accepted for processing, but not completed."},"400":{"description":"Bad Request","content":{"application/x.exve.org.dtcreadout.v1+json;charset=utf-8":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}},"application/json;charset=utf-8":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/x.exve.org.dtcreadout.v1+json;charset=utf-8":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}},"application/json;charset=utf-8":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"Payment required","content":{"application/x.exve.org.dtcreadout.v1+json;charset=utf-8":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}},"application/json;charset=utf-8":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/x.exve.org.dtcreadout.v1+json;charset=utf-8":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}},"application/json;charset=utf-8":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource Not Found","content":{"application/x.exve.org.dtcreadout.v1+json;charset=utf-8":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}},"application/json;charset=utf-8":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"406":{"description":"Not Acceptable","content":{"application/x.exve.org.dtcreadout.v1+json;charset=utf-8":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}},"application/json;charset=utf-8":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Quota limit is exceeded."},"500":{"description":"Internal server error","content":{"application/x.exve.org.dtcreadout.v1+json;charset=utf-8":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}},"application/json;charset=utf-8":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"501":{"description":"Not Implemented","content":{"application/x.exve.org.dtcreadout.v1+json;charset=utf-8":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}},"application/json;charset=utf-8":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service Unavailable","content":{"application/x.exve.org.dtcreadout.v1+json;charset=utf-8":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}},"application/json;charset=utf-8":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"505":{"description":"Version not supported","content":{"application/x.exve.org.dtcreadout.v1+json;charset=utf-8":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}},"application/json;charset=utf-8":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"View the List of DTCs for specific vehicleId.","tags":["Diagnostic Trouble Codes (DTC's)"]}},"/vehicles/{vehicleId}/ecuId/{ecuId}/dtcId/{dtcId}/dtcSnapshotReadouts":{"post":{"description":"This API creates a readout of a DTC snapshot from one vehicle. If the result is available immediately, the result is returned. If the result isn't available, a location to the DTC snapshot readout is returned. This location shall be polled until the result is available. INFO: GET Requests are not yet supported!","operationId":"getDtcSnapshotReadoutsUsingPOST","parameters":[{"description":"The vehicle identifier of the vehicle to read from","in":"path","name":"vehicleId","required":true,"example":"WDD111111PKW01000","schema":{"type":"string"}},{"description":"The id of the ECU to read from","in":"path","name":"ecuId","required":true,"example":"DTR212","schema":{"type":"string"}},{"description":"The id of the DTC associated with the snapshot","in":"path","name":"dtcId","required":true,"example":"C163AFA","schema":{"type":"string"}}],"responses":{"201":{"description":"Returns a DTC Snapshot List","content":{"application/x.exve.org.dtcSnapshotReadout.v1+json;charset=utf-8":{"schema":{"$ref":"#/components/schemas/DtcSnapshotDataContainer"}},"application/json;charset=utf-8":{"schema":{"$ref":"#/components/schemas/DtcSnapshotDataContainer"}}}},"202":{"description":"The request has been accepted for processing, but not completed."},"204":{"description":"The request has been accepted for processing, but no content is available."},"400":{"description":"Bad Request","content":{"application/x.exve.org.dtcSnapshotReadout.v1+json;charset=utf-8":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}},"application/json;charset=utf-8":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/x.exve.org.dtcSnapshotReadout.v1+json;charset=utf-8":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}},"application/json;charset=utf-8":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"Payment required","content":{"application/x.exve.org.dtcSnapshotReadout.v1+json;charset=utf-8":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}},"application/json;charset=utf-8":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/x.exve.org.dtcSnapshotReadout.v1+json;charset=utf-8":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}},"application/json;charset=utf-8":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource Not Found","content":{"application/x.exve.org.dtcSnapshotReadout.v1+json;charset=utf-8":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}},"application/json;charset=utf-8":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"406":{"description":"Not Acceptable","content":{"application/x.exve.org.dtcSnapshotReadout.v1+json;charset=utf-8":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}},"application/json;charset=utf-8":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Quota limit is exceeded."},"500":{"description":"Internal server error","content":{"application/x.exve.org.dtcSnapshotReadout.v1+json;charset=utf-8":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}},"application/json;charset=utf-8":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"501":{"description":"Not Implemented","content":{"application/x.exve.org.dtcSnapshotReadout.v1+json;charset=utf-8":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}},"application/json;charset=utf-8":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service Unavailable","content":{"application/x.exve.org.dtcSnapshotReadout.v1+json;charset=utf-8":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}},"application/json;charset=utf-8":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"505":{"description":"Version not supported","content":{"application/x.exve.org.dtcSnapshotReadout.v1+json;charset=utf-8":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}},"application/json;charset=utf-8":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"View the List of DTC Snapshot for specific vehicleId.","tags":["Diagnostic Trouble Code (DTC) Snapshots"]}},"/vehicles/{vehicleId}/ecuReadouts":{"post":{"description":"This API creates a readout of ECUs for one vehicle. If the result is available immediately, the result is returned. If the result isn't available, a location to the ECU readout is returned. This location shall be polled until the result is available. INFO: GET Requests are not yet supported!","operationId":"getEcuDataListByVehicleIdUsingPOST","parameters":[{"description":"The vehicle identifier of the vehicle to read from","in":"path","name":"vehicleId","required":true,"example":"WDD111111PKW01000","schema":{"type":"string"}},{"description":"Return this ECU id only. Default: Return all ECUs.","in":"query","name":"ecuId","required":false,"schema":{"type":"string"}}],"responses":{"201":{"description":"Returns an ECU List","content":{"application/x.exve.org.ecureadout.v1+json;charset=utf-8":{"schema":{"$ref":"#/components/schemas/EcuDataContainer"}},"application/json;charset=utf-8":{"schema":{"$ref":"#/components/schemas/EcuDataContainer"}}}},"202":{"description":"The request has been accepted for processing, but not completed."},"400":{"description":"Bad Request","content":{"application/x.exve.org.ecureadout.v1+json;charset=utf-8":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}},"application/json;charset=utf-8":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/x.exve.org.ecureadout.v1+json;charset=utf-8":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}},"application/json;charset=utf-8":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"Payment required","content":{"application/x.exve.org.ecureadout.v1+json;charset=utf-8":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}},"application/json;charset=utf-8":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/x.exve.org.ecureadout.v1+json;charset=utf-8":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}},"application/json;charset=utf-8":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource Not Found","content":{"application/x.exve.org.ecureadout.v1+json;charset=utf-8":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}},"application/json;charset=utf-8":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"406":{"description":"Not Acceptable","content":{"application/x.exve.org.ecureadout.v1+json;charset=utf-8":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}},"application/json;charset=utf-8":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Quota limit is exceeded."},"500":{"description":"Internal server error","content":{"application/x.exve.org.ecureadout.v1+json;charset=utf-8":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}},"application/json;charset=utf-8":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"501":{"description":"Not Implemented","content":{"application/x.exve.org.ecureadout.v1+json;charset=utf-8":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}},"application/json;charset=utf-8":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service Unavailable","content":{"application/x.exve.org.ecureadout.v1+json;charset=utf-8":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}},"application/json;charset=utf-8":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"505":{"description":"Version not supported","content":{"application/x.exve.org.ecureadout.v1+json;charset=utf-8":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}},"application/json;charset=utf-8":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"View the List of ECU for specific vehicleId.","tags":["Electronical Control Units (ECU's)"]}},"/vehicles/{vehicleId}/resourceReadouts":{"post":{"description":"This API creates a readout of available resources to the accessing party for one vehicle. If the result is available immediately, the result is returned. If the result isn't available, a location to the resource readout is returned. This location shall be polled until the result is available. INFO: GET Requests are not yet supported!","operationId":"getResourceReadoutsUsingPOST","parameters":[{"description":"vehicleId of the resources to be viewed","in":"path","name":"vehicleId","required":true,"example":"WDD111111PKW01000","schema":{"type":"string"}}],"responses":{"201":{"description":"Returns a resource to the accessing party","content":{"application/x.exve.org.resourceReadout.v1+json;charset=utf-8":{"schema":{"$ref":"#/components/schemas/ResourceDataContainer"}},"application/json;charset=utf-8":{"schema":{"$ref":"#/components/schemas/ResourceDataContainer"}}}},"202":{"description":"The request has been accepted for processing, but not completed."},"400":{"description":"Bad Request","content":{"application/x.exve.org.resourceReadout.v1+json;charset=utf-8":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}},"application/json;charset=utf-8":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/x.exve.org.resourceReadout.v1+json;charset=utf-8":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}},"application/json;charset=utf-8":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"Payment required","content":{"application/x.exve.org.resourceReadout.v1+json;charset=utf-8":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}},"application/json;charset=utf-8":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/x.exve.org.resourceReadout.v1+json;charset=utf-8":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}},"application/json;charset=utf-8":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource Not Found","content":{"application/x.exve.org.resourceReadout.v1+json;charset=utf-8":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}},"application/json;charset=utf-8":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"406":{"description":"Not Acceptable","content":{"application/x.exve.org.resourceReadout.v1+json;charset=utf-8":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}},"application/json;charset=utf-8":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Quota limit is exceeded."},"500":{"description":"Internal server error","content":{"application/x.exve.org.resourceReadout.v1+json;charset=utf-8":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}},"application/json;charset=utf-8":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"501":{"description":"Not Implemented","content":{"application/x.exve.org.resourceReadout.v1+json;charset=utf-8":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}},"application/json;charset=utf-8":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service Unavailable","content":{"application/x.exve.org.resourceReadout.v1+json;charset=utf-8":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}},"application/json;charset=utf-8":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"505":{"description":"Version not supported","content":{"application/x.exve.org.resourceReadout.v1+json;charset=utf-8":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}},"application/json;charset=utf-8":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"View the List of resources","tags":["Resources"]}}},"x-default-token":"a1b2c3d4-a1b2-a1b2-a1b2-a1b2c3d4e5f6","servers":[{"url":"https://api.mercedes-benz.com/remotediagnostic_tryout/v1"}],"components":{"schemas":{"CommonType":{"properties":{"asyncEstimatedComplete":{"description":"Not Implemented. Estimated completion time of the readout","format":"date-time","type":"string"},"asyncProgress":{"description":"Not Implemented. Progress of the readout in percent.","format":"int32","type":"integer"},"asyncStatus":{"description":"Reflects the status of the readouts","enum":["Pending","InProgress","Complete","Fail"],"type":"string"},"asyncWait":{"description":"Not Implemented. Recommended waiting time in milliseconds until next request for status.","format":"int64","type":"integer"},"exveErrorId":{"description":"The id of the error in case something failed","type":"string"},"exveErrorMsg":{"description":"The error message in case something failed","type":"string"},"exveErrorRef":{"description":"A unique reference to the error. Can be used in communication with the offering party to help in resolving problems.","type":"string"},"exveNote":{"description":"A message regarding the result of the request. Can be filled both when the request was completed and failed.","type":"string"},"id":{"description":"Id unique for this readout.","type":"string"},"messageTimestamp":{"description":"Timestamp when this message was created.","format":"date-time","type":"string"},"receivedTimestamp":{"description":"Timestamp when the data in the message was received by the ExVe backend from the vehicle.","format":"date-time","type":"string"},"vehicleId":{"description":"The vehicle identifier of the extended vehicle, e.g VIN","type":"string"}},"required":["id","messageTimestamp","asyncStatus","vehicleId"],"type":"object"},"DtcDataContainer":{"properties":{"dtcReadout":{"$ref":"#/components/schemas/DtcDataType"}},"type":"object"},"DtcDataItem":{"properties":{"dtcId":{"description":"Identifier of the DTC.","type":"string"},"dtcTimestamp":{"description":"Date and time when the DTC occurred","type":"string"},"ecuId":{"description":"Identifier of the ECU where the DTC occurred","type":"string"},"occurrenceCounter":{"description":"Counter of how many times this DTC has occurred","format":"int32","type":"integer"},"status":{"description":"Reflects the status of the DTC","enum":["ACTIVE","PENDING","PREVIOUSLY_ACTIVE"],"type":"string"}},"required":["dtcId","ecuId","status"],"type":"object"},"DtcDataType":{"allOf":[{"$ref":"#/components/schemas/CommonType"},{"properties":{"dtcs":{"description":"List of DTCs","items":{"$ref":"#/components/schemas/DtcDataItem"},"type":"array"}},"type":"object"}]},"DtcSnapshotDataContainer":{"properties":{"dtcSnapshotReadout":{"$ref":"#/components/schemas/DtcSnapshotDataType"}},"type":"object"},"DtcSnapshotDataItem":{"properties":{"id":{"description":"Name of snapshot parameter","type":"string"},"value":{"description":"Value of snapshot parameter","type":"string"}},"required":["id","value"],"type":"object"},"DtcSnapshotDataType":{"allOf":[{"$ref":"#/components/schemas/CommonType"},{"properties":{"dtcId":{"description":"Identifier of the DTC","type":"string"},"dtcSnapshotParameters":{"description":"List of dtcSnapshotParameters.","items":{"$ref":"#/components/schemas/DtcSnapshotDataItem"},"type":"array"},"ecuId":{"description":"Identifier of the ECU","type":"string"}},"required":["dtcId","ecuId"],"type":"object"}]},"EcuDataContainer":{"properties":{"ecuReadout":{"$ref":"#/components/schemas/EcuDataType"}},"type":"object"},"EcuDataItem":{"properties":{"ecuId":{"description":"Identifier of the ECU","type":"string"},"hardwareIds":{"description":"Identifier(s) of the hardware unit(s) in this ECU","items":{"type":"string"},"type":"array"},"softwareIds":{"description":"Identifier(s) of the software unit(s) in this ECU","items":{"type":"string"},"type":"array"}},"required":["ecuId","hardwareIds","softwareIds"],"type":"object"},"EcuDataType":{"allOf":[{"$ref":"#/components/schemas/CommonType"},{"properties":{"ecus":{"description":"List of ECUs","items":{"$ref":"#/components/schemas/EcuDataItem"},"type":"array"}},"type":"object"}]},"ErrorResponse":{"properties":{"errorCode":{"description":"Error Code","type":"string"},"errorMessage":{"description":"Error Message","type":"string"}},"type":"object"},"ResourceDataContainer":{"properties":{"resourceReadout":{"$ref":"#/components/schemas/ResourceDataType"}},"type":"object"},"ResourceDataItem":{"properties":{"api":{"description":"URI to API exposing resource","type":"string"},"name":{"description":"Name of resource","type":"string"},"version":{"description":"Version of resource in API","type":"string"}},"required":["api","name","version"],"type":"object"},"ResourceDataType":{"allOf":[{"$ref":"#/components/schemas/CommonType"},{"properties":{"resources":{"description":"List of resources.","items":{"$ref":"#/components/schemas/ResourceDataItem"},"type":"array"}},"type":"object"}]}}}}