How to add a new API route

How to add a new API route to the contract.contact table, is there any documentation to follow?

Here you can see an example

User application is documented in User Application — trytond latest documentation

Otherwise any method on a Model can be exposed to the RPC API: Models — trytond latest documentation