POST api/PlagueDiseases/postFarmPlague
publica nueva plaga o enfermedad dentro de una finca.
Request Information
URI Parameters
None.
Body Parameters
diasesPlagueFarmPostName | Description | Type | Additional information |
---|---|---|---|
id | integer |
None. |
|
id_diseases_plague | integer |
None. |
|
id_farm | integer |
None. |
|
photo_path | string |
None. |
|
coordinates | string |
None. |
|
othername | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "id": 1, "id_diseases_plague": 2, "id_farm": 3, "photo_path": "sample string 4", "coordinates": "sample string 5", "othername": "sample string 6" }
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ResponseName | Description | Type | Additional information |
---|---|---|---|
code | integer |
None. |
|
message | string |
None. |
|
hasError | boolean |
None. |
|
exception | Exception |
None. |
|
model | Object |
None. |
Response Formats
application/json, text/json
Sample:
{ "code": 1, "message": "sample string 2", "hasError": true, "exception": { "ClassName": "System.Exception", "Message": null, "Data": null, "InnerException": null, "HelpURL": "sample string 1", "StackTraceString": null, "RemoteStackTraceString": null, "RemoteStackIndex": 0, "ExceptionMethod": null, "HResult": 3, "Source": "sample string 2", "WatsonBuckets": null }, "model": {} }