Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Deep Sky Chile
Search
Search
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Observatories API
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Special pages
Page information
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Deep Sky Chile Observatories API User Manual == The Deep Sky Chile Observatories API provides real-time information about the status of observatories, including the state of their roof and wall systems. This API allows users to query the current state of multiple observatories, displaying whether the roof and walls are open or closed. === Base URL === The base URL for accessing the API is: http://api.deepskychile.com/observatories === Endpoint === * '''GET /observatories''': Retrieves information about all observatories, including their roof and wall states. === Response Format === The API returns the data in JSON format with the following structure: { "observatories": [ { "id": <observatory_id>, "name": <observatory_name>, "roofState": "<roof_state>", "wallState": "<wall_state>" }, ... ] } === Fields === * '''id''' (integer): The unique identifier for the observatory. * '''name''' (string): The reference name of the observatory. * '''roofState''' (string): The state of the roof. Possible values are: * "open": The roof is open. * "closed": The roof is closed. * '''wallState''' (string): The state of the observatory's wall. Possible values are: * "open": The wall is open. * "closed": The wall is closed. === Example Response === { "observatories": [ { "id": 1, "name": "Collective 1", "roofState": "closed", "wallState": "closed" }, { "id": 2, "name": "Collective 2", "roofState": "closed", "wallState": "closed" }, { "id": 3, "name": "Collective 3", "roofState": "closed", "wallState": "closed" }, { "id": 6, "name": "Collective 4", "roofState": "closed", "wallState": "closed" } ] } === Error Handling === If an error occurs while fetching the data, the API will return a generic HTTP error response (e.g., 500 Internal Server Error). === Example Request === To retrieve all observatories data, make a simple GET request to the following endpoint: GET http://api.deepskychile.com/observatories === Authentication === Currently, the API does not require authentication. Any future authentication requirements will be detailed here. === Conclusion === This API provides easy access to real-time data on the status of observatories at Deep Sky Chile. The roof and wall states are reported for each observatory, enabling users to track their operational status in a straightforward manner. If you need further assistance or have additional questions about using the API, feel free to reach out. [[Category:User manuals]]
Summary:
Please note that all contributions to Deep Sky Chile may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Deep Sky Chile:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Toggle limited content width