Polarity's REST API
- 08 Jan 2025
- 1 Minute to read
-
Print
-
DarkLight
Polarity's REST API
- Updated on 08 Jan 2025
- 1 Minute to read
-
Print
-
DarkLight
Article summary
Did you find this summary helpful?
Thank you for your feedback
Polarity has been steadily expanding the ways customers can interact with our powerful search product.
Enabling the Polarity REST API Swagger Docs
The following instructions allow you to enable the Swagger Docs for the Polarity Server’s REST API on Polarity Server/Web 5.4.x/5.4.x and above:
Open the
/app/.env
file for editing.vi /app/.env
Add the following line to the file:
ENABLE_SWAGGER=true
Save and close the file.
Restart the Polarity Server containers.
cd /app && ./down.sh && ./up.sh
Access the Polarity REST API Swagger Docs
To access the Polarity REST API Swagger Docs:
Open a web browser.
Navigate to the following URL:
https://<your.polarity.server.url>/api/docs
Note
Replace
<your.polarity.server.url>
with your Polarity Server’s URL.
Please reach out to Support@Polarity.IO with any questions or if you need any support.
Was this article helpful?