© 2018 Capita Business Services Ltd. All rights reserved.

Capita Education Software Solutions is a trading name of Capita Business Services Ltd. Our Registered office is 30 Berners Street, London, W1T 3LR and our registered number is 02299747. Further information about Capita plc can be found in our legal statement.

DeX OData - Staff Transports

Staff Transports

This information domain is intended to provide staff cultural data. Please note there is no filter availability on current staff. 

Example Call

<Stem>Staff/V3/StaffTransports

Definition

// Root myDeserializedClass = JsonConvert.DeserializeObject<Root>(myJsonResponse); 
    public class VehicleDetail
    {
        public object Make { get; set; }
        public string Model { get; set; }
        public string Colour { get; set; }
        public string RegistrationNumber { get; set; }
        public object PermitNumber { get; set; }
        public string ExternalID { get; set; }
    }

    public class Value
    {
        public string ExternalID { get; set; }
        public List<VehicleDetail> VehicleDetails { get; set; }
    }

    public class Root
    {
        [JsonProperty("@odata.context")]
        public string OdataContext { get; set; }
        public List<Value> value { get; set; }
    }

//https://json2csharp.com/

Example return

{
    "@odata.context": "https://seli00apm01.azure-api.net/ssli01/Staff/V3/$metadata#StaffTransports",
    "value": [
        {
            "ExternalID": "10eac59a-d558-4fc0-b056-6c1dcad8aa96",
            "VehicleDetails": [
                {
                    "Make": null,
                    "Model": "Picanto",
                    "Colour": "Red",
                    "RegistrationNumber": "YR 05 DVM",
                    "PermitNumber": null,
                    "ExternalID": "fc2e0e65-574f-471d-8b96-6f0a5333569b"
                }
            ]
        },
        {
            "ExternalID": "d5a729b8-b567-45c1-9613-ad80419a57b8",
            "VehicleDetails": [
                {
                    "Make": null,
                    "Model": "Rover",
                    "Colour": "Blue",
                    "RegistrationNumber": "Y78 JZW",
                    "PermitNumber": null,
                    "ExternalID": "a5c4768f-6e2e-4df9-8f49-88ff6fbe0630"
                }
            ]
        }
}