Last active
April 5, 2017 19:47
-
-
Save wwe-johndpope/e70db69f5b5b08aadd1915433df80d57 to your computer and use it in GitHub Desktop.
save out json to files.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// chomd +x dumpSwaggerJson.sh | |
curl -X GET https://virtserver.swaggerhub.com/osman/emerald/1.0.0/channels -H "access-control-allow-origin: *" -H "accept: application/json" -H "content-type: application/json" > channels.json | |
curl -X GET https://virtserver.swaggerhub.com/osman/emerald/1.0.0/channels/channelContent?channelid=1092 -H "access-control-allow-origin: *" -H "accept: application/json" -H "content-type: application/json" > channel1092.json | |
curl -X GET https://virtserver.swaggerhub.com/osman/emerald/1.0.0/channels/channelContent?channelid=1701 -H "access-control-allow-origin: *" -H "accept: application/json" -H "content-type: application/json" > channel1701.json | |
curl -X GET https://virtserver.swaggerhub.com/osman/emerald/1.0.0/channels/channelContent?channelid=1408 -H "access-control-allow-origin: *" -H "accept: application/json" -H "content-type: application/json" > channel1408.json | |
curl -X GET https://virtserver.swaggerhub.com/osman/emerald/1.0.0/channels/channelContent?channelid=1078 -H "access-control-allow-origin: *" -H "accept: application/json" -H "content-type: application/json" > channel1078.json | |
curl -X GET https://virtserver.swaggerhub.com/osman/emerald/1.0.0/channels/channelContent?channelid=1155 -H "access-control-allow-origin: *" -H "accept: application/json" -H "content-type: application/json" > channel1155.json | |
curl -X GET https://virtserver.swaggerhub.com/osman/emerald/1.0.0/video/associatedContent?video_id=1180 -H "access-control-allow-origin: *" -H "accept: application/json" -H "content-type: application/json" > associatedContent1105.json | |
//shows | |
curl -X GET https://virtserver.swaggerhub.com/osman/emerald/1.0.0/shows -H "access-control-allow-origin: *" -H "accept: application/json" -H "content-type: application/json" > shows.json | |
// shows/related | |
curl -X GET https://virtserver.swaggerhub.com/osman/emerald/1.0.0/shows/related?show_id=1111 -H "access-control-allow-origin: *" -H "accept: application/json" -H "content-type: application/json" > relatedShows1111.json | |
// superstars/related | |
curl -X GET https://virtserver.swaggerhub.com/osman/emerald/1.0.0/superstars/related?superstar_id=1 -H "access-control-allow-origin: *" -H "accept: application/json" -H "content-type: application/json" > superstars1.json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
from swagger - we can inspect the curl here
just add to above script.