{"info":{"_postman_id":"ab10071b-c893-452d-ae6e-250acc1b90c1","name":"Astronomy","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"24017825","collectionId":"ab10071b-c893-452d-ae6e-250acc1b90c1","publishedId":"2s9Ykkf3as","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2023-12-14T17:00:58.000Z"},"item":[{"name":"ISS LIVE LOCATION","id":"ff77a6b6-d5be-424a-ab49-cf47988c6951","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://solar-geek-api.onrender.com/v1/getIssLocation","description":"<p>This endpoint makes an HTTP GET request to retrieve the current location of the International Space Station (ISS). The request does not include a request body.</p>\n<h3 id=\"response\">Response</h3>\n<ul>\n<li><p>Status: 200</p>\n</li>\n<li><p>Body:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"Message\": {\n        \"latitude\": 0,\n        \"longitude\": 0\n    },\n    \"code\": \"\"\n}\n\n</code></pre>\n<p>  The response contains the latitude and longitude coordinates of the ISS location.</p>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["v1","getIssLocation"],"host":["solar-geek-api","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"ff77a6b6-d5be-424a-ab49-cf47988c6951"},{"name":"GET MARS IMAGE","event":[{"listen":"test","script":{"id":"495b06d4-003e-4577-bcd8-c774966da69a","exec":["","pm.test(\"Response status code is 200\", function () {","    pm.expect(pm.response.code).to.equal(200);","});","","","pm.test(\"Content-Type header is application/json\", function () {","    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/json\");","});","","","pm.test(\"Code field is present and has the expected data type\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.code).to.exist.and.to.be.a('string');","});","",""],"type":"text/javascript"}}],"id":"23bd3bdf-168e-462f-a27b-3ccc6d570879","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://solar-geek-api.onrender.com/v1/getMarsRoverPic","description":"<p>This API endpoint makes an HTTP GET request to retrieve a picture from the Mars Rover. The request does not include a request body.</p>\n<h3 id=\"response\">Response</h3>\n<ul>\n<li><p><strong>Status: 200 OK</strong></p>\n</li>\n<li><p>The response body contains a JSON object with the following structure:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">  {\n      \"Data\": {\n          \"photos\": [\n              {\n                  \"id\": 0,\n                  \"sol\": 0,\n                  \"camera\": {\n                      \"name\": \"\"\n                  },\n                  \"img_src\": \"\",\n                  \"earth_date\": \"\"\n              }\n          ]\n      },\n      \"code\": \"\"\n  }\n\n</code></pre>\n<ul>\n<li><code>Data</code> (object)<ul>\n<li><code>photos</code> (array): An array of photo objects<ul>\n<li><code>id</code> (number): The ID of the photo</li>\n<li><code>sol</code> (number): The Martian sol (a solar day on Mars) when the photo was taken</li>\n<li><code>camera</code> (object): Details about the camera used<ul>\n<li><code>name</code> (string): The name of the camera</li>\n</ul>\n</li>\n<li><code>img_src</code> (string): The URL of the image</li>\n<li><code>earth_date</code> (string): The Earth date when the photo was taken</li>\n</ul>\n</li>\n</ul>\n</li>\n<li><code>code</code> (string): A code associated with the response</li>\n</ul>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["v1","getMarsRoverPic"],"host":["solar-geek-api","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"23bd3bdf-168e-462f-a27b-3ccc6d570879"},{"name":"APOD IMAGE","event":[{"listen":"test","script":{"id":"ffbb6fcc-dcb8-4c2d-9527-089c71fba6f0","exec":["pm.test(\"Response status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response is an object with Data property\", function () {","    pm.expect(pm.response.json()).to.be.an('object').that.has.property('Data');","});","","pm.test(\"Response has a 'success' property\", function () {","    pm.expect(pm.response.json()).to.have.property('success');","});"],"type":"text/javascript"}}],"id":"0b27bbcb-8f28-45f8-8fd3-8e232f72a9ba","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://solar-geek-api.onrender.com/v1/getApodApiImage","description":"<p>This API endpoint makes an HTTP GET request to retrieve the Astronomy Picture of the Day (APOD) image. The request does not require a request body. </p>\n<h3 id=\"response\">Response</h3>\n<ul>\n<li><strong>Status:</strong> 200 OK</li>\n<li><strong>Data:</strong><ul>\n<li><code>Data</code> (object)<ul>\n<li><code>copyright</code> (string): The copyright information for the APOD image.</li>\n<li><code>date</code> (string): The date of the APOD image.</li>\n<li><code>explanation</code> (string): The explanation or description of the APOD image.</li>\n<li><code>hdurl</code> (string): The URL to the high-definition version of the APOD image.</li>\n</ul>\n</li>\n<li><code>success</code> (string): Indicates the success of the request.</li>\n</ul>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["v1","getApodApiImage"],"host":["solar-geek-api","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"0b27bbcb-8f28-45f8-8fd3-8e232f72a9ba"},{"name":"PERFORM WEATHER ANALYSIS","id":"08b867f5-5161-46d6-a24b-9a6b97fac238","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://solar-geek-api.onrender.com/v1/performWeatherAnalysis?city=Dehradun","description":"<h3 id=\"perform-weather-analysis\">Perform Weather Analysis</h3>\n<p>This endpoint triggers an HTTP GET request to analyze the weather for a specific city.</p>\n<h4 id=\"request-parameters\">Request Parameters</h4>\n<ul>\n<li><code>city</code> (string, required): The name of the city for which the weather analysis is to be performed.</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<ul>\n<li><code>Status: 200 OK</code></li>\n<li><code>Analysis</code> (string): The analysis of the weather for the specified city.</li>\n<li><code>Code</code> (integer): The status code of the response.</li>\n<li><code>Data</code> (object): Contains detailed weather information for the specified city.<ul>\n<li><code>coord</code> (object): Contains the geographical coordinates of the city.<ul>\n<li><code>lat</code> (float): The latitude of the city.</li>\n<li><code>lon</code> (float): The longitude of the city.</li>\n</ul>\n</li>\n<li><code>main</code> (object): Contains main weather parameters.<ul>\n<li><code>temp</code> (float): The temperature in the city.</li>\n<li><code>pressure</code> (integer): The atmospheric pressure in the city.</li>\n<li><code>humidity</code> (integer): The humidity in the city.</li>\n</ul>\n</li>\n<li><code>visibility</code> (integer): The visibility in the city.</li>\n</ul>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["v1","performWeatherAnalysis"],"host":["solar-geek-api","onrender","com"],"query":[{"key":"city","value":"Dehradun"}],"variable":[]}},"response":[],"_postman_id":"08b867f5-5161-46d6-a24b-9a6b97fac238"}]}