Apama 10.3.1 | Apama Documentation | Connecting Apama Applications to External Components | Standard Connectivity Plug-ins | The HTTP Server Transport Connectivity Plug-in | Serving static files
 
Serving static files
The HTTP server allows you to serve static files from disk without events being sent to correlator. You can list the static file URI which will be available using a GET request, and it will be served by that file.
You must list static files individually in the configuration file, and you must provide the MIME type of the file being served. Optionally, you can also provide the charset type.
staticFiles:
/swagger.json:
file: ${PARENT_DIR}/swagger.json
contentType: application/json
charset: utf-8

Copyright © 2013-2019 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.