Skip to content

armchairdeity/nasa-microservice-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.__

About

A quick Node.js microservice sample

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published