Skip to content

Commit

Permalink
Rename maintenances to maintenance
Browse files Browse the repository at this point in the history
  • Loading branch information
tananaev committed Nov 12, 2018
1 parent cad845d commit 2055825
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/org/traccar/api/resource/MaintenanceResource.java
Expand Up @@ -24,7 +24,7 @@
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> {
Expand Down
8 changes: 4 additions & 4 deletions swagger.json
Expand Up @@ -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"
Expand Down Expand Up @@ -1401,7 +1401,7 @@
}
}
},
"/maintenances/{id}": {
"/maintenance/{id}": {
"put": {
"summary": "Update a Maintenance",
"parameters": [
Expand Down

0 comments on commit 2055825

Please sign in to comment.