![]() ![]() Included in response because of default values. concept_tags A boolean reflection of the supplied option.resource A dictionary describing the image_set or planet that the response illustrates, completely determined by the structured endpoint.If an APOD is not a video, this parameter is ignored. If set to True, the API returns URL of video thumbnail. thumbs A boolean parameter True|False inidcating whether the API should return a thumbnail image URL for video files.If start_date is specified without an end_date then end_date defaults to the current date. end_date A string in YYYY-MM-DD format indicating that end of a date range.All images in the range from start_date to end_date will be returned in a JSON array. start_date A string in YYYY-MM-DD format indicating the start of a date range.Cannot be used in conjunction with date or start_date and end_date. If this is specified then count randomly chosen images will be returned in a JSON array. count A positive integer, no greater than 100.This is present for legacy purposes, it is always ignored by the service and high-resolution urls are returned regardless. hd A boolean True|False parameter indicating whether or not high-resolution images should be returned.(Better than just pure text search.) Defaults to False. The concept tags are not necessarily included in the explanation, but rather derived from common search tags that are associated with the description text. concept_tags A boolean True|False indicating whether concept tags should be returned with the rest of the response.There are no images for tomorrow available through this API. ![]() Must be after, the first day an APOD picture was posted. date A string in YYYY-MM-DD format indicating the date of the APOD image (example: ).URL Search Params | query string parameters There is only one endpoint in this service which takes 2 optional fieldsĪs parameters to a http GET request. No one watching this repository has anything to do with Astronomy Photo of the Day website, so we're unable to deal with issues directly related to their content. You can do that with this code! All information that this API returns is actually just grabbed from the Astronomy Photo of the Day Website (APOD). If you need a extremely reliable version of this API, you likely want to stand up your own version of the API. You can find a frozen version of the previous code in the branch called "prevCodeOrganization" API ReliabilityĪ very large number of people use the instance of this API that NASA has set up. Changed references to app in application.py to application.Moved main code out of the APOD folder and into the top level directory as Elastic Beanstalk had a hard time finding the initial python file unless it was in the top-level folder.NOTES: Code re-organization has occurred !Ĭode was reorganized to make it work more easily on AWS's Elastic Beanstalk service. Astronomy Picture of the Day (APOD) microserviceĪ microservice written in Python with the Flask micro framework. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |