-
Notifications
You must be signed in to change notification settings - Fork 147
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
login/logout/keep_alive resources created and implemented
tests fixed
- Loading branch information
1 parent
c524a6d
commit a37f3e1
Showing
8 changed files
with
56 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
from .baseresource import BaseResource | ||
|
||
|
||
class LoginResource(BaseResource): | ||
class Meta(BaseResource.Meta): | ||
identifier = 'login' | ||
attributes = { | ||
'sessionToken': 'session_token', | ||
'loginStatus': 'login_status', | ||
} | ||
|
||
|
||
class KeepAliveResource(BaseResource): | ||
class Meta(BaseResource.Meta): | ||
identifier = 'keep_alive' | ||
attributes = { | ||
'product': 'product', | ||
'status': 'status', | ||
'token': 'token', | ||
'error': 'error', | ||
} | ||
|
||
|
||
class LogoutResource(BaseResource): | ||
class Meta(BaseResource.Meta): | ||
identifier = 'logout' | ||
attributes = { | ||
'product': 'product', | ||
'status': 'status', | ||
'token': 'token', | ||
'error': 'error', | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters