Extend Openmrs Restws using Spring

Are there any examples available of how to expand that API (create my own endpoints) using Spring? The last time I tried to understand how to program a module I got confused by all the XML’s files generated…

Did you take a look at this? https://wiki.openmrs.org/display/docs/Adding+a+Web+Service+Step+by+Step+Guide+for+Core+Developers