-
Mountpoint:
/api/*
-
Accepts:
application/json
-
Returns:
application/json
Get a list of pending murals.
Local.
Path Parameters:
type
: (String) Eitherartist
orviewer
.
HTTP Status 200:
Pending Murals list returned.
{
"length": 1,
"list": [
{
"title": "My Mural",
"desc": "My description",
"artist": "Artist name, contact info",
"email": "[email protected]",
"images": ["https://image.com/myImage"],
"reject": false,
"notes": "admin notes"
}
]
}
HTTP Status 400:
Bad request.
HTTP Status 500:
{
"error": "..."
}
msg
: (String) Error message from database API.
Get an individual pending mural.
Local.
Pending Mural object is returned.
Upload a pending mural to the list.
Local.
Path Parameters:
type
: (String) Eitherartist
orviewer
.id
: (String) Pending Mural object ID.
Note that reject
and notes
fields are not required, they will be added if they are missing. Fields that are not described in the Pending Mural schema will not be saved into the database.
HTTP Status 201:
Pending mural created.
HTTP Status 400:
Bad request; invalid Pending Mural object.
Update pending mural object.
Local. Only the uploader or an admin.
Path Parameters:
type
: (String) Eitherartist
orviewer
.id
: (String) Pending Mural object ID.
HTTP Status 200:
Pending mural modified.
HTTP Status 400:
Bad request; invalid Pending Mural object.
HTTP Status 403:
User is not uploader or not an admin.
Get the list of active murals.
HTTP Status 200:
{
"murals": [ ... ]
}
Get an individual Active Mural.
HTTP Status 200:
Returns the requested Active Mural object.
HTTP Status 400:
Bad request.
HTTP status 500:
Database error.
Update mural data.
id
: (String) Active Mural object ID.
HTTP Status 200:
Successfully updated. Returns newly updated Active Mural object.
HTTP Status 400:
Bad Request; Invalid Active Mural object.
HTTP Status 404:
Mural with id
not found.