Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
V
VIPSLogic
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VIPS
VIPSLogic
Commits
036fba97
Commit
036fba97
authored
2 years ago
by
Tor-Einar Skog
Browse files
Options
Downloads
Patches
Plain Diff
doc: Endpoint documentation for POI service
parent
fddb796b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/no/nibio/vips/logic/service/POIService.java
+11
-8
11 additions, 8 deletions
src/main/java/no/nibio/vips/logic/service/POIService.java
with
11 additions
and
8 deletions
src/main/java/no/nibio/vips/logic/service/POIService.java
+
11
−
8
View file @
036fba97
...
...
@@ -71,8 +71,8 @@ public class POIService {
/**
* Get a list of locations (pois) for a given organization
*
* @param organizationId
* @return
* @param organizationId
Database id for the organization
* @return
List of weather stations for the organization
*/
@GET
@Path
(
"organization/{organizationId}"
)
...
...
@@ -86,7 +86,7 @@ public class POIService {
/**
*
* @param pointOfInterestId
* @param pointOfInterestId
Database id of the POI
* @return a particular POI (Point of interest)
*/
@GET
...
...
@@ -101,8 +101,8 @@ public class POIService {
/**
* Find a POI (Point of interest) by name
*
* @param poiName
* @return
* @param poiName
The name of the POI, e.g. "My FooBar Location"
* @return
a particular POI (Point of interest), or HTTP Status 204 (No content) if not found
*/
@GET
@Path
(
"name/{poiName}"
)
...
...
@@ -117,7 +117,7 @@ public class POIService {
* If used outside of VIPSLogic: Requires a valid UUID to be provided in the
* Authorization header
*
* @return
* @return
a list of POIs belonging to the user currently logged in
*/
@GET
@Path
(
"user"
)
...
...
@@ -140,14 +140,17 @@ public class POIService {
}
/**
* This service is used by the VIPS Field observation app to sync data stored locally on the smartphone with the
* state of the (potentially non-existent) POI in the VIPSLogic database
* TODO Add request example
* @param poiJson
* @return
* @param poiJson
Json representation of the POI(s)
* @return
The POI(s) in their merged state, serialized to Json
*/
@POST
@Path
(
"syncpoifromapp"
)
@Consumes
(
"application/json;charset=UTF-8"
)
@Produces
(
"application/json;charset=UTF-8"
)
@TypeHint
(
PointOfInterest
.
class
)
public
Response
syncPOIFromApp
(
String
poiJson
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment