aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/org/traccar/api/resource/MaintenanceResource.java2
-rw-r--r--swagger.json8
2 files changed, 5 insertions, 5 deletions
diff --git a/src/org/traccar/api/resource/MaintenanceResource.java b/src/org/traccar/api/resource/MaintenanceResource.java
index b3726b429..fa1b359ce 100644
--- a/src/org/traccar/api/resource/MaintenanceResource.java
+++ b/src/org/traccar/api/resource/MaintenanceResource.java
@@ -24,7 +24,7 @@ import javax.ws.rs.core.MediaType;
import org.traccar.api.ExtendedObjectResource;
import org.traccar.model.Maintenance;
-@Path("maintenances")
+@Path("maintenance")
@Produces(MediaType.APPLICATION_JSON)
@Consumes(MediaType.APPLICATION_JSON)
public class MaintenanceResource extends ExtendedObjectResource<Maintenance> {
diff --git a/swagger.json b/swagger.json
index 1c2d42e76..183330bdd 100644
--- a/swagger.json
+++ b/swagger.json
@@ -1351,10 +1351,10 @@
}
}
},
- "/maintenances": {
+ "/maintenance": {
"get": {
- "summary": "Fetch a list of Maintenances",
- "description": "Without params, it returns a list of Maintenances the user has access to",
+ "summary": "Fetch a list of Maintenance",
+ "description": "Without params, it returns a list of Maintenance the user has access to",
"parameters": [
{
"$ref": "#/parameters/all"
@@ -1401,7 +1401,7 @@
}
}
},
- "/maintenances/{id}": {
+ "/maintenance/{id}": {
"put": {
"summary": "Update a Maintenance",
"parameters": [