113 lines
2.7 KiB
Plaintext
113 lines
2.7 KiB
Plaintext
# https://auth.band.us/oauth2/authorize?response_type=code&client_id=465368400&redirect_uri=https%3A%2F%2Fband.phares.duckdns.org%2Fapi%2Fv1%2Fband%2Fdisplay
|
|
|
|
# GET http://127.0.0.1:5001/api/v1/band/display?code=
|
|
# ZQAAAYtb-dxVxHIHnZHMEQwRE1JqfysZTiKabqEyTIydwnSA-V_DJ2OqsBJEqsqq_01nuWBk3BUHOyzsp7QVU-rfU5N_GVcw1SZXRwSwAaXkNji5
|
|
# Accept: application/json
|
|
|
|
# HTTP 200
|
|
# [Asserts]
|
|
# header "Content-Type" == "application/json; charset=utf-8"
|
|
# jsonpath "$.result_code" == 1
|
|
|
|
###
|
|
|
|
GET http://127.0.0.1:5001/api/v1/band/bands
|
|
Accept: application/json
|
|
|
|
HTTP 200
|
|
[Asserts]
|
|
header "Content-Type" == "application/json; charset=utf-8"
|
|
jsonpath "$.result_code" == 1
|
|
jsonpath "$.result_data.bands" count > 0
|
|
|
|
###
|
|
|
|
GET http://127.0.0.1:5001/api/v1/band/AAAMyZx70eggR_WmoPaxRi0w/profile
|
|
Accept: application/json
|
|
|
|
HTTP 200
|
|
[Asserts]
|
|
header "Content-Type" == "application/json; charset=utf-8"
|
|
jsonpath "$.result_code" == 1
|
|
|
|
###
|
|
|
|
GET http://127.0.0.1:5001/api/v1/band/AAAMyZx70eggR_WmoPaxRi0w/posts
|
|
Accept: application/json
|
|
|
|
HTTP 200
|
|
[Asserts]
|
|
header "Content-Type" == "application/json; charset=utf-8"
|
|
jsonpath "$.result_code" == 1
|
|
|
|
###
|
|
|
|
GET http://127.0.0.1:5001/api/v1/band/AAAMyZx70eggR_WmoPaxRi0w/post_key_bla/get-post
|
|
Accept: application/json
|
|
|
|
HTTP 200
|
|
[Asserts]
|
|
header "Content-Type" == "application/json; charset=utf-8"
|
|
jsonpath "$.result_code" == 211
|
|
|
|
###
|
|
|
|
GET http://127.0.0.1:5001/api/v1/band/AAAMyZx70eggR_WmoPaxRi0w/post_key_bla/comments
|
|
Accept: application/json
|
|
|
|
HTTP 200
|
|
[Asserts]
|
|
header "Content-Type" == "application/json; charset=utf-8"
|
|
jsonpath "$.result_code" == 211
|
|
|
|
###
|
|
|
|
GET http://127.0.0.1:5001/api/v1/band/AAAMyZx70eggR_WmoPaxRi0w/albums
|
|
Accept: application/json
|
|
|
|
HTTP 200
|
|
[Asserts]
|
|
header "Content-Type" == "application/json; charset=utf-8"
|
|
jsonpath "$.result_code" == 1
|
|
|
|
###
|
|
|
|
GET http://127.0.0.1:5001/api/v1/band/AAAMyZx70eggR_WmoPaxRi0w/photos?photo_album_key=photo_album_key_bla
|
|
Accept: application/json
|
|
|
|
HTTP 200
|
|
[Asserts]
|
|
header "Content-Type" == "application/json; charset=utf-8"
|
|
jsonpath "$.result_code" == 211
|
|
|
|
###
|
|
|
|
GET http://127.0.0.1:5001/api/v1/band/AAAMyZx70eggR_WmoPaxRi0w/permissions?permissions=permissions_bla
|
|
Accept: application/json
|
|
|
|
HTTP 200
|
|
[Asserts]
|
|
header "Content-Type" == "application/json; charset=utf-8"
|
|
jsonpath "$.result_code" == 1
|
|
|
|
###
|
|
|
|
# GET http://127.0.0.1:5001/api/v1/band/AAAMyZx70eggR_WmoPaxRi0w/post
|
|
# Accept: application/json
|
|
|
|
# HTTP 200
|
|
# [Asserts]
|
|
# header "Content-Type" == "application/json; charset=utf-8"
|
|
# jsonpath "$.result_code" == 1
|
|
|
|
###
|
|
|
|
# GET http://127.0.0.1:5001/api/v1/band/AAAMyZx70eggR_WmoPaxRi0w/post_key_bla/post-comment
|
|
# Accept: application/json
|
|
|
|
# HTTP 200
|
|
# [Asserts]
|
|
# header "Content-Type" == "application/json; charset=utf-8"
|
|
# jsonpath "$.result_code" == 1
|
|
|
|
### |