DTC Info Service
~~~~~~~~~~~~~~~~

Get Information About a DTC Code
````````````````````````````````

There's a lot of information encoded in the DTC codes reported by a Vehicle.  This method is meant to provide this information for a given DTC code so that your Application can present useful information to the end-user.

Request
+++++++

.. code-block:: json

      GET https://diagnostics.vin.li/api/v1/codes?number=P0171
      Accept: application/json

Response
++++++++

.. code-block:: json

      HTTP/1.1 200 OK
      Content-Type: application/json

      {
        "code" : {
          "id" : "c2a5ab0a-e665-4d65-ba1d-b8118d757e63",
          "number" : "P0171",
          "name" : "System Too Lean (Bank 1)",
          "type" : "generic",
          "system" : "powertrain",
          "subSystem" : "emission_management",
          "description" : "O2 Sensor (Bank 1) has detected a lean exhaust condition",
          "possibleSymptoms" : [
            "Lack of Power",
            "Engine Knock",
            "Rough at Idle"
          ],
          "possibleCauses" : [
            "Faulty O2 Sensor (Bank 1)",
            "Vacuum leak downstream of the MAF sensor",
            "Cracked vacuum or PCV line/connection",
            "Exhaust leak between engine and first oxygen sensor",
            ...
          ],
          "possibleResolutions" : [
            "Replace O2 Sensor (Bank 1)",
            ...
          ],
          "severity" : "low"
        }
      }

DTC Info Service
~~~~~~~~~~~~~~~~

Get Information About a DTC Code
````````````````````````````````

There's a lot of information encoded in the DTC codes reported by a Vehicle.  This method is meant to provide this information for a given DTC code so that your Application can present useful information to the end-user.

Request
+++++++

.. code-block:: json

      GET https://diagnostics.vin.li/api/v1/codes?number=P0171
      Accept: application/json

Response
++++++++

.. code-block:: json

      HTTP/1.1 200 OK
      Content-Type: application/json

      {
        "code" : {
          make: 'generic',
          twoByte: {
            number: 'P0001',
            description: 'Fuel Volume Regulator Control Circuit/Open'
          },
          threeByte: {
            number: 'P0001',
            ftb: '13',
            fault: 'Circuit Open',
            description: 'Fuel Volume Regulator Control'
          }
        }
      }

Use two and three byte format.
Use two and three byte format.
