diff --git a/semana-7/aula1/New Collection.postman_collection.json b/semana-7/aula1/New Collection.postman_collection.json new file mode 100644 index 0000000..f814dce --- /dev/null +++ b/semana-7/aula1/New Collection.postman_collection.json @@ -0,0 +1,259 @@ +{ + "info": { + "_postman_id": "7c21f88f-15e0-483f-a315-8af22b1506cc", + "name": "New Collection", + "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" + }, + "item": [ + { + "name": "createPlaylist", + "request": { + "method": "POST", + "header": [ + { + "key": "Authorization", + "value": "matheus-alonso", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"name\": \"Matheusrock\"\r\n}\r\n", + "options": { + "raw": { + "language": "json" + } + } + }, + "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": "getAllPlaylists", + "request": { + "method": "GET", + "header": [ + { + "key": "Authorization", + "value": "matheus-alonso", + "type": "text" + } + ], + "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": "addTrackToPlaylist", + "request": { + "method": "POST", + "header": [ + { + "key": "Authorization", + "value": "matheus-alonso", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"name\": \"Bruno Mars\", \r\n \"artist\": \"Wake Up in The Sky\",\r\n \"url\": \"https://www.youtube.com/watch?v=U68MJz9DrI4&list=RDJ6hu9Sx6X3I&index=17\"\r\n}", + "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": "93a7351f-321e-495b-ae8b-ed05f80891f0" + } + ] + } + }, + "response": [] + }, + { + "name": "getPlaylistTracks", + "request": { + "method": "GET", + "header": [ + { + "key": "Authorization", + "value": "matheus-alonso", + "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" + ], + "variable": [ + { + "key": "playlistId", + "value": "93a7351f-321e-495b-ae8b-ed05f80891f0" + } + ] + } + }, + "response": [] + }, + { + "name": "searchPlaylist", + "request": { + "method": "GET", + "header": [ + { + "key": "Authorization", + "value": "matheus-alonso", + "type": "text" + } + ], + "url": { + "raw": "https://us-central1-labenu-apis.cloudfunctions.net/labefy/playlists/search?name=MatheusPop", + "protocol": "https", + "host": [ + "us-central1-labenu-apis", + "cloudfunctions", + "net" + ], + "path": [ + "labefy", + "playlists", + "search" + ], + "query": [ + { + "key": "name", + "value": "MatheusPop" + } + ] + } + }, + "response": [] + }, + { + "name": "removeTrackFromPlaylist", + "request": { + "method": "DELETE", + "header": [ + { + "key": "Authorization", + "value": "matheus-alonso", + "type": "text" + } + ], + "url": { + "raw": "https://us-central1-labenu-apis.cloudfunctions.net/labefy/playlists/:playlistId/tracks/:trackId", + "protocol": "https", + "host": [ + "us-central1-labenu-apis", + "cloudfunctions", + "net" + ], + "path": [ + "labefy", + "playlists", + ":playlistId", + "tracks", + ":trackId" + ], + "variable": [ + { + "key": "playlistId", + "value": "367ff723-835b-4aa5-8afc-f985e546604f" + }, + { + "key": "trackId", + "value": "19225128-a037-467f-834e-74d4ef14038d" + } + ] + } + }, + "response": [] + }, + { + "name": "deletePlaylist", + "request": { + "method": "DELETE", + "header": [ + { + "key": "Authorization", + "value": "matheus-alonso", + "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": "dd97f3db-b1d7-4f33-b20d-8a944b5d0e29" + } + ] + } + }, + "response": [] + } + ] +} \ No newline at end of file