Simple PHP api for SnipeIT app. Not maintained anymore; check out BinStack instead: https://source.netsyms.com/Business/BinStack and https://netsyms.biz/binstack
您最多能選擇 25 個主題 主題必須以字母或數字為開頭,可包含連接號「-」且最長為 35 個字元。
Skylar Ittner 96a71bfa42 Add README.md 8 年前
nbproject Add README.md 8 年前
vendor Add README.md 8 年前
README.md Add README.md 8 年前
composer.json Add README.md 8 年前
composer.lock Add README.md 8 年前
database.php Add README.md 8 年前
dieifnotloggedin.php Add README.md 8 年前
getitem.php Add README.md 8 年前
getlocation.php Add README.md 8 年前
getmodel.php Add README.md 8 年前
getstatus.php Add README.md 8 年前
login.php Add README.md 8 年前
readfrom.php Add README.md 8 年前
required.php Add README.md 8 年前
search.php Add README.md 8 年前
updateitem.php Add README.md 8 年前

README.md

Snipe-IT API

This is a simple API for accessing a Snipe-IT database.

Installing

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.

Troubleshooting

If you have a problem:

  • Check you have the full path (with trailing slash) entered into the app.
  • Install PHP Composer and run composer install.
  • 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.