From a13f4cac2c5e76a54bc90bcc541cbe906efa3f1a Mon Sep 17 00:00:00 2001 From: nolash Date: Mon, 10 Aug 2020 09:25:11 +0200 Subject: [PATCH] Add 014 --- spec/014_notification_api_extension.md | 41 ++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 spec/014_notification_api_extension.md diff --git a/spec/014_notification_api_extension.md b/spec/014_notification_api_extension.md new file mode 100644 index 0000000..63e7a39 --- /dev/null +++ b/spec/014_notification_api_extension.md @@ -0,0 +1,41 @@ +# API EXTENSIONS FOR VIEWING NOTIFICATION DATABASE + + +## NOMENCLATURE + +Values enclosed with `<>` are _required_. + +Values enclosed with `[]` means _optional_. + +No enclosure means _literal_. + +## ADDED METHODS + +Endpoints _added_ are found under /api/ext/ + +### `/api/ext/sms/` `/api/ext/sms/user//` `/api/ext/sms//` + +#### **GET** + +Returns a list of latest sms notifications sent by the platform. + +If `user_id` or `phone_number` is given, only entries for the affected user will be returned. + +Accepts one query string: + +``` + limit: [uint] - maximum items to return (default: 100) +``` + +Response payload: + +``` +[ + { + datetime: , + number: , + message: , + }, + ... +] +```