java - Evaluation and advice for improvement of the REST controller -


i wrote rest controller message management https://pastebin.com/xuhgnlvw .i ask opinion on names of addresses, number of objects , whole controller. think such rest controller ok or should improved?

@getmapping(value = "/sent/{id}") @getmapping(value = "/received/{id}") @deletemapping(value = "/sent") @deletemapping(value = "/received") @getmapping(value = "/sent/search") @getmapping(value = "/received/search") @getmapping(value = "/sent/list") @getmapping(value = "/received/list") 

is such division of addresses ok?


Comments

Popular posts from this blog

.net - Generate assembly with Roslyn -

ZeroMQ on Windows, with Qt Creator -

batch file - filebot superstrict script: need tiny video sample or other solution -