I have a simple API GET method that returns list of IP's in terminal the implementation works fine and and I can use JWT token to get list of IP. However when I try the same using TRY-OUT button on Swagger documentation page it hangs for ever.
Here is the implementation:
@url_api.route("/getallips")
@url_api.header('Authorization: Bearer', 'JWT TOKEN', required=True)
class IpList(Resource):
@jwt_required
def get(self):
"""
this function handles request to provide all ip's.
:return: List of registered ip address metadata mapped to url's.
"""
return jsonify(get_all_publicIp())
Am I missing something :