A modern and easy-to-use library for interacting with the Snipe-IT API written in Java.
- Asynchronous API interactions: Utilizes
CompletableFuture
s for non-blocking API calls, enabling efficient handling of concurrent operations. - Simplified error handling: Leverages
Optional
s to handle null values gracefully, reducing boilerplate code and simplifying debugging. - No new frameworks required: Built with standard Java classes to minimize the learning curve and integration complexity, ideal for projects looking to avoid dependency on heavy frameworks.
- Accessibility for all skill levels: Designed to be straightforward for developers of any skill level.
Javasnipe is a work in progress. See below for what is, and is not implemented.
- Assets (
/hardware
, fully implemented)
- Custom fields (able to get/set data for assets, cannot use API endpoint)
- Companies (missing most fields, cannot use API endpoint)
- Locations (missing most fields, cannot use API endpoint)
- People (
/users
, missing most fields, cannot use API endpoint) - Status Labels (
statuslabels
, missing most fields, cannot use API endpoint) - Models (missing most fields, cannot use API endpoint)
- Licenses (missing most fields, cannot use API endpoint)
- Categories (missing most fields, cannot use API endpoint)
- Manufacturers (missing most fields, cannot use API endpoint)
- Suppliers (missing most fields, cannot use API endpoint)
- Fieldsets (
/fieldsets
) - Accessories (
/accessories
) - Consumables (
/consumables
) - Components (
/components
) - Asset Maintences (
/maintenacnes
) - Departments (
/departments
) - Groups (
/groups
) - Settings (
/settings/*
) - Reports (
/reports/activity
)
Many objects within the Snipe-IT API have different variants: one variant is used when the object is assigned to other objects, and another is used when the object is configured and created.
For example, the Company object assigned to an Asset is different from the Company object used in the configuration.
API wrappers, like Javasnipe, have two options to handle this:
- Combine both variants into one JavaBean, or
- Split them into separate JavaBeans.
Javasnipe chose option B because it is more straightforward to work with and develop. The objects assigned to assets, people, etc., are named like Company, while the configuration objects are named like ConfigurableCompany.