We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48a079f commit 0b8d1a4Copy full SHA for 0b8d1a4
section11/resources/item.py
@@ -80,4 +80,7 @@ def get(self):
80
items = [item.json() for item in ItemModel.find_all()]
81
if user_id:
82
return {'items': items}, 200
83
- return {'items': [item['name'] for item in items]}, 200
+ return {
84
+ 'items': [item['name'] for item in items],
85
+ 'message': 'More data available if you log in.'
86
+ }, 200
0 commit comments