
__author__ = "Filippo Panessa <filippo.panessa@uzh.ch>"
__copyright__ = ("Copyright (c) 2016 S3IT, Zentrale Informatik,"
" University of Zurich")

from flask import jsonify

from . import auth
from app.auth.decorators import requires_auth

@auth.route('/test')
@requires_auth
def authTest():
    return jsonify({'status': 200, 
                    'code': 'authorization_success',
                    'description': "All good. You only get this message if you're authenticated."
                    })



__author__ = "Filippo Panessa <filippo.panessa@uzh.ch>"
__copyright__ = ("Copyright (c) 2016 S3IT, Zentrale Informatik,"
" University of Zurich")

from flask import jsonify

from . import auth
from app.auth.decorators import requires_auth

@auth.route('/test')
@requires_auth
def authTest():
    return jsonify({'code': 'authorization_success',
                    'description': "All good. You only get this message if you're authenticated."
                    })


Remove code field from API /auth/test response
Remove code field from API /auth/test response

  
  __author__ = "Filippo Panessa <filippo.panessa@uzh.ch>"
  __copyright__ = ("Copyright (c) 2016 S3IT, Zentrale Informatik,"
  " University of Zurich")
  
  from flask import jsonify
  
  from . import auth
  from app.auth.decorators import requires_auth
  
  @auth.route('/test')
  @requires_auth
  def authTest():
+     return jsonify({'code': 'authorization_success',
-     return jsonify({'status': 200, 
-                     'code': 'authorization_success',
                      'description': "All good. You only get this message if you're authenticated."
                      })
  
  
Remove code field from API /auth/test response
## Code Before:

__author__ = "Filippo Panessa <filippo.panessa@uzh.ch>"
__copyright__ = ("Copyright (c) 2016 S3IT, Zentrale Informatik,"
" University of Zurich")

from flask import jsonify

from . import auth
from app.auth.decorators import requires_auth

@auth.route('/test')
@requires_auth
def authTest():
    return jsonify({'status': 200, 
                    'code': 'authorization_success',
                    'description': "All good. You only get this message if you're authenticated."
                    })


## Instruction:
Remove code field from API /auth/test response
## Code After:

__author__ = "Filippo Panessa <filippo.panessa@uzh.ch>"
__copyright__ = ("Copyright (c) 2016 S3IT, Zentrale Informatik,"
" University of Zurich")

from flask import jsonify

from . import auth
from app.auth.decorators import requires_auth

@auth.route('/test')
@requires_auth
def authTest():
    return jsonify({'code': 'authorization_success',
                    'description': "All good. You only get this message if you're authenticated."
                    })

