jsonwebserverartifactoryartifactory-query-lang

how can i host a json file on artifactory, can artifcatory be used as a webserver


I want to host a json file on artifactory repo. Currently if i go to the link for the file it directly downloads. But i want it to be shown as a file like a webserver.

Is that possible in artifactory ? Can it work as a webserver for hosting single files ?


Solution

  • In order to achieve your use case, you need to enable content browsing option in your Artifcatory repository. You can find the details here:

    Please be aware this may not work for all the file types(for json it should) as it's based on the mime types configured for the Artifactory application.