mirror of
https://github.com/PretendoNetwork/miiverse-api.git
synced 2026-04-17 14:05:54 -05:00
167 lines
3.7 KiB
JSON
167 lines
3.7 KiB
JSON
{
|
|
"info": {
|
|
"_postman_id": "2bb4ba1f-8e09-44b9-9ad1-5f59455c0ba7",
|
|
"name": "People",
|
|
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
|
|
"_uid": "19511066-2bb4ba1f-8e09-44b9-9ad1-5f59455c0ba7"
|
|
},
|
|
"item": [
|
|
{
|
|
"name": "GET /v1/people",
|
|
"item": [
|
|
{
|
|
"name": "Friends",
|
|
"id": "688f1727-636a-4a41-ba96-a9f52c3fe2b9",
|
|
"protocolProfileBehavior": {
|
|
"disableBodyPruning": true
|
|
},
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [
|
|
{
|
|
"key": "X-Nintendo-ParamPack",
|
|
"value": "{{PP_Splatoon}}",
|
|
"type": "text"
|
|
}
|
|
],
|
|
"url": {
|
|
"raw": "{{DOMAIN}}/v1/people?relation=friend&distinct_pid=1",
|
|
"host": [
|
|
"{{DOMAIN}}"
|
|
],
|
|
"path": [
|
|
"v1",
|
|
"people"
|
|
],
|
|
"query": [
|
|
{
|
|
"key": "relation",
|
|
"value": "friend"
|
|
},
|
|
{
|
|
"key": "distinct_pid",
|
|
"value": "1"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "Following",
|
|
"id": "00b11bd6-25f1-4c16-ac6f-d8f17895ca1c",
|
|
"protocolProfileBehavior": {
|
|
"disableBodyPruning": true
|
|
},
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [
|
|
{
|
|
"key": "X-Nintendo-ParamPack",
|
|
"value": "{{PP_Splatoon}}",
|
|
"type": "text"
|
|
}
|
|
],
|
|
"url": {
|
|
"raw": "{{DOMAIN}}/v1/people?relation=following&distinct_pid=1",
|
|
"host": [
|
|
"{{DOMAIN}}"
|
|
],
|
|
"path": [
|
|
"v1",
|
|
"people"
|
|
],
|
|
"query": [
|
|
{
|
|
"key": "relation",
|
|
"value": "following"
|
|
},
|
|
{
|
|
"key": "distinct_pid",
|
|
"value": "1"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
}
|
|
],
|
|
"id": "826dbc90-90a0-483c-a94f-5d93f48a1804"
|
|
}
|
|
],
|
|
"auth": {
|
|
"type": "apikey",
|
|
"apikey": [
|
|
{
|
|
"key": "value",
|
|
"value": "{{ServiceToken}}",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"key": "key",
|
|
"value": "X-Nintendo-ServiceToken",
|
|
"type": "string"
|
|
}
|
|
]
|
|
},
|
|
"event": [
|
|
{
|
|
"listen": "prerequest",
|
|
"script": {
|
|
"id": "86097a74-4b68-4b97-b176-45bcbedd2abf",
|
|
"type": "text/javascript",
|
|
"exec": [
|
|
""
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"listen": "test",
|
|
"script": {
|
|
"id": "540f44d8-e877-4739-ad86-0e471f183a27",
|
|
"type": "text/javascript",
|
|
"exec": [
|
|
"const headerSchema = {",
|
|
" \"type\": \"object\",",
|
|
" \"properties\": {",
|
|
" \"result\": {",
|
|
" \"type\": \"object\",",
|
|
" \"properties\": {",
|
|
" \"has_error\": {",
|
|
" \"type\": \"string\",",
|
|
" \"maxLength\": 1",
|
|
" },",
|
|
" \"version\": {",
|
|
" \"type\": \"string\",",
|
|
" \"maxLength\": 1",
|
|
" },",
|
|
" \"expire\": {",
|
|
" \"type\": \"string\",",
|
|
" \"pattern\": \"^[0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2}(\\.[0-9]{1,3})?\"",
|
|
" },",
|
|
" \"request_name\": {",
|
|
" \"type\": \"string\"",
|
|
" }",
|
|
" },",
|
|
" \"required\": [",
|
|
" \"has_error\",",
|
|
" \"version\",",
|
|
" \"request_name\"",
|
|
" ]",
|
|
" },",
|
|
"",
|
|
" },",
|
|
" \"required\": [",
|
|
" \"result\"",
|
|
" ]",
|
|
"};",
|
|
"",
|
|
"pm.test(\"Valid XML Response Header\", function () {",
|
|
" var json = xml2Json(pm.response.text());",
|
|
" pm.expect(json).to.have.jsonSchema(headerSchema);",
|
|
"})"
|
|
]
|
|
}
|
|
}
|
|
]
|
|
} |