passwords icon indicating copy to clipboard operation
passwords copied to clipboard

Change default value of 'base_url' in the postman collection

Open jekru opened this issue 4 years ago • 1 comments
trafficstars

In the postman collection, the default value of the variable base_url is https://localhost/apps/passwords. If I change localhost to mydomain.tld, every api endpoint worked fine for me except the endpoint POST /api/1.0/share/create. It returns status 405 Method Not Allowed.

image

I shared a password manually with another user in the browser and saw that the api endpoint used is POST https://mydomain.tld/index.php/apps/passwords/api/1.0/share/create

Feature Description

Change base_url to https://localhost/index.php/apps/passwords in the postman collection. The other api endpoints I tested are still working and POST https://mydomain.tld/index.php/apps/passwords/api/1.0/share/create doesn't return an http error 405 anymore.

"variable": [
  {
    "key": "base_url",
-   "value": "https://localhost/apps/passwords"
+   "value": "https://localhost/index.php/apps/passwords"
  },
  {
    "key": "http_auth_user",
    "value": "admin"
  },
  ...
]

jekru avatar Sep 11 '21 06:09 jekru

Could someone change the label to 'documentation'?

jekru avatar Sep 11 '21 06:09 jekru

done

marius-wieschollek avatar Jan 24 '23 23:01 marius-wieschollek