Disable cache for a custom page from route declaration.
If you want to disable cache for a custom controller (Custom module), You have no_cache option (YOUR_MODULE.routing.yml).
Example :
File : mymodule.routing.yml
This is a simple example of a web service. For the example, We will make a service to multiply two numbers.
Here : mywebservice