feat(api): add comprehensive API collection for NowChess microservices
Build & Test (NowChessSystems) TeamCity build finished

This commit is contained in:
2026-04-30 18:56:48 +02:00
parent 77e498a326
commit 3844456f0c
74 changed files with 1395 additions and 1 deletions
+24
View File
@@ -0,0 +1,24 @@
meta {
name: Register
type: http
seq: 1
}
http {
method: POST
url: {{accountBaseUrl}}/account
body: json
auth: none
}
headers {
Content-Type: application/json
}
body:json {
{
"username": "player1",
"email": "player1@example.com",
"password": "securepassword"
}
}
+23
View File
@@ -0,0 +1,23 @@
meta {
name: Login
type: http
seq: 2
}
http {
method: POST
url: {{accountBaseUrl}}/account/login
body: json
auth: none
}
headers {
Content-Type: application/json
}
body:json {
{
"username": "player1",
"password": "securepassword"
}
}
@@ -0,0 +1,16 @@
meta {
name: Get Current User
type: http
seq: 3
}
get {
url: {{accountBaseUrl}}/account/me
body: none
auth: none
}
headers {
Authorization: Bearer {{token}}
Accept: application/json
}
@@ -0,0 +1,15 @@
meta {
name: Get Public Profile
type: http
seq: 4
}
http {
method: GET
url: {{accountBaseUrl}}/account/{{username}}
auth: none
}
headers {
Accept: application/json
}
+23
View File
@@ -0,0 +1,23 @@
meta {
name: Create Bot
type: http
seq: 5
}
http {
method: POST
url: {{accountBaseUrl}}/account/bots
body: json
auth: none
}
headers {
Content-Type: application/json
Authorization: Bearer {{token}}
}
body:json {
{
"name": "ChessBot-1"
}
}
+16
View File
@@ -0,0 +1,16 @@
meta {
name: List Bots
type: http
seq: 6
}
get {
url: {{accountBaseUrl}}/account/bots
body: none
auth: none
}
headers {
Authorization: Bearer {{token}}
Accept: application/json
}
@@ -0,0 +1,23 @@
meta {
name: Update Bot Name
type: http
seq: 7
}
http {
method: PUT
url: {{accountBaseUrl}}/account/bots/{{botId}}
body: json
auth: none
}
headers {
Content-Type: application/json
Authorization: Bearer {{token}}
}
body:json {
{
"name": "ChessBot-Updated"
}
}
@@ -0,0 +1,15 @@
meta {
name: Rotate Bot Token
type: http
seq: 8
}
http {
method: POST
url: {{accountBaseUrl}}/account/bots/{{botId}}/rotate-token
auth: none
}
headers {
Authorization: Bearer {{token}}
}
+15
View File
@@ -0,0 +1,15 @@
meta {
name: Delete Bot
type: http
seq: 9
}
http {
method: DELETE
url: {{accountBaseUrl}}/account/bots/{{botId}}
auth: none
}
headers {
Authorization: Bearer {{token}}
}
@@ -0,0 +1,15 @@
meta {
name: Get Official Bots
type: http
seq: 10
}
http {
method: GET
url: {{accountBaseUrl}}/account/official-bots
auth: none
}
headers {
Accept: application/json
}
+15
View File
@@ -0,0 +1,15 @@
meta {
name: Ban User
type: http
seq: 11
}
http {
method: POST
url: {{accountBaseUrl}}/account/{{userId}}/ban
auth: none
}
headers {
Authorization: Bearer {{adminToken}}
}
+15
View File
@@ -0,0 +1,15 @@
meta {
name: Unban User
type: http
seq: 12
}
http {
method: POST
url: {{accountBaseUrl}}/account/{{userId}}/unban
auth: none
}
headers {
Authorization: Bearer {{adminToken}}
}
+4
View File
@@ -0,0 +1,4 @@
meta {
name: account
seq: 1
}