Images

List of Endpoints

API Reference

images.image_upload()[source]

Endpoint for just image upload.

Expects form data fields “post_id”, “ext” and “content-type” which are used to save the output name. Expects image to be uploaded as multipart/file-upload and accessible under the name “image”.

Returns:
  • 204 - No content.
  • 400 - Missing data field.
  • 5XX - Request too large.
images.image_upload_with_overlay()[source]

Endpoint for image + overlay upload. Has an additional form data field “overlay” that is required.

Returns:
  • 204 - No content.
  • 400 - Missing data field.
  • 5XX - Request too large.
images.setup_routing(app: flask.app.Flask)[source]

Basic routing function for flask.

Parameters:app (flask.Flask) – Your flask application object.