Concrete class: com.wadpam.docrest.test.PersonController
Implementing Class: com.wadpam.docrest.test.PersonController
REST path: GET /person/{name}
Where | Name | Type | Description |
path | name | String |
HTTP Response Code | Message | Description | |
200 | When found | ||
404 | NOT FOUND | When no user exists for specified name |
Response Type: com.wadpam.docrest.test.Venue
{
"id":String,
"name":String,
"establishedYear":int,
"location":{
"latitude":double,
"longitude":double
}
}
Implementing Class: com.wadpam.docrest.test.PersonController
REST path: DELETE /person/{id}
Where | Name | Type | Description |
path | id | String |
HTTP Response Code | Message | Description | |
- | - | - |
Response Type: ${encoder.escapeHtml($method.returnType)}
${method.json}
Implementing Class: com.wadpam.docrest.test.AbstractController
REST path: GET /person/
Where | Name | Type | Description |
query | offset | int | skip this number of entities before returning. Used for paging. Default is 0. |
query | limit | int | return this number of entities. Used for paging. Default is 10. |
HTTP Response Code | Message | Description | |
- | - | - |
Response Type: java.util.List
[{
"id":String,
"name":String,
"establishedYear":int,
"location":{
"latitude":double,
"longitude":double
}
},
...
]
Implementing Class: com.wadpam.docrest.test.AbstractController
REST path: GET /person/1st
Where | Name | Type | Description |
- | - | - | - |
HTTP Response Code | Message | Description | |
200 | - | When a first Entity exists |
Response Type: org.springframework.http.ResponseEntity
{
"statusCode":HttpStatus
}
Concrete class: com.wadpam.docrest.test.VenueController
Implementing Class: com.wadpam.docrest.test.VenueController
REST path: GET /venue/{name}
Where | Name | Type | Description |
path | name | String |
HTTP Response Code | Message | Description | |
- | - | - |
Response Type: ${encoder.escapeHtml($method.returnType)}
${method.json}
Implementing Class: com.wadpam.docrest.test.VenueController
REST path: POST /venue/{id}
Where | Name | Type | Description |
path | id | String | The Venue id |
HTTP Response Code | Message | Description | |
- | - | - |
Response Type: ${encoder.escapeHtml($method.returnType)}
${method.json}
Implementing Class: com.wadpam.docrest.test.VenueController
REST path: DELETE /venue/{id}
Where | Name | Type | Description |
path | id | String |
HTTP Response Code | Message | Description | |
- | - | - |
Response Type: ${encoder.escapeHtml($method.returnType)}
${method.json}
Implementing Class: com.wadpam.docrest.test.VenueController
REST path: GET /venue/
Where | Name | Type | Description |
- | - | - | - |
HTTP Response Code | Message | Description | |
- | - | - |
Response Type: ${encoder.escapeHtml($method.returnType)}
${method.json}
Implementing Class: com.wadpam.docrest.test.AbstractController
REST path: GET /venue/
Where | Name | Type | Description |
query | offset | int | skip this number of entities before returning. Used for paging. Default is 0. |
query | limit | int | return this number of entities. Used for paging. Default is 10. |
HTTP Response Code | Message | Description | |
- | - | - |
Response Type: java.util.List
[,
...
]
Implementing Class: com.wadpam.docrest.test.AbstractController
REST path: GET /venue/1st
Where | Name | Type | Description |
- | - | - | - |
HTTP Response Code | Message | Description | |
200 | - | When a first Entity exists |
Response Type: org.springframework.http.ResponseEntity
{
"statusCode":HttpStatus
}