Renamed inbound_sms_list key name to received_text_messages

This commit is contained in:
Ken Tsang
2017-11-07 12:19:44 +00:00
parent 425d66bf29
commit ac15e7fd8b
4 changed files with 15 additions and 15 deletions

View File

@@ -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

View File

@@ -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
}