- Change Authentication to Basic
- Change API names to reflect simulator needs
Returns the latest element
return jsonify({"latest": LATEST})
Registers a new user
if error:
return jsonify({"status": 400, "error_msg": error}), 400
else:
return "", 204
returns all messages that is not flagged
return jsonify(filtered_msgs)
GET: returns all messages by a specific user that is not flagged
return jsonify(filtered_msgs)
POST: adds the message to the db and returns
return "", 204
GET:
POST: starts following or unfollowing the user
if error:
return "", 204
else:
return jsonify(followers_response)