- 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 all community gardens
GET
/api/volunteer/communityGardens
community-garden-controller
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
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/volunteer/communityGardens'
Responses
🟢200List of community gardens retrieved successfully
application/json
Body
name
stringÂ
optional
location
stringÂ
optional
sunlight
stringÂ
optional
soilType
stringÂ
optional
users
array[object (UserDTO) {6}]Â
optional
id
integer <int64>
optional
username
stringÂ
optional
email
stringÂ
optional
roleEntities
array[object (RoleDTO) {2}]Â
optional
communityGardens
array[object (CommunityGardenDTos) {2}]Â
optional
volunteerActivity
object (VolunteerActivityDTos)Â
optional
Example
{
"name": "string",
"location": "string",
"sunlight": "string",
"soilType": "string",
"users": [
{
"id": 0,
"username": "string",
"email": "string",
"roleEntities": [
{
"id": 0,
"name": "string"
}
],
"communityGardens": [
{
"id": 0,
"name": "string"
}
],
"volunteerActivity": {
"id": 0,
"activityName": "string"
}
}
]
}
🟠400Bad Request
🟠404Not Found
🔴500Internal server error
Modified at 2024-06-11 16:24:49