mirror of
https://codeberg.org/JasterV/rick-and-morty-wiki.git
synced 2026-04-26 18:10:09 +00:00
line 16 changed from showEpisode(1) to show(1, 'episode')'
This commit is contained in:
parent
cd226cf4ea
commit
0175fdca40
2 changed files with 119 additions and 1 deletions
118
Rick & Morty API.postman_collection.json
Normal file
118
Rick & Morty API.postman_collection.json
Normal file
|
|
@ -0,0 +1,118 @@
|
|||
{
|
||||
"info": {
|
||||
"_postman_id": "4efee5e2-3315-48d6-a636-6a69fb5f0e50",
|
||||
"name": "Rick & Morty API",
|
||||
"description": "Rick and Morty HATEOAS API",
|
||||
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
|
||||
},
|
||||
"item": [
|
||||
{
|
||||
"name": "Main Endpoint Request",
|
||||
"request": {
|
||||
"method": "GET",
|
||||
"header": [],
|
||||
"url": {
|
||||
"raw": "https://rickandmortyapi.com/api",
|
||||
"protocol": "https",
|
||||
"host": [
|
||||
"rickandmortyapi",
|
||||
"com"
|
||||
],
|
||||
"path": [
|
||||
"api"
|
||||
]
|
||||
}
|
||||
},
|
||||
"response": []
|
||||
},
|
||||
{
|
||||
"name": "GET First Episodes Page",
|
||||
"request": {
|
||||
"method": "GET",
|
||||
"header": [],
|
||||
"url": {
|
||||
"raw": "https://rickandmortyapi.com/api/episode",
|
||||
"protocol": "https",
|
||||
"host": [
|
||||
"rickandmortyapi",
|
||||
"com"
|
||||
],
|
||||
"path": [
|
||||
"api",
|
||||
"episode"
|
||||
]
|
||||
}
|
||||
},
|
||||
"response": []
|
||||
},
|
||||
{
|
||||
"name": "GET An Episodes Page",
|
||||
"request": {
|
||||
"method": "GET",
|
||||
"header": [],
|
||||
"url": {
|
||||
"raw": "https://rickandmortyapi.com/api/episode?page=2",
|
||||
"protocol": "https",
|
||||
"host": [
|
||||
"rickandmortyapi",
|
||||
"com"
|
||||
],
|
||||
"path": [
|
||||
"api",
|
||||
"episode"
|
||||
],
|
||||
"query": [
|
||||
{
|
||||
"key": "page",
|
||||
"value": "2"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"response": []
|
||||
},
|
||||
{
|
||||
"name": "GET a Location",
|
||||
"request": {
|
||||
"method": "GET",
|
||||
"header": [],
|
||||
"url": {
|
||||
"raw": "https://rickandmortyapi.com/api/location/3",
|
||||
"protocol": "https",
|
||||
"host": [
|
||||
"rickandmortyapi",
|
||||
"com"
|
||||
],
|
||||
"path": [
|
||||
"api",
|
||||
"location",
|
||||
"3"
|
||||
]
|
||||
}
|
||||
},
|
||||
"response": []
|
||||
},
|
||||
{
|
||||
"name": "GET a character",
|
||||
"request": {
|
||||
"method": "GET",
|
||||
"header": [],
|
||||
"url": {
|
||||
"raw": "https://rickandmortyapi.com/api/character/8",
|
||||
"protocol": "https",
|
||||
"host": [
|
||||
"rickandmortyapi",
|
||||
"com"
|
||||
],
|
||||
"path": [
|
||||
"api",
|
||||
"character",
|
||||
"8"
|
||||
]
|
||||
}
|
||||
},
|
||||
"response": []
|
||||
}
|
||||
],
|
||||
"protocolProfileBehavior": {}
|
||||
}
|
||||
|
|
@ -13,7 +13,7 @@ $(function () {
|
|||
var routes = result.data;
|
||||
controller.next = routes.episodes;
|
||||
loadNextPage().then(function () {
|
||||
showEpisode(1);
|
||||
show(1, "episode");
|
||||
});
|
||||
});
|
||||
/* EVENT LISTENERS */
|
||||
|
|
|
|||
Loading…
Reference in a new issue