-
Notifications
You must be signed in to change notification settings - Fork 736
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Api App #2624
Comments
SSL with App code token is auth with static token, no need to try to generate dynamic token with user/pass auth. Example to get list of sections with app code token:
|
Its not working for me :( curl -X GET https://ipam/api/grab/sections/ --header "token: y8e7INqJ6uFyFOhaX6kZFwvQptTjWsOq" -i -k Not FoundThe requested URL /api/grab/sections was not found on this server. Apache/2.4.29 (Ubuntu) Server at ipam Port 443 |
Hm, check app-id is correct and apache mod_rewrite is enabled |
Its enabled :/ /etc/apache2/mods-enabled # a2enmod rewrite any Ideas? |
Maybe prettify links setting is also required, check your administration settings. |
Pretty Links is allready enabled. The Vhost settings are correct...I try to find something in logs |
Check via this guide also https://phpipam.net/documents/prettified-links-with-mod_rewrite/ |
@xennn I had the same issue with making API calls and only getting 404's. I ended up adding the directory to the apache2.conf. The /var/www directory was there, but not the /var/www/html directory (which is where I installed phpipam). Now it's working for me.
|
Thanks fella, I was missing the same. Adding the directory to apache2.conf fixed it for me 👍 |
Hello,
i want to interact with the api.
i create a app and App Code. App Security is SSL with App code token.
But if i try to login without success.
curl -X POST -u user:pass https://ipam/api/grabnetworks/user/ -i -k
<title>404 Not Found</title>HTTP/1.1 404 Not Found
Date: Mon, 08 Jul 2019 12:29:25 GMT
Server: Apache/2.4.29 (Ubuntu)
Content-Length: 306
Content-Type: text/html; charset=iso-8859-1
Not Found
The requested URL /api/grabnetworks/user/ was not found on this server.
Apache/2.4.29 (Ubuntu) Server at ipam Port 443
if i try only with api i get this:
curl -X POST -u user:pass https://ipam/api/ -i -k
HTTP/1.1 400 Bad Request
Date: Mon, 08 Jul 2019 14:13:29 GMT
Server: Apache/2.4.29 (Ubuntu)
Set-Cookie: phpipam=ut7vbptpc4uq5og7uonvb66691; expires=Tue, 09-Jul-2019 14:13:29 GMT; Max-Age=86400; path=/; HttpOnly
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-cache
Pragma: no-cache
Content-Length: 72
Connection: close
Content-Type: application/json; charset=utf-8
{"code":400,"success":false,"message":"Invalid application id","time":0}
Whats wrong here?
...
The text was updated successfully, but these errors were encountered: