diff --git a/nise-backend/src/main/kotlin/com/nisemoe/nise/search/score/ScoreSearchService.kt b/nise-backend/src/main/kotlin/com/nisemoe/nise/search/score/ScoreSearchService.kt
index 64ee443..dfeb354 100644
--- a/nise-backend/src/main/kotlin/com/nisemoe/nise/search/score/ScoreSearchService.kt
+++ b/nise-backend/src/main/kotlin/com/nisemoe/nise/search/score/ScoreSearchService.kt
@@ -45,6 +45,7 @@ class ScoreSearchService(
USERS.COUNT_100,
USERS.COUNT_50,
USERS.COUNT_MISS,
+ USERS.IS_BANNED,
// Scores fields
SCORES.ID,
diff --git a/nise-frontend/src/app/api/api.component.html b/nise-frontend/src/app/api/api.component.html
index 2779cbb..c915e88 100644
--- a/nise-frontend/src/app/api/api.component.html
+++ b/nise-frontend/src/app/api/api.component.html
@@ -30,6 +30,18 @@
curl -H "X-NISE-API: 20240218" -H "Accept: application/json" -H "Content-Type: application/json" -d '{"queries":[{"predicates":[{"field":{"name":"user_rank","type":"number"},"operator":{"operatorType":"<","acceptsValues":"any"},"value":"50"},{"field":{"name":"ur","type":"number"},"operator":{"operatorType":"<","acceptsValues":"any"},"value":"120"}],"logicalOperator":"AND"}],"sorting":{"field":"user_id","order":"ASC"},"page":1}' https://nise.moe/api/search
+
@@ -47,6 +59,18 @@
curl -H "X-NISE-API: 20240218" -H "Accept: application/json" -H "Content-Type: application/json" -d '{"queries":[{"predicates":[{"field":{"name":"rank","type":"number"},"operator":{"operatorType":">","acceptsValues":"any"},"value":"10"},{"field":{"name":"username","type":"string"},"operator":{"operatorType":"=","acceptsValues":"any"},"value":"degenerate"}],"logicalOperator":"AND"}],"sorting":{"field":"user_id","order":"ASC"},"page":1}' https://nise.moe/api/search-user
+
@@ -61,6 +85,15 @@
curl -H "X-NISE-API: 20240218" -H "Accept: application/json" https://nise.moe/api/score/3808640439
+
+
@@ -76,6 +109,14 @@
curl -H "X-NISE-API: 20240218" -H "Accept: application/json" https://nise.moe/api/score/3808640439/replay
+
@@ -104,6 +145,19 @@
curl -X POST -H "X-NISE-API: 20240218" -H "Accept: application/json" -H "Content-Type: application/json" -d '{"userId": 8184689}' https://nise.moe/api/user-details
+
@@ -137,6 +191,13 @@
curl -H "X-NISE-API: 20240218" -H "Accept: application/json" https://nise.moe/api/suspicious-scores
+
@@ -152,6 +213,13 @@
curl -H "X-NISE-API: 20240218" -H "Accept: application/json" https://nise.moe/api/similar-replays
+
@@ -169,6 +237,18 @@
curl -X POST -H "X-NISE-API: 20240218" -H "Accept: application/json" -H "Content-Type: application/json" -d '{"page": 1}' https://nise.moe/api/banlist
+
diff --git a/nise-frontend/src/app/api/api.component.ts b/nise-frontend/src/app/api/api.component.ts
index 81b9604..38c2b46 100644
--- a/nise-frontend/src/app/api/api.component.ts
+++ b/nise-frontend/src/app/api/api.component.ts
@@ -6,6 +6,7 @@ import {
CodeWithCopyButtonComponent
} from "../../corelib/components/code-with-copy-button/code-with-copy-button.component";
import {RouterLink} from "@angular/router";
+import {ApiTryItComponent} from "../../corelib/components/api-try-it/api-try-it.component";
@Component({
selector: 'app-api',
@@ -18,11 +19,15 @@ import {RouterLink} from "@angular/router";
NgForOf,
NgIf,
CodeWithCopyButtonComponent,
- RouterLink
+ RouterLink,
+ ApiTryItComponent
],
templateUrl: './api.component.html',
styleUrl: './api.component.css'
})
export class ApiComponent {
+ placeholderSearchValue = "{\"queries\":[{\"predicates\":[{\"field\":{\"name\":\"user_rank\",\"type\":\"number\"},\"operator\":{\"operatorType\":\"<\",\"acceptsValues\":\"any\"},\"value\":\"50\"},{\"field\":{\"name\":\"ur\",\"type\":\"number\"},\"operator\":{\"operatorType\":\"<\",\"acceptsValues\":\"any\"},\"value\":\"120\"}],\"logicalOperator\":\"AND\"}],\"sorting\":{\"field\":\"user_id\",\"order\":\"ASC\"},\"page\":1}";
+ placeholderUserSearchValue = "{\"queries\":[{\"predicates\":[{\"field\":{\"name\":\"rank\",\"type\":\"number\"},\"operator\":{\"operatorType\":\"<\",\"acceptsValues\":\"any\"},\"value\":\"10\"},{\"field\":{\"name\":\"username\",\"type\":\"string\"},\"operator\":{\"operatorType\":\"=\",\"acceptsValues\":\"any\"},\"value\":\"degenerate\"}],\"logicalOperator\":\"AND\"}],\"sorting\":{\"field\":\"user_id\",\"order\":\"ASC\"},\"page\":1}";
+
}
diff --git a/nise-frontend/src/app/app.component.html b/nise-frontend/src/app/app.component.html
index 6bc3181..c1f0f17 100644
--- a/nise-frontend/src/app/app.component.html
+++ b/nise-frontend/src/app/app.component.html
@@ -11,7 +11,7 @@
./suspicious-scores
./stolen-replays
./advanced-search
- ./contribute <3
+ ./contribute ♥