||5 years ago|
|nbproject||5 years ago|
|vendor||5 years ago|
|README.md||5 years ago|
|composer.json||5 years ago|
|composer.lock||5 years ago|
|database.php||5 years ago|
|dieifnotloggedin.php||5 years ago|
|getitem.php||5 years ago|
|getlocation.php||5 years ago|
|getmodel.php||5 years ago|
|getstatus.php||5 years ago|
|login.php||5 years ago|
|readfrom.php||5 years ago|
|required.php||5 years ago|
|search.php||5 years ago|
|updateitem.php||5 years ago|
This is a simple API for accessing a Snipe-IT database.
Installation is easy. Assuming you have a web server with PHP and a suitable database driver, simply put all the files in this repo in a web-accessible folder.
Edit the file database.php and add the connection settings for your Snipe-IT database.
On the mobile app, enter the full address for the API server. Include
http(s):// and the trailing slash.
The API can be put in a subfolder of the main Snipe-IT installation, but it can also be setup on any server that can reach the database.
If you have a problem:
- Check you have the full path (with trailing slash) entered into the app.
- Install PHP Composer and run
- Check you can access the API from a computer. Go to the API folder/login.php. You should see JSON with an error message "Missing username.". If you see a different error, or there is no error, double-check the database settings, and try installing Composer dependencies.
- If none of these solutions work, open an issue.