marius-wieschollek / passwords

A simple, yet feature rich password manager for Nextcloud
GNU Affero General Public License v3.0
215 stars 45 forks source link

Change default value of 'base_url' in the postman collection #437

Closed jekru closed 1 year ago

jekru commented 3 years ago

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 commented 3 years ago

Could someone change the label to 'documentation'?

marius-wieschollek commented 1 year ago

done