Advertisement
Guest User

Swagger NASA 3

a guest
Jan 23rd, 2017
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.37 KB | None | 0 0
  1. {
  2. "swagger": "2.0",
  3. "schemes": [
  4. "https"
  5. ],
  6. "host": "api.nasa.gov",
  7. "basePath": "/neo",
  8. "info": {
  9. "description": "A web service for near earth objects. All the data is from the <a href=\"http://neo.jpl.nasa.gov/\" target=\"_blank\">NASA JPL Asteroid team</a>. \n\n \n\nNeoWs is proud to power AsteroidTracker on <a href=\"https://itunes.apple.com/us/app/asteroid-tracker/id689684901?mt=8\" target=\"_blank\">iOS</a> and <a href=\"https://play.google.com/store/apps/details?id=com.vitruviussoftware.bunifish.asteroidtracker&feature\" target=\"_blank\">Android</a> as well as related apps. \n\n Get <a href=\"http://apps.getpebble.com/en_US/application/55bc4913d1690c372900000f\" target=\"_blank\">Asteroid Today on Pebble</a> \n\nFollow us on <a href=\"https://twitter.com/AsteroidTracker\" target=\"_blank\">Twitter</a>",
  10. "license": {
  11. "name": "Licence Type",
  12. "url": "License URL"
  13. },
  14. "title": "NeoWs - (Near Earth Object Web Service)",
  15. "version": "1.0",
  16. "x-origin": {
  17. "format": "swagger",
  18. "url": "http://www.neowsapp.com/api-docs",
  19. "version": "1.2"
  20. },
  21. "x-preferred": true,
  22. "x-providerName": "neowsapp.com"
  23. },
  24. "consumes": [
  25. "application/json"
  26. ],
  27. "produces": [
  28. "application/json"
  29. ],
  30. "tags": [
  31. {
  32. "description": "Operations with NearEarthObjects",
  33. "name": "feed"
  34. },
  35. {
  36. "description": "Operations with NearEarthObjects",
  37. "name": "neo"
  38. },
  39. {
  40. "description": "Stats on Near Earth Object data sets",
  41. "name": "stats"
  42. }
  43. ],
  44. "paths": {
  45. "/rest/v1/feed": {
  46. "get": {
  47. "deprecated": false,
  48. "description": "Get a list of Near Earth Objects within a date range, The max range in one query is 7 days",
  49. "operationId": "retrieveNearEarthObjectFeed",
  50. "parameters": [
  51. {
  52. "description": "Start of date range search, format: yyyy-MM-dd - (ex: 2015-04-28)",
  53. "in": "query",
  54. "name": "start_date",
  55. "required": true,
  56. "type": "string"
  57. },
  58. {
  59. "description": "End of date range search, format: yyyy-MM-dd - (ex: 2015-04-28). If left off search will extends 7 days from start_date",
  60. "in": "query",
  61. "name": "end_date",
  62. "required": true,
  63. "type": "string"
  64. }
  65. ],
  66. "responses": {
  67. "200": {
  68. "description": "OK",
  69. "schema": {
  70. "$ref": "#/definitions/NearEarthObjectList"
  71. }
  72. },
  73. "401": {
  74. "description": "Unauthorized"
  75. },
  76. "403": {
  77. "description": "Forbidden"
  78. },
  79. "404": {
  80. "description": "Not Found"
  81. }
  82. },
  83. "summary": "Find Near Earth Objects by date",
  84. "tags": [
  85. "feed"
  86. ],
  87. "security" : [
  88. {
  89. "api_key":[]
  90. }
  91. ]
  92. }
  93. },
  94. "/rest/v1/feed/today": {
  95. "get": {
  96. "deprecated": false,
  97. "description": "Get a list of Near Earth Objects for today",
  98. "operationId": "retrieveNEOFeedToday",
  99. "parameters": [
  100. {
  101. "description": "detailed",
  102. "in": "query",
  103. "name": "detailed",
  104. "required": false,
  105. "type": "boolean"
  106. }
  107. ],
  108. "responses": {
  109. "200": {
  110. "description": "OK",
  111. "schema": {
  112. "$ref": "#/definitions/NearEarthObjectList"
  113. }
  114. },
  115. "401": {
  116. "description": "Unauthorized"
  117. },
  118. "403": {
  119. "description": "Forbidden"
  120. },
  121. "404": {
  122. "description": "Not Found"
  123. }
  124. },
  125. "summary": "Find Near Earth Objects for today",
  126. "tags": [
  127. "feed"
  128. ],
  129. "security" : [
  130. {
  131. "api_key":[]
  132. }
  133. ]
  134. }
  135. },
  136. "/rest/v1/neo/browse": {
  137. "get": {
  138. "deprecated": false,
  139. "description": "Retieve a paginated list of Near Earth Objects",
  140. "operationId": "browseNearEarthObjects",
  141. "parameters": [
  142. {
  143. "default": 0,
  144. "description": "page",
  145. "format": "int32",
  146. "in": "query",
  147. "name": "page",
  148. "required": false,
  149. "type": "integer"
  150. },
  151. {
  152. "default": 20,
  153. "description": "size",
  154. "format": "int32",
  155. "in": "query",
  156. "name": "size",
  157. "required": false,
  158. "type": "integer"
  159. }
  160. ],
  161. "responses": {
  162. "200": {
  163. "description": "OK",
  164. "schema": {
  165. "$ref": "#/definitions/NearEarthObject"
  166. }
  167. },
  168. "401": {
  169. "description": "Unauthorized"
  170. },
  171. "403": {
  172. "description": "Forbidden"
  173. },
  174. "404": {
  175. "description": "Not Found"
  176. }
  177. },
  178. "summary": "Browse the Near Earth Objects service",
  179. "tags": [
  180. "neo"
  181. ],
  182. "security" : [
  183. {
  184. "api_key":[]
  185. }
  186. ]
  187. }
  188. },
  189. "/rest/v1/neo/{asteroid_id}": {
  190. "get": {
  191. "deprecated": false,
  192. "description": "Retieve a Near Earth Objects with a given id",
  193. "operationId": "retrieveNearEarthObjectById",
  194. "parameters": [
  195. {
  196. "description": "ID of Near Earth Object - (ex: 3729835)",
  197. "in": "path",
  198. "name": "asteroid_id",
  199. "required": true,
  200. "type": "string"
  201. }
  202. ],
  203. "responses": {
  204. "200": {
  205. "description": "OK",
  206. "schema": {
  207. "$ref": "#/definitions/NearEarthObject"
  208. }
  209. },
  210. "401": {
  211. "description": "Unauthorized"
  212. },
  213. "403": {
  214. "description": "Forbidden"
  215. },
  216. "404": {
  217. "description": "Not Found"
  218. }
  219. },
  220. "summary": "Find Near Earth Objects by id",
  221. "tags": [
  222. "neo"
  223. ],
  224. "security" : [
  225. {
  226. "api_key":[]
  227. }
  228. ]
  229. }
  230. },
  231. "/rest/v1/stats": {
  232. "get": {
  233. "deprecated": false,
  234. "description": "retrieveCurrentNeoStatistics",
  235. "operationId": "retrieveCurrentNeoStatistics",
  236. "responses": {
  237. "200": {
  238. "description": "OK",
  239. "schema": {
  240. "$ref": "#/definitions/Statistics"
  241. }
  242. },
  243. "401": {
  244. "description": "Unauthorized"
  245. },
  246. "403": {
  247. "description": "Forbidden"
  248. },
  249. "404": {
  250. "description": "Not Found"
  251. }
  252. },
  253. "summary": "Get the Near Earth Object data set totals",
  254. "tags": [
  255. "stats"
  256. ],
  257. "security" : [
  258. {
  259. "api_key":[]
  260. }
  261. ]
  262. }
  263. }
  264. },
  265. "securityDefinitions" : {
  266. "api_key": {
  267. "type" : "apiKey",
  268. "name" : "api_key",
  269. "in" : "query"
  270. }
  271. },
  272. "definitions": {
  273. "CloseApproachData": {
  274. "properties": {
  275. "close_approach_date": {
  276. "type": "string"
  277. },
  278. "epoch_date_close_approach": {
  279. "format": "int64",
  280. "type": "integer"
  281. },
  282. "miss_distance": {
  283. "$ref": "#/definitions/MissDistance"
  284. },
  285. "orbiting_body": {
  286. "type": "string"
  287. },
  288. "relative_velocity": {
  289. "$ref": "#/definitions/relativeVelocity"
  290. }
  291. }
  292. },
  293. "EstimatedDiameter": {
  294. "properties": {
  295. "estimated_diameter_max": {
  296. "description": "An estimate of the maximum size of the Asteroid - bases on the abosolute magnitude",
  297. "format": "double",
  298. "type": "number"
  299. },
  300. "estimated_diameter_min": {
  301. "description": "An estimate of the minimum size of the Asteroid - bases on the abosolute magnitude",
  302. "format": "double",
  303. "type": "number"
  304. }
  305. }
  306. },
  307. "EstimatedDiameterContainer": {
  308. "properties": {
  309. "feet": {
  310. "$ref": "#/definitions/EstimatedDiameter",
  311. "description": "estimated diameter feet"
  312. },
  313. "kilometers": {
  314. "$ref": "#/definitions/EstimatedDiameter",
  315. "description": "estimated diameter kilometer"
  316. },
  317. "meters": {
  318. "$ref": "#/definitions/EstimatedDiameter",
  319. "description": "estimated diameter meter"
  320. },
  321. "miles": {
  322. "$ref": "#/definitions/EstimatedDiameter",
  323. "description": "estimated diameter miles"
  324. }
  325. }
  326. },
  327. "ListNearEarthObject": {},
  328. "Link": {
  329. "properties": {
  330. "href": {
  331. "type": "string"
  332. },
  333. "rel": {
  334. "type": "string"
  335. },
  336. "templated": {
  337. "type": "boolean"
  338. }
  339. }
  340. },
  341. "MissDistance": {
  342. "properties": {
  343. "astronomical": {
  344. "type": "string"
  345. },
  346. "kilometers": {
  347. "type": "string"
  348. },
  349. "lunar": {
  350. "type": "string"
  351. },
  352. "miles": {
  353. "type": "string"
  354. }
  355. }
  356. },
  357. "NearEarthObject": {
  358. "properties": {
  359. "absolute_magnitude_h": {
  360. "description": "Is a measure of an asteroids brightness",
  361. "format": "double",
  362. "type": "number"
  363. },
  364. "close_approach_data": {
  365. "description": "Close approach information of the Asteroid",
  366. "items": {
  367. "$ref": "#/definitions/CloseApproachData"
  368. },
  369. "type": "array"
  370. },
  371. "estimated_diameter": {
  372. "$ref": "#/definitions/EstimatedDiameterContainer",
  373. "description": "A collection of estimated diameters (kilometers, meters, miles, feet"
  374. },
  375. "is_potentially_hazardous_asteroid": {
  376. "type": "boolean"
  377. },
  378. "name": {
  379. "type": "string"
  380. },
  381. "nasa_jpl_url": {
  382. "description": "A Link to the NASA JPL Small-Body Database website",
  383. "type": "string"
  384. },
  385. "neo_reference_id": {
  386. "description": "The reference ID of the Asteroid - This correlates to the SPK ID for the JPL NEO data",
  387. "type": "string"
  388. },
  389. "orbital_data": {
  390. "$ref": "#/definitions/OrbitalData",
  391. "description": "Orbital information of the asteroid"
  392. }
  393. }
  394. },
  395. "NearEarthObjectList": {
  396. "properties": {
  397. "element_count": {
  398. "description": "Number of NEOs in list",
  399. "format": "int32",
  400. "type": "integer"
  401. },
  402. "links": {
  403. "description": "Hypermedia links to collection",
  404. "type": "object"
  405. },
  406. "near_earth_objects": {
  407. "$ref": "#/definitions/HashMap芦string,List芦NearEarthObject禄禄",
  408. "description": "A collection of NearEarthObjects"
  409. }
  410. }
  411. },
  412. "OrbitalData": {
  413. "properties": {
  414. "aphelion_distance": {
  415. "type": "string"
  416. },
  417. "ascending_node_longitude": {
  418. "type": "string"
  419. },
  420. "eccentricity": {
  421. "type": "string"
  422. },
  423. "epoch_osculation": {
  424. "type": "string"
  425. },
  426. "equinox": {
  427. "type": "string"
  428. },
  429. "inclination": {
  430. "type": "string"
  431. },
  432. "jupiter_tisserand_invariant": {
  433. "type": "string"
  434. },
  435. "mean_anomaly": {
  436. "type": "string"
  437. },
  438. "mean_motion": {
  439. "type": "string"
  440. },
  441. "minimum_orbit_intersection": {
  442. "type": "string"
  443. },
  444. "orbit_determination_date": {
  445. "type": "string"
  446. },
  447. "orbit_id": {
  448. "type": "string"
  449. },
  450. "orbit_uncertainty": {
  451. "type": "string"
  452. },
  453. "orbital_period": {
  454. "type": "string"
  455. },
  456. "perihelion_argument": {
  457. "type": "string"
  458. },
  459. "perihelion_distance": {
  460. "type": "string"
  461. },
  462. "perihelion_time": {
  463. "type": "string"
  464. },
  465. "semi_major_axis": {
  466. "type": "string"
  467. }
  468. }
  469. },
  470. "Statistics": {
  471. "properties": {
  472. "close_approach_count": {
  473. "description": "Number of Close Approach listings across all NEOs listed in NeoWs",
  474. "format": "int64",
  475. "type": "integer"
  476. },
  477. "last_updated": {
  478. "description": "TimeStamp the last time the DB was updated",
  479. "type": "string"
  480. },
  481. "links": {
  482. "items": {
  483. "$ref": "#/definitions/Link"
  484. },
  485. "type": "array"
  486. },
  487. "nasa_jpl_url": {
  488. "$ref": "#/definitions/URL"
  489. },
  490. "near_earth_object_count": {
  491. "description": "Number of NearEarthObjects listed in NeoWs",
  492. "format": "int64",
  493. "type": "integer"
  494. },
  495. "source": {
  496. "type": "string"
  497. }
  498. }
  499. },
  500. "URL": {
  501. "properties": {
  502. "authority": {
  503. "type": "string"
  504. },
  505. "content": {
  506. "type": "object"
  507. },
  508. "defaultPort": {
  509. "format": "int32",
  510. "type": "integer"
  511. },
  512. "file": {
  513. "type": "string"
  514. },
  515. "host": {
  516. "type": "string"
  517. },
  518. "path": {
  519. "type": "string"
  520. },
  521. "port": {
  522. "format": "int32",
  523. "type": "integer"
  524. },
  525. "protocol": {
  526. "type": "string"
  527. },
  528. "query": {
  529. "type": "string"
  530. },
  531. "ref": {
  532. "type": "string"
  533. },
  534. "userInfo": {
  535. "type": "string"
  536. }
  537. }
  538. },
  539. "relativeVelocity": {
  540. "properties": {
  541. "kilometers_per_hour": {
  542. "type": "string"
  543. },
  544. "miles_per_hour": {
  545. "type": "string"
  546. }
  547. }
  548. }
  549. }
  550. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement