This Java library provides methods and beans to communicate with the SC4Devotion Lot Exchange API. It is currently compatible with the v4 version of the LEX API, provided you use a version higher than v4.0.0.
Installation is easy using the Maven Central Repository. Just add the following snippet to your pom.xml
<dependencies>
...
<dependency>
<groupId>net.caspervg.lex4j</groupId>
<artifactId>LEX4J</artifactId>
<version>4.1.0</version>
</dependency>
...
</dependencies>
If you run the tests, make sure to rename auth_example.properties to auth.properties and fill in a username.
- Initial release
- Improved documentation for the search filters
- Switched to v2 LEX API
- Add support for new search query
- Improved handling of incorrect search filter parameters, will now throw a FilterParameterException if you supply an incorrect parameter type
- Further improved documentation for the search filters
- Fixed a bug that caused downloads in the Lot bean to always stay at 0
- Further improved search filter documentation
- Switched to v3 LEX API
- Add support new search dependency results
- Add support for full urls for images, etc.
- Added generic methods that can return any Class extending one of the LEX API beans. This is useful if you want to add extra functionality to for example the User class, but still want easy JSON deserialisation.
- Made fields in all beans
protected
instead ofprivate
so that overriding classes can edit them easily, as there are no setters.
- Undo generic method support. Seldom used, rarely useful.
- Use Jackson instead of GSON for (de)serialization. GSON didn't natively support the API v4 datetime format (ISO 8601).
- Add support for LEX API v4 and the "extra info" parameters for dependencies, comments, votes and users
- Add support for recursive dependencies. Allows flatting them as well using the new DependencyList#asSet() and #asList() methods
Documentation (Javadoc) is available at http://caspervg.net/public/sc4d-lex4j
Feel free to contribute ideas, suggestions and code.