Add docs
authorRoman Chvanikov <chvanikoff@pm.me>
Sat, 9 May 2020 11:32:08 +0000 (14:32 +0300)
committerRoman Chvanikov <chvanikoff@pm.me>
Sat, 9 May 2020 11:32:08 +0000 (14:32 +0300)
CHANGELOG.md
docs/API/admin_api.md

index d469793f0efd114ea64463748e44903ad4b8c898..f2c9e106ef692853a048294b08dbb2c0c449747c 100644 (file)
@@ -8,9 +8,18 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
 ### Changed
 <details>
   <summary>API Changes</summary>
+
 - **Breaking:** Emoji API: changed methods and renamed routes.
 </details>
 
+<details>
+  <summary>Admin API Changes</summary>
+
+- Status visibility stats: now can return stats per instance.
+
+- Mix task to refresh counter cache (`mix pleroma.refresh_counter_cache`)
+</details>
+
 ### Removed
 - **Breaking:** removed `with_move` parameter from notifications timeline.
 
@@ -76,6 +85,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
 2. Run database migrations (inside Pleroma directory):
   - OTP: `./bin/pleroma_ctl migrate`
   - From Source: `mix ecto.migrate`
+3. Reset status visibility counters (inside Pleroma directory):
+  - OTP: `./bin/pleroma_ctl refresh_counter_cache`
+  - From Source: `mix pleroma.refresh_counter_cache`
 
 
 ## [2.0.2] - 2020-04-08
index c455047cc1fa529996021571ec8e68a17f1a11c1..fa74e7460629d3878cf09d41cd3db2ccb4071f5a 100644 (file)
@@ -1096,6 +1096,10 @@ Loads json generated from `config/descriptions.exs`.
 
 ### Stats
 
+- Query Params:
+  - *optional* `instance`: **string** instance hostname (without protocol) to get stats for
+- Example: `https://mypleroma.org/api/pleroma/admin/stats?instance=lain.com`
+
 - Response:
 
 ```json