Files
jsmr/JSMR.Api/JSMR.Api.http
Brian Bicknell 9f30ef446a
Some checks failed
ci / build-test (push) Has been cancelled
ci / publish-image (push) Has been cancelled
Added authenication/authorization. Refactored api startup.
2026-02-16 00:20:02 -05:00

81 lines
1.3 KiB
HTTP

@host = http://localhost:5226
@contentType = application/json
### Login
POST {{host}}/auth/login
Content-Type: {{contentType}}
{
"Username": "brister",
"Password": "password"
}
### Logout
POST {{host}}/auth/logout
Content-Type: {{contentType}}
{
}
### Get current user
GET {{host}}/api/me
Content-Type: {{contentType}}
{
}
### Search tags by name
POST {{host}}/api/tags/search
Content-Type: {{contentType}}
{
"options": {
"criteria": {
"name": "Heart"
},
"pageNumber": 1,
"pageSize": 10
}
}
###
### Search voice works with circle filter
POST {{host}}/api/voiceworks/search
Content-Type: {{contentType}}
{
"options": {
"criteria": {
"circleStatus": "Favorited",
"releaseDateStart": "2023-01-01",
"releaseDateEnd": "2024-12-31",
"locale": "English",
"supportedLanguages": ["English"]
},
"pageNumber": 1,
"pageSize": 20,
"sortOptions": [
{ "field": "Downloads", "direction": "Descending" }
]
}
}
### Search voice works with keywords
POST {{host}}/api/voiceworks/search
Content-Type: {{contentType}}
{
"options": {
"criteria": {
"keywords": "maid harem"
},
"pageNumber": 1,
"pageSize": 100,
"sortOptions": [
{ "field": "Downloads", "direction": "Descending" }
]
}
}