Add use name and client URI to session response

I probably need to change the URI to the session URI
This commit is contained in:
Eli Ribble 2016-05-17 14:40:29 -06:00
parent d83312234b
commit beb3ad89c5
1 changed files with 2 additions and 0 deletions

View File

@ -13,8 +13,10 @@ import vanth.user
class Session(sepiida.endpoints.APIEndpoint): class Session(sepiida.endpoints.APIEndpoint):
ENDPOINT = '/session/' ENDPOINT = '/session/'
SIGNATURE = sepiida.fields.JSONObject(s={ SIGNATURE = sepiida.fields.JSONObject(s={
'name' : sepiida.fields.String(methods=['GET']),
'username' : sepiida.fields.String(), 'username' : sepiida.fields.String(),
'password' : sepiida.fields.String(methods=['POST']), 'password' : sepiida.fields.String(methods=['POST']),
'uri' : sepiida.fields.URI('session', methods=['GET'])
}) })
@staticmethod @staticmethod
def post(payload): def post(payload):