Skip to content

Latest commit

 

History

History
31 lines (24 loc) · 848 Bytes

README.md

File metadata and controls

31 lines (24 loc) · 848 Bytes

nasa-microservice-demo README

This API has 2 endpoints:

URI: /api/hello

Method: GET Params: none Response content type: text/plain

This URI provides a simple test URI to ensure that Node/Express are up and running at the URL you requested.

URI: /api/meteors/close-approach

Method: POST Params: JSON packet (see below) Request content type: application/json Response content type: application/json

POST body must follow this specification:

{
	"dateStart": "2019-06-01",
	"dateEnd": "2019-06-07",
	"within": {
		"value": 900000,
		"units": "miles"
  }
}```

The results are a single array of strings where each value is the name of an object passing earth within `{within.value}` distance of Earth between the dates `{dateStart}` and `{dateEnd}`.

__At the moment the API ignores units and assumes miles.__