diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2018-11-12 15:18:14 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2018-11-12 15:18:14 +1300 |
commit | 2055825debbb7380d4f28377e01d7c31d8c18e08 (patch) | |
tree | a0d5666b7dc54f48f76754ed33eb2c9cae3346d9 | |
parent | cad845deb903fa84549845246f12927b46709e16 (diff) | |
download | trackermap-server-2055825debbb7380d4f28377e01d7c31d8c18e08.tar.gz trackermap-server-2055825debbb7380d4f28377e01d7c31d8c18e08.tar.bz2 trackermap-server-2055825debbb7380d4f28377e01d7c31d8c18e08.zip |
Rename maintenances to maintenance
-rw-r--r-- | src/org/traccar/api/resource/MaintenanceResource.java | 2 | ||||
-rw-r--r-- | 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<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": [ |