Welcome to ProjeQtOr new Forum. We migrated old forum to the new website.
You will find all your posts here, with your usual account.
Just one point : you’ll have to reinitialize your password. Use “Lost password” feature.
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
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.
I try this "http://projeqtor.****.net/api/Project/All" but no result
Extract .htaccess in API folder
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?uri=$1
AuthUserFile "/var/www/projeqtor/api/.htpasswd"
AuthName "ProjeQtOr"
AuthType Basic
require valid-user
Extract apache2.conf / 'www' contain Projeqtor :
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
# 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.
#
Require all denied
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.
I try this "http://projeqtor.****.net/api/Project/All" but no result
What is not result ?
blank page ?
error ?
beautiful "no result" page ?
else ?
Hi,
My config for virtualhost seem OK but no result
ServerName projeqtor.****.net
## Vhost docroot
DocumentRoot "/var/www/projeqtor"
Allow from all
AllowOverride All
## Logging
ErrorLog "/var/log/apache2/projeqtor_error.log"
LogLevel warn
ServerSignature Off
CustomLog "/var/log/apache2/projeqtpor_access.log" combined
I found my problem...rewrite module don't enable
Thx for your help