# Changelog

## BETA - (not launched yet)

The whole website has been **completely** rewritten and is now using better suited technologies for our use-cases. The full code that runs our new website is open-source on [GitHub](https://github.com/LoLWallpapers).

* API launched in BETA version.

## ALPHA - 2018-04-25

This will be probably the last version (ALPHA) for this API because we plan to write a new website's core (to completly get rid of WordPress) using a framework than using a CMS this time. This will give us the ability to add more features to the website (like allowing anyone to upload wallpapers and more). This means that only security fixes, bug fixes and minor improvements will be made.

* The API core and its database have been rewritten to fix some bugs, handle new features and improve the overall performance.
* Fixed the cache stampede bug.
* Caching has been disabled for the `"?orderby=rand"` query parameter.
* Few modifications have been made to the JSON response regarding its structure:
  * Information related to the request have been put together in an object called `"meta"`.\
    This object contains the following properties : `"success"` and `"msg"`.
  * The `"pagination"` object has been added to the response in the "`/wallpapers`" endpoint.\
    This object contains the following properties : `"limit"`, `"page"` and `"max_num_pages"`.
  * `"modified"` property has been renamed to `"last_modified"` in the `"/wallpapers"` endpoint.
  * `"category"` and `"artist"` object have been renamed to `"categories"` and `"artists"` in the `"/wallpapers"` endpoint.
* It's now possible to pass an array of IDs to the following query parameters:
  * `"category_ID"`.
  * `"artist_ID"`.\
    Example: `?category_ID[]=1&category_ID[]=2`
* `"/comments"` endpoint has been replaced by the following endpoint :
  * `"/wallpapers/:ID/comments"`. It's not possible to get a list of all comments on the website anymore.

## ALPHA - 2017-06-04

* API launched in ALPHA version.
