- Dev notes
- soil-pest-resource-controller
- volunteer-controller
- volunteer-activity-controller
- resource-exchange-controller
- plot-controller
- local-partner-controller
- knowledge-resource-controller
- crop-plan-controller
- community-garden-controller
- user-controller
- role-controller
- weather-controller
- auth-controller
Get crop plan by ID
GET
/api/user/{id}/cropPlans
crop-plan-controller
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Path Params
id
integer <int64>
required
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET '/api/user//cropPlans'
Responses
🟢200Crop plan retrieved successfully
application/json
Body
cropName
string
optional
plantingDate
string <date-time>
optional
harvestDate
string <date-time>
optional
Example
{
"cropName": "string",
"plantingDate": "2019-08-24T14:15:22Z",
"harvestDate": "2019-08-24T14:15:22Z"
}
🟠400Bad Request
🟠404Crop plan not found
🔴500Internal server error
Modified at 2024-06-11 16:24:49