Skip to content

Instantly share code, notes, and snippets.

@appcypher
Last active February 26, 2019 11:52
Show Gist options
  • Save appcypher/18b1cb80f0b384863e1748a127c63bb2 to your computer and use it in GitHub Desktop.
Save appcypher/18b1cb80f0b384863e1748a127c63bb2 to your computer and use it in GitHub Desktop.
Wire

POST /api/incidents

{
    "subject": "incident payload",
    "description": "kernjgknejrngkjerngnkre",
    "location": {
        "name": "herer",
        "centre": "ewfewf",
        "country": "eferf"
    },
    "dateOccurred": "01-09-2018",
    "levelId": "1",
    "incidentReporter": {
        "userId": "cjl6efcka00004tny9ilz7b61",
        "email": "[email protected]",
        "username": "Batian Muthoga",
        "imageUrl": "https://avatars.slack-edge.com/2018-01-31/308111298950_b15a779680c4d2bb093c_48.png",
        "reporterLocation": {
            "name": "office",
            "country": "USA",
            "centre": "New York"
        }
    },
    "witnesses": [
        {
            "userId": "cjl6efcka00004tny9ilz7b61",
            "email": "[email protected]",
            "username": "Batian Muthoga",
            "imageUrl": "https://avatars.slack-edge.com/2018-01-31/308111298950_b15a779680c4d2bb093c_48.png",
            "witnessLocation": {
                "name": "office",
                "centre": "St. Catherines",
                "country": "Kenya"
            }
        }
    ]
}
{
	"description": "My office-assigned monitor has been vandalized",
	"subject": "Improper use of work tools and equipments",
	"levelId": "1",
	"dateOccurred": "2018-03-01",
    "witnesses": [],
    "location": { "name": "herer", "centre": "ewfewf", "country": "eferf" },
	"incidentReporter": {
	    "userId": "cjl6efcka00004tny9ilz7b61",
	    "email": "[email protected]",
	    "username": "Batian Muthoga",
	    "imageUrl": "https://avatars.slack-edge.com/2018-01-31/308111298950_b15a779680c4d2bb093c_48.png",
	    "reporterLocation": { "name": "office", "country": "USA", "centre": "New York" }
	}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment