From f02b4e34713b30e5bcf127f9fa040a2d7832afc1 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Wed, 7 Oct 2020 14:07:24 +0200 Subject: API: Update API version to 2.2.0 Signed-off-by: Florian Pritz --- NEWS | 4 ++-- application/controllers/api/v2/api_info.php | 2 +- doc/api.md | 4 ++-- doc/api/file.md | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/NEWS b/NEWS index 3bff7a9d8..b0194fe61 100644 --- a/NEWS +++ b/NEWS @@ -1,8 +1,8 @@ This file lists major, incompatible or otherwise important changes, you should look at it after every update. NEXT - - api: add `minimum-id-length` post parameter to `file/create_multipaste` and - `file/upload` endpoints + - API 2.2.0: Add `minimum-id-length` post parameter to + `file/create_multipaste` and `file/upload` endpoints 3.4.5 2020-06-12 - Fix image orientation/rotation when viewing images with the diff --git a/application/controllers/api/v2/api_info.php b/application/controllers/api/v2/api_info.php index 8d2bdf6dc..bd1d63590 100644 --- a/application/controllers/api/v2/api_info.php +++ b/application/controllers/api/v2/api_info.php @@ -11,6 +11,6 @@ namespace controllers\api\v2; class api_info extends \controllers\api\api_controller { static public function get_version() { - return "2.1.1"; + return "2.2.0"; } } diff --git a/doc/api.md b/doc/api.md index 30dfc77fb..3484acd2b 100644 --- a/doc/api.md +++ b/doc/api.md @@ -147,8 +147,8 @@ These are the most common errors that can be returned by any API call. | Version | Endpoint | Note | | ------- | -------- | ---- | -| NEXT | file/create_multipaste | Add paramter ''minimum-id-length'' to control the length of generated content id | -| NEXT | file/upload | Add parameter ''minimum-id-length'' to control the length of generated content id | +| 2.2.0 | file/create_multipaste | Add paramter ''minimum-id-length'' to control the length of generated content id | +| 2.2.0 | file/upload | Add parameter ''minimum-id-length'' to control the length of generated content id | | 2.1.1 | file/history | Empty objects (values of `items` and `multipaste_items`) are now always returned as {}. Before they were returned as [] | | 2.1.1 | file/delete | Empty objects (values of `errors` and `deleted`) are now always returned as {}. Before they were returned as [] | | 2.1.0 | file/history | Add ''item.thumbnail'' | diff --git a/doc/api/file.md b/doc/api/file.md index ceb9aa27f..0dcf6a8ad 100644 --- a/doc/api/file.md +++ b/doc/api/file.md @@ -105,7 +105,7 @@ Example: | Version | Change | | ------- | ------ | -| NEXT | Add parameter ''minimum-id-length'' to control the length of generated content id | +| 2.2.0 | Add parameter ''minimum-id-length'' to control the length of generated content id | ## file/history @@ -304,4 +304,4 @@ Example: | ------- | ------ | | 1.1.0 | Add url key to response | | 1.3.0 | Change required access level from ''apikey'' to ''basic'' | -| NEXT | Add paramter ''minimum-id-length'' to control the length of generated content id | +| 2.2.0 | Add paramter ''minimum-id-length'' to control the length of generated content id | -- cgit v1.2.3-24-g4f1b