Skip to content

API (Jobs Search)

Alex Sheikhi edited this page Dec 21, 2017 · 2 revisions

URL

https://apitestbeacon.ses.nsw.gov.au/api/v2/jobs/get

Method

GET

Authentication

Bearer Token

Optional Params

  • Identifier
  • StartDate
  • EndDate
  • SortField
  • SortOrder
  • PageSize
  • PageIndex
  • JobTypeIds

Sample Response

{
    "CurrentPage": 1,
    "PageSize": 250,
    "TotalItems": 1,
    "Results": [
        {
            "Id": 28795,
            "Identifier": "0002-8795",
            "Sequence": 0,
            "FloodAssistanceJob": false,
            "ReferringAgency": null,
            "ReferringAgencyReference": null,
            "SituationOnScene": null,
            "EvacuationRequired": false,
            "PeopleInundated": 0,
            "PeopleExtricated": 0,
            "PeopleEvacuated": 0,
            "CreatedOn": "2017-12-11T09:22:00",
            "CreatedBy": {
                "Id": 9707,
                "FirstName": "David",
                "LastName": "Barrie",
                "FullName": "David Barrie",
                "Gender": 1,
                "RegistrationNumber": "40032515"
            },
            "CallerFirstName": "asdf",
            "CallerLastName": null,
            "ICEMSIncidentIdentifier": null,
            "ContactCalled": true,
            "CallerPhoneNumber": "1234",
            "ContactFirstName": null,
            "ContactLastName": null,
            "ContactPhoneNumber": null,
            "EntityAssignedTo": {
                "Id": 261,
                "Code": "WOL",
                "Name": "Wollongong City",
                "Latitude": -34.40247,
                "Longitude": 150.89495,
                "EntityTypeId": 1,
                "HeadquartersStatusTypeId": 2,
                "ParentEntity": {
                    "Id": 18,
                    "Code": "ISR",
                    "Name": "Illawarra South Coast Region"
                },
                "AriaCode": null
            },
            "LGA": "WOLLONGONG",
            "Sector": null,
            "JobPriorityType": {
                "Id": 4,
                "Name": "General",
                "Description": "General Response"
            },
            "TaskingCategory": 0,
            "JobType": {
                "ParentId": 1,
                "Id": 1,
                "Name": "Storm",
                "Description": "Storm Job"
            },
            "JobStatusType": {
                "Id": 1,
                "Name": "New",
                "Description": "New Job"
            },
            "Tags": [
                {
                    "Id": 23,
                    "Name": "Flooded",
                    "CreatedOn": "2015-08-04T11:32:33",
                    "CreatedBy": 1,
                    "TagGroupId": 6
                }
            ],
            "Address": {
                "GnafId": "GANSW706388267",
                "Latitude": -34.41949,
                "Longitude": 150.87497,
                "Type": null,
                "Flat": null,
                "Level": null,
                "StreetNumber": "12",
                "Street": "GILMORE STREET",
                "Locality": "WEST WOLLONGONG",
                "PostCode": null,
                "PrettyAddress": "12 GILMORE STREET, WEST WOLLONGONG",
                "AdditionalAddressInfo": null
            },
            "LastModified": "2017-12-11T09:22:00",
            "LastModifiedBy": {
                "Id": 9707,
                "FirstName": "David",
                "LastName": "Barrie",
                "FullName": "David Barrie",
                "Gender": 1,
                "RegistrationNumber": "40032515"
            },
            "JobStatusTypeHistory": [
                {
                    "Type": 1,
                    "Name": "New",
                    "Description": "Send Message was unselected.",
                    "Timelogged": "2017-12-11T09:22:00",
                    "CreatedOn": "2017-12-11T09:22:00",
                    "CreatedBy": {
                        "Id": 9707,
                        "FirstName": "David",
                        "LastName": "Barrie",
                        "FullName": "David Barrie",
                        "Gender": 1,
                        "RegistrationNumber": "40032515"
                    }
                }
            ],
            "PermissionToEnterPremises": false,
            "HowToEnterPremises": null,
            "Event": {
                "Id": 19,
                "Name": "Big storm",
                "Identifier": "19/1516",
                "Description": "Lots of wind and rain",
                "District": "Illawarra",
                "StartTime": "2015-09-23T10:25:32",
                "EndTime": null
            },
            "JobReceived": "2017-12-11T09:20:23",
            "Reconnoitered": false,
            "AgenciesPresent": [],
            "FloodAssistance": null,
            "Type": "Storm",
            "PrintCount": 0
        }
    ]
}