#%RAML 1.0
---
title: FOMS Web Services
baseUri: http://HOSTNAME/ws/{version}
version: v1

/orders/{techID}:
    get:
      description: Retrieve all of today's orders for the specified tech ID
        responses:
          200:
            body:
              application/json:
                example: |
                  [
                    {
                      "soUuid": "2110486761-4171060",
                      "type": "TC 008",
                      "typeDescription": "TENANT CHANGE ON",
                      "customerAddress": {
                        "streetAddress": "3105 COLANTHE AVE",
                        "shortenedAddress": "3105 COLANTHE AVE",
                        "city": "LAS VEGAS",
                        "state": "NV",
                        "zipCode": "89102"
                      },
                      "customerLocation": {
                        "lat": 36.1514713222612,
                        "lon": -115.184191264346,
                        "accuracy": "high"
                      },
                      "assignedTechId": "DXF8",
                      "wcNo": "4171060",
                      "accountNumber": "2110486761",
                      "appointmentTime", "08:00",
                      "appointmentWindow": "08"
                    },
                    {
                      "soUuid": "1411047715-4171068",
                      "type": "TC 010",
                      "typeDescription": "TENANT CHANGE READ",
                      "customerAddress": {
                        "streetAddress": "3783 FOREST",
                        "shortenedAddress": "3783 FOREST",
                        "city": "SOUTH LAKE TAHOE",
                        "state": "CA",
                        "zipCode": "96150"
                      },
                      "customerLocation": {
                        "lat": 0,
                        "lon": 0,
                        "accuracy": "none"
                      },
                      "assignedTechId": "AXL9",
                      "wcNo": "4171068",
                      "accountNumber": "1411047715"
                      "appointmentTime", "08:00",
                      "appointmentWindow": "08"
                    }
                  ]