{"openapi":"3.1.0","info":{"title":"BSPM API: 3D-Kinetic plasmasphere model","description":"The BSPM is a 3D-Kinetic semiempirical model of the plasmasphere developed by the Solar Wind Division of the Royal Belgian Institute for Space Aeronomy.","version":"1.0.0"},"servers":[{"url":"/dc-bspm"}],"paths":{"/execute":{"post":{"tags":["Execute"],"summary":"Execute the BSPM by passing the date.","description":"Returns the status of execution by date: year-month-day","operationId":"run_execute_script_execute_post","parameters":[{"name":"date","in":"query","required":true,"schema":{"type":"string","description":"Date in the format 'YYYY-MM-DD'","title":"Date"},"description":"Date in the format 'YYYY-MM-DD'"},{"name":"rerun","in":"query","required":false,"schema":{"type":"boolean","description":"Force the script to rerun even if the output files already exist.","default":false,"title":"Rerun"},"description":"Force the script to rerun even if the output files already exist."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/executions":{"get":{"tags":["Retrieve Executions"],"summary":"Retrieve a list of user executions.","description":"Returns a list of executions completed by the user.","operationId":"get_user_executions_executions_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/plot":{"get":{"tags":["Plot"],"summary":"Plot the output image by passing the execution date and hour.","description":"Returns the plot image.","operationId":"get_plot_image_plot_get","parameters":[{"name":"date","in":"query","required":true,"schema":{"type":"string","title":"Date"}},{"name":"hour","in":"query","required":true,"schema":{"type":"integer","title":"Hour"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/download":{"get":{"tags":["Download"],"summary":"Download all the outputs by passing the execution date.","description":"Returns the ZIP file of all outputs, including .png and .csv files.","operationId":"download_execution_data_download_get","parameters":[{"name":"date","in":"query","required":true,"schema":{"type":"string","title":"Date"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}},"tags":[{"name":"Execute","description":"Run/Returns the status of execution by date: year-month-day"},{"name":"Retrieve Executions","description":"Returns a list of executions completed by the user"},{"name":"Plot","description":"Returns the plot image"},{"name":"Download","description":"Returns the ZIP file of all outputs, including .png and .csv files."}]}