API to store and categorize links of bus photos.
All methods accept the application/json content type. All non-GET methods return a non-zero number if it has modified the database.
Get all photos.
Get a specific photo by its ID.
Get all photos of a specific bus model.
Add a new photo. The required fields are:
fleetnum: fleet numberroute: bus route (optional)model: bus modelyear: year of manufactureurl: URL of the photo
Update the fields of a specific photo by its ID (see above for required fields).
Update or remove (replace with a placeholder) the URL of a specific photo by its ID. The required field is url.
Delete a specific photo by its ID.