From 87d2fec154b1f8ce03d891f73adb81454fc4d84b Mon Sep 17 00:00:00 2001 From: mariawoo Date: Mon, 20 Jun 2022 17:30:03 -0300 Subject: [PATCH] Exercicio postman --- .../postman/Labefy.postman_collection.json | 237 ++++++++++++++++++ 1 file changed, 237 insertions(+) create mode 100644 modulo2/postman/Labefy.postman_collection.json diff --git a/modulo2/postman/Labefy.postman_collection.json b/modulo2/postman/Labefy.postman_collection.json new file mode 100644 index 0000000..ef2ead1 --- /dev/null +++ b/modulo2/postman/Labefy.postman_collection.json @@ -0,0 +1,237 @@ +{ + "info": { + "_postman_id": "89f3f831-b1e3-4a62-908b-308ae329f774", + "name": "Labefy", + "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" + }, + "item": [ + { + "name": "getAllPlaylists", + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "https://us-central1-labenu-apis.cloudfunctions.net/labefy/playlists", + "protocol": "https", + "host": [ + "us-central1-labenu-apis", + "cloudfunctions", + "net" + ], + "path": [ + "labefy", + "playlists" + ] + } + }, + "response": [] + }, + { + "name": "searchPlaylist", + "request": { + "method": "GET", + "header": [ + { + "key": "Authorization", + "value": "maria-woo-freire", + "description": "Essa requisição parmite pesquisar por uma playlist, usando o nome dela ou parte dele.", + "type": "text" + } + ], + "url": { + "raw": "https://us-central1-labenu-apis.cloudfunctions.net/labefy/playlists/search?name=string", + "protocol": "https", + "host": [ + "us-central1-labenu-apis", + "cloudfunctions", + "net" + ], + "path": [ + "labefy", + "playlists", + "search" + ], + "query": [ + { + "key": "name", + "value": "string" + } + ] + } + }, + "response": [] + }, + { + "name": "getPlaylistTracks", + "request": { + "method": "GET", + "header": [ + { + "key": "Authorization", + "value": "maria-woo-freire", + "description": "Esta requisição permite verificar quais músicas estão em uma determinada playlist", + "type": "text" + } + ], + "url": { + "raw": "https://us-central1-labenu-apis.cloudfunctions.net/labefy/playlists/:playlistId/tracks", + "protocol": "https", + "host": [ + "us-central1-labenu-apis", + "cloudfunctions", + "net" + ], + "path": [ + "labefy", + "playlists", + ":playlistId", + "tracks" + ], + "query": [ + { + "key": "", + "value": null, + "disabled": true + } + ], + "variable": [ + { + "key": "playlistId", + "value": "f7029086-1c52-4bf4-b0ab-87806b98e056" + } + ] + } + }, + "response": [] + }, + { + "name": "createPlaylist", + "request": { + "method": "POST", + "header": [ + { + "key": "Authorization", + "value": "maria-woo-freire", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"name\": \"Musicas Favoritas\"\n\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "https://us-central1-labenu-apis.cloudfunctions.net/labefy/playlists?Authorization=maria-woo-freire", + "protocol": "https", + "host": [ + "us-central1-labenu-apis", + "cloudfunctions", + "net" + ], + "path": [ + "labefy", + "playlists" + ], + "query": [ + { + "key": "Authorization", + "value": "maria-woo-freire" + } + ] + } + }, + "response": [] + }, + { + "name": "addTrackToPlaylist", + "request": { + "method": "POST", + "header": [ + { + "key": "Authorization", + "value": "maria-woo-freire", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "https://us-central1-labenu-apis.cloudfunctions.net/labefy/playlists/:playlistId/tracks", + "protocol": "https", + "host": [ + "us-central1-labenu-apis", + "cloudfunctions", + "net" + ], + "path": [ + "labefy", + "playlists", + ":playlistId", + "tracks" + ], + "variable": [ + { + "key": "playlistId", + "value": "f7029086-1c52-4bf4-b0ab-87806b98e056" + } + ] + } + }, + "response": [] + }, + { + "name": "deletePlaylist", + "request": { + "method": "DELETE", + "header": [ + { + "key": "Authorization", + "value": "maria-woo-freire", + "type": "text" + } + ], + "url": { + "raw": "https://us-central1-labenu-apis.cloudfunctions.net/labefy/playlists/:playlistId", + "protocol": "https", + "host": [ + "us-central1-labenu-apis", + "cloudfunctions", + "net" + ], + "path": [ + "labefy", + "playlists", + ":playlistId" + ], + "variable": [ + { + "key": "playlistId", + "value": null + } + ] + } + }, + "response": [] + }, + { + "name": "removeTrackFromPlaylist", + "request": { + "method": "GET", + "header": [], + "url": null + }, + "response": [] + } + ] +} \ No newline at end of file