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

ios - MKAnnotationView layer is not of expected type: MKLayer -

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -