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

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -

python - Error while using APScheduler: 'NoneType' object has no attribute 'now' -