Skip to content

Protocol Account

zoizer edited this page Mar 2, 2018 · 13 revisions
##################################################
##########  GET ALL ACCOUNTS(S)   (DEV) ##########
##################################################
GET localhost:8080/api/user/
input: -
output: json [{
		"id":"123",		// id of account
		"email":"a@b.c",	// email of account
		"nick":"abc",		// nick of account
		"password":"abc",	// password of account
	}, ...] 
	status: 200 OK
##################################################

##################################################
########## LOGIN ACCOUNT (RELEASE) V1.0 ##########
##################################################
GET localhost:8080/api/account/login/
input:	json '{
		"email":"a@b.c",	// user email			- 401 Not Implemented
		"password":"123"	// user password		- 401 Not Implemented
	}'
output:	json [{
		"id":"123",		// id of account
		"nick":"abc",		// nick of account
	}]
	status: 200 OK
##################################################

##################################################
##########  PUT ACCOUNT  (RELEASE) V1.0 ##########
##################################################
PUT localhost:8080/api/account/put/
input:	json '{
		"userid":"123",		// userid of editor			- 401 Not Implemented
		"id":"123",		// id of account			- 401 Not Implemented
		"email":"a@b.c",	// new email of account			- 401 Not Implemented
		"nick":"abc",		// new nick of account			- 401 Not Implemented
		"password":"123"	// new password of account		- 401 Not Implemented
	}'
output:	json '{
		"id":"123",		// id of account
		"nick":"abc",		// nick of account
	}'
	status: 200 OK
##################################################

##################################################
######### REGISTER ACCOUNT(RELEASE) V1.0 #########
##################################################
POST localhost:8080/api/account/register/
input:	json '{
		"email":"a@b.c",	// email of account			- 401 Not Implemented
		"nick":"abc",		// nick of account			- 401 Not Implemented
		"password":"123"	// password of account			- 401 Not Implemented
	}'
output:	json '{
		"id":"123",		// id of account
		"nick":"abc",		// nick of account
	}'
	status: 200 OK
##################################################

Clone this wiki locally