title: How to construct image url from Axomic OpenAsset REST API
body: <p>I'd like to get the URL for an image that is stored in our <a href="http://www.axomic.com/" rel="nofollow">OpenAsset</a> server. I can curl a request to get the file's information:</p>
  
  <p><code>curl -u myUsername:myPassword -X GET http://our.IP.address//REST/1/Files/11 | json_pp</code></p>
  
  <p>and I can reverse engineer the url that their front end uses to show me an image:</p>
  
  <p><code>our.IP.address/Serve/DirectImage/imageId.7235-defaultImageSizeId.1</code></p>
  
  <p>But trying to do some kind of string format to make the url feels hacky. E.g.:</p>
  
  <p><code>"our.IP.address/Serve/DirectImage/imageId.{}-defaultImageSizeId.1".format(theImageID)</code></p>
  
  <p>Is there a way get a url directly from the rest request? Is this the correct way to do it?</p>
  
  <p>The <a href="http://help.axomic.com/07_Technical_Stuff/APIs_and_Integration/REST_API" rel="nofollow">OpenAsset REST API</a> is in beta still, so its documentation is surprisingly good given that fact.</p>