mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-01 15:46:07 -05:00
Renamed inbound_sms_list key name to received_text_messages
This commit is contained in:
@@ -34,7 +34,7 @@ def get_inbound_sms_by_number(user_number):
|
||||
)
|
||||
|
||||
return jsonify(
|
||||
inbound_sms_list=[i.serialize() for i in paginated_inbound_sms],
|
||||
received_text_messages=[i.serialize() for i in paginated_inbound_sms],
|
||||
links=_build_links(
|
||||
paginated_inbound_sms,
|
||||
endpoint='get_inbound_sms_by_number',
|
||||
@@ -58,7 +58,7 @@ def get_all_inbound_sms():
|
||||
)
|
||||
|
||||
return jsonify(
|
||||
inbound_sms_list=[i.serialize() for i in paginated_inbound_sms],
|
||||
received_text_messages=[i.serialize() for i in paginated_inbound_sms],
|
||||
links=_build_links(paginated_inbound_sms, endpoint='get_all_inbound_sms')
|
||||
), 200
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ get_inbound_sms_response = {
|
||||
"description": "GET list of inbound sms response schema",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"inbound_sms_list": {
|
||||
"received_text_messages": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
@@ -57,7 +57,7 @@ get_inbound_sms_response = {
|
||||
"required": ["current"]
|
||||
}
|
||||
},
|
||||
"required": ["inbound_sms_list", "links"],
|
||||
"required": ["received_text_messages", "links"],
|
||||
"definitions": {
|
||||
"inbound_sms": get_inbound_sms_single_response
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user