Skip to content

SubmitForm

Samuel Arminana edited this page Nov 6, 2018 · 5 revisions

Submit Form

/API/SubmitForm

Creates a new database entry with the entered information.

Request Types

GET | POST

Parameters

Required:

name [string]
imageUrl [string]
type [int]
animalType [int]
severity [int]
lat [float]
lon [float]
  • imageURL is the url on our storage server where the image was uploaded
  • type, animalType, and severity are all integer enum references
  • Lat is the user's latitude
  • Lon is the user's longitude

Response

Example

/API/SubmitForm?name=samuel&imageUrl=http://imgur.com/1.png/&type=0&animalType=0&severity=1&lat=40.304&lon=49.295

Success:

"Success"

Failure/Error:


Notes

11/5/18: No notes.

Clone this wiki locally