From 2055825debbb7380d4f28377e01d7c31d8c18e08 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Mon, 12 Nov 2018 15:18:14 +1300 Subject: Rename maintenances to maintenance --- src/org/traccar/api/resource/MaintenanceResource.java | 2 +- swagger.json | 8 ++++---- 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 { 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": [ -- cgit v1.2.3