View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Support us on Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - API --- Not found - ProjeQtOr
 

API --- Not found

More
28 Jul 2017 17:03 #1 by Wisou
API --- Not found was created by Wisou
Hi,

I'am trying to catch datas from API REST only GET for the moment.
.htaccess and .htpasswd files are OK
With this URL 'http://myserver/api', i see trace in projeqtor log after authentification and i see this message :

{"error":"invalid API query", "message":"Possible values are : GET ../api/{objectClass}/{objectId} ../api/{objectClass}/all ../api/{objectClass}/filter/{filterId} ../api/{objectClass}/search/criteria1/criteria2/... (criteria as sql where clause) ../api/{objectClass}/updated/{YYYYMMDDHHMNSS}/{YYYYMMDDHHMNSS} PUT ../api/{objectClass} with data containing json description of items POST ../api/{objectClass} with data containing json description of items DELETE ../api/{objectClass} with data containing json id of items"}

But if i'am trying with this url for exemple http://myserver/api/Project/All no authentification and only this message :

"Not Found
The requested URL /api/Project/All was not found on this server."

Can you help me please ?

Br
Wisou

Please Log in or Create an account to join the conversation.

More
31 Jul 2017 11:20 #2 by babynus
Replied by babynus on topic API --- Not found
Is "http://myserver/" directly pointing to projeqtor web directory ? (so you have a virtualhost ?)

You must configure apache to allow overwrinting features from .htaccess for api folder.

Babynus
Administrator of ProjeQtOr web site

Please Log in or Create an account to join the conversation.

More
31 Jul 2017 11:21 #3 by babynus
Replied by babynus on topic API --- Not found
Also try http://myserver/api/Project/all

Babynus
Administrator of ProjeQtOr web site

Please Log in or Create an account to join the conversation.

More
01 Aug 2017 12:07 - 04 Aug 2017 09:24 #4 by Wisou
Replied by Wisou on topic API --- Not found
I try this "http://projeqtor.****.net/api/Project/All" but no result

Extract .htaccess in API folder

<IfModule mod_rewrite.c>
RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?uri=$1
</IfModule>


AuthUserFile "/var/www/projeqtor/api/.htpasswd"
AuthName "ProjeQtOr"
AuthType Basic
require valid-user

Extract apache2.conf / 'www' contain Projeqtor :

<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>

# AccessFileName: The name of the file to look for in each directory
# for additional configuration directives. See also the AllowOverride
# directive.
#
AccessFileName .htaccess

#
# The following lines prevent .htaccess and .htpasswd files from being
# viewed by Web clients.
#
<FilesMatch "^\.ht">
Require all denied
</FilesMatch>
Last edit: 04 Aug 2017 09:24 by babynus.

Please Log in or Create an account to join the conversation.

More
04 Aug 2017 00:23 #5 by babynus
Replied by babynus on topic API --- Not found
Config seem correct at first glance.

I try this "http://projeqtor.****.net/api/Project/All" but no result

it seems you have virtualhost.
Check its configuration.

Babynus
Administrator of ProjeQtOr web site

Please Log in or Create an account to join the conversation.

More
04 Aug 2017 09:26 #6 by babynus
Replied by babynus on topic API --- Not found

I try this "http://projeqtor.****.net/api/Project/All" but no result

What is not result ?
blank page ?
error ?
beautiful "no result" page ?
else ?

Babynus
Administrator of ProjeQtOr web site

Please Log in or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.045 seconds

Cookies settings

×

Functional Cookies

Ce site utilise des cookies pour assurer son bon fonctionnement et ne peuvent pas être désactivés de nos systèmes. Nous ne les utilisons pas à des fins publicitaires. Si ces cookies sont bloqués, certaines parties du site ne pourront pas fonctionner.

Session

Please login to see yours activities!

Other cookies

Ce site web utilise un certain nombre de cookies pour gérer, par exemple, les sessions utilisateurs.