Skip to content

Conversation

@luan122
Copy link
Owner

@luan122 luan122 commented Jun 25, 2020

First implemetation of character methods, only simple actions will be implemented for now;

List methods:

  • Getcharbyaccountid - retrieve all characters binded with the passed account id
  • Getcharbyid - retrieve character binded with the passed character id
  • GetChars - retrieve all characters binded with the account that is loged in, being possible to retrieve the data paged or not
  • GetList - retrive all characnters registereds being possible to retrieve the data paged or not

Change methods:

  • Edit - Edit the character, needs to pass the character Id in url and the JsonPatchDocument in the body to edit character, it can edit any value in char table, so if you want to change localization, hair, save point you will need this method.

Delete methods:

  • Delete - let the loged account or admin delete the selected char (need to think about it since it will change alot of tables)

Security:

  • Some methods need to be admin to start it, like GetList, Getcharbyaccountid
  • Validade if the loged account own the char is trying to edit or get, if admin it can bypass
  • Revise all security to let only admins change or list everything in the DB

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants