{
    "openapi": "3.1.2",
    "info": {
        "title": "Maize Bus Backend",
        "version": ""
    },
    "components": {
        "schemas": {
            "Token": {
                "type": "string"
            },
            "Reminder": {
                "type": "object",
                "properties": {
                    "stpid": {
                        "type": "string"
                    },
                    "rtid": {
                        "type": "string"
                    },
                    "thresh": {
                        "anyOf": [
                            {
                                "type": "number"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "eta": {
                        "anyOf": [
                            {
                                "type": "number"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    }
                },
                "required": [
                    "stpid",
                    "rtid",
                    "thresh",
                    "eta"
                ],
                "additionalProperties": false
            }
        }
    },
    "paths": {
        "/mbus/api/v3/setReminder": {
            "post": {
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "token": {
                                        "type": "string"
                                    },
                                    "stpid": {
                                        "type": "string"
                                    },
                                    "rtid": {
                                        "type": "string"
                                    },
                                    "thresh": {
                                        "type": "number"
                                    }
                                },
                                "required": [
                                    "token",
                                    "stpid",
                                    "rtid",
                                    "thresh"
                                ],
                                "additionalProperties": false
                            }
                        }
                    },
                    "required": true
                },
                "summary": "",
                "description": "",
                "parameters": [],
                "responses": {
                    "200": {
                        "description": "success"
                    }
                }
            }
        },
        "/mbus/api/v3/activeReminders/{token}": {
            "get": {
                "summary": "active reminders",
                "description": "big long description idk, gets the reminders associated with a **registration token**, which is gotten from fcm or smth",
                "parameters": [
                    {
                        "name": "token",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "reminders": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/Reminder"
                                            }
                                        }
                                    },
                                    "required": [
                                        "reminders"
                                    ],
                                    "additionalProperties": false
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}