-
Notifications
You must be signed in to change notification settings - Fork 8
Create API_overview.md #22
base: main
Are you sure you want to change the base?
Changes from 1 commit
595a561
91c4764
b15766c
6a9e3d7
6a4a270
17adeea
9d49920
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,53 @@ | ||||||||||||||||||
|
|
||||||||||||||||||
| ## About the Chronologue API | ||||||||||||||||||
| <br> | ||||||||||||||||||
|
|
||||||||||||||||||
| The Chronologue API is open-source software that stores data about astronomical events. You can easily query astronomical data stored in the API and visualize events on the Chronologue website. | ||||||||||||||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @fineon
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. hmm what about
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I am okay with the 2nd sentence. It is technically correct.
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thank you both for your input! I'm still new to the field and I find myself mixing concepts so is great to have more experienced eyes catching these inaccuracies. |
||||||||||||||||||
|
|
||||||||||||||||||
| The main purpose of Chronologue API is to help scientists and organizations advance humanity's knowledge. To query and visualize an astronomical event, you need an HTTP client, for example, Chrome. | ||||||||||||||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Minor suggestion: The query can be done via an HTTP client, that's correct. Another very small nitpick: Instead of highlighting Chrome here, I would choose a more neutral phrase like: "... you need an HTTP client, for example, a web browser. "
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, your assumption is correct. My justification for why I talk about "visualization" in the overview is to situate the API within the context of "The Chronologue" project. First I answer the question "what does the Chronologue API do? It stores astronomical events data that you can query" and then I extend this a bit further "you can visualize these events on the Chronologue website".
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In our Slack conversation, Ian answered this question. At the moment, the API sends the response to the Chronologue website. I therefore assumed that the only way to use this data is to visualize the event it contains. Please correct me if this is wrong. Is it possible for the user to query astronomical data, receive it via the Chronologue website and not visualize it? |
||||||||||||||||||
|
|
||||||||||||||||||
| Developers can contribute to the software by joining the Chronologue Project, which is part of The Good Docs project. To contribute to program code, you should be familiar with the following tools: | ||||||||||||||||||
|
|
||||||||||||||||||
| - Next.js | ||||||||||||||||||
| - Netlify hosting infrastructure | ||||||||||||||||||
|
|
||||||||||||||||||
| To learn more, join our [Slack community](https://thegooddocs.slack.com/) or attend a [Chronologue meeting](https://thegooddocsproject.dev/community/). | ||||||||||||||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Context: At some point, we need to create a contribution guide, similar to what the template team has: Template Contribution Guide For now, I would place this section probably at the end of the document, since the main goal of the document is to get an overview, first. After people have a good idea of what they are dealing with, they might be happy to contribute.
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sure thing! |
||||||||||||||||||
|
|
||||||||||||||||||
| <br> | ||||||||||||||||||
|
|
||||||||||||||||||
| ## Main features | ||||||||||||||||||
| <br> | ||||||||||||||||||
|
|
||||||||||||||||||
| Besides querying and visualizing past astronomical events, you can also use the Chronologue telescope to predict future events, but the accuracy of these predictions is not guaranteed. If an event has not yet been stored in the API, you can also request to post a new event. | ||||||||||||||||||
|
valeriahhdez marked this conversation as resolved.
Outdated
|
||||||||||||||||||
|
|
||||||||||||||||||
| To use the Chronologue API, read and follow the steps described in the "Request for a new recording" document. If your request is approved, you will receive a notification email containing an API Key that gives you access to the Chronologue's API. | ||||||||||||||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I believe that you can make GET requests also without going through the request for new recording, so I would just link to that document in a related links section at the bottom. :) CC: @fineon What do you think: Do we need to hand out API keys to make GET requests? |
||||||||||||||||||
|
|
||||||||||||||||||
| The Chronologue API follows REST architecture. You can access the API's resources via HTTP requests and responses are given in JSON format. | ||||||||||||||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I would put this information into either the overview or higher up in main features. :)
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done! |
||||||||||||||||||
|
|
||||||||||||||||||
|
|
||||||||||||||||||
| <br> | ||||||||||||||||||
|
|
||||||||||||||||||
|
|
||||||||||||||||||
|
|
||||||||||||||||||
| ) | ||||||||||||||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for creating a graphic! It might be a good opener for the section. The only thing I find hard to understand is what we mean by "visualization request". I am guessing that a reader of this document might want to know what requests they can make against the API, for example GET requests or POST requests. We can also highlight that for GET requests, you don't need to be authorized, but for POST, you might need a key. I'm just thinking out loud here, maybe @fineon has some ideas as well.
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I changed the name to "Request for new recording" to be consistent with the terminology Peter used in his document. |
||||||||||||||||||
| A high-level diagram of the Chronologue API's workflow. | ||||||||||||||||||
|
|
||||||||||||||||||
|
|
||||||||||||||||||
|
|
||||||||||||||||||
| <br> | ||||||||||||||||||
| <br> | ||||||||||||||||||
|
|
||||||||||||||||||
| ## Common use cases | ||||||||||||||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I wonder if we need subheadings. We could also structure it a bit more lean like:
Suggested change
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sound ok to me. |
||||||||||||||||||
| <br> | ||||||||||||||||||
|
|
||||||||||||||||||
| #### Academic research | ||||||||||||||||||
|
valeriahhdez marked this conversation as resolved.
Outdated
|
||||||||||||||||||
|
|
||||||||||||||||||
| Gather information with the Chronologue API to further humanity's understanding. You can visualize past events that can help you explain what circumstances caused a another phenomenon of nature. | ||||||||||||||||||
|
|
||||||||||||||||||
| Use the Chronologue API to test your hypothesis. The Chronologue API can make predictions about future astronomical events. You can compare your predictions to those prouced by the API as a way to validate your hypothesis. | ||||||||||||||||||
|
Comment on lines
+43
to
+45
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Love these use cases! 👍 |
||||||||||||||||||
|
|
||||||||||||||||||
| <br> | ||||||||||||||||||
|
|
||||||||||||||||||
| #### Educational purposes | ||||||||||||||||||
|
valeriahhdez marked this conversation as resolved.
Outdated
|
||||||||||||||||||
|
|
||||||||||||||||||
| Demonstrate to your audience the causal relationship between two natural events. For example, you can show your students the asteroid's impact on Earth during the Cretaceous Period that caused the mass extinction of three-quarters of plant and animal species. | ||||||||||||||||||
Uh oh!
There was an error while loading. Please reload this page.