Organizr / docker-organizr

Docker image for Organizr
GNU General Public License v3.0
96 stars 12 forks source link

APIv1 works, but APIv2 gives "file not found" #4

Closed DunklerPhoenix closed 4 years ago

DunklerPhoenix commented 4 years ago

Heho If I use /api/v2/auth?group=998 I get File not found. /api/?v1/auth&group=998 instead works without problems.

I resetted the whole nginx configuration of the docker container. (deleting nginx folder in config and then restart) So none of my services are included in the config.

Docker Tag: organizr/organizr:latest Branch ENV: v2-master Organizr Version: 2.0.650

Is v2 not supported at the moment or did I something wrong?

EDIT: I deleted also the www folder to reset organizr completely, but inside the www/organizr/api folder is no v2 folder. It seems to be needed through:

location /api/v2 {
    try_files $uri /api/v2/index.php$is_args$args;
}

Even in repo https://github.com/causefx/Organizr/tree/v2-master/api is no v2 folder. Is this nginx config wrong?

Greetings

GilbN commented 4 years ago

Hi. Have a look at: https://docs.organizr.app/books/setup-features/page/organizr-20--%3E-21-migration-guide

DunklerPhoenix commented 4 years ago

I know this page already. I found ot out now. The v2-master branch does not include the api v2 I switched to v2-develop and it works. Should be noted somewhere

Roxedus commented 4 years ago

It does mention organizr 2.1, which currently only is in the dev branch.

mishac commented 4 years ago

It's not obvious that 2.1 is only in the dev branch in the documentation. Having version numbers for an unreleased branch seems confusing.