get own swagger api url from js