New Moscow Rest Requests

New Moscow Rest Requests

/load_image_from_file

method: POST

input: field "image" and image source
output: {"$oid": {"type": "String", "description": "string representation of added image ObjectId"}}

example: curl -F "image=@/path/to/image" http://nm-admin/load_image_from_file 

/load_image_by_url

method: POST, GET

input: field "image_url" and url of image being added
output: {"$oid": {"type": "String", "description": "string representation of added image ObjectId"}}

example: curl -F "image_url=image url" http://nm-admin/load_image_by_url 

/remove_route

roles: admin

method: GET

input: field "routeId" and id of route
output: ""

example: curl http://nm-admin/remove_route?routeId=route_id