Skip to content

Instantly share code, notes, and snippets.

@wgaylord
Last active July 29, 2021 12:36
Show Gist options
  • Save wgaylord/87d4eb628e35fafce957f6c844816176 to your computer and use it in GitHub Desktop.
Save wgaylord/87d4eb628e35fafce957f6c844816176 to your computer and use it in GitHub Desktop.
ENDPOINT: POST https://network.satnogs.org/api/jobs/
What it does: Creates a new observation on a station using the provided data.
TEMP Station must be owned by api_token for now unless admin.
form-data:
ground_station
start
end
norad
transmitter
(optional) allow-overlap (Trim if necessary to post observation)
Header
'Authorization': 'Token {0}' (Much like the post data api)
This api will firstly make sure the user has permission needed to schedrual on the ground_station if not return json with error
Then check if the station supporst the requested transmitter if not return json with error
Check if station can actually see the sat during the time frame and it does not overlap requested if not return json with error
Finally if all checks out schedrual the observation and return the observation ID to the user.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment