This is a custom module. It just load the view.
This is static module
This is a query module. It runs SQL query and returns the data to the view.
Query: select * from comments where deleted_at is null limit 5
This is a service module. It returns data from a service.
Service URL: https://picsum.photos/v2/list?limit=4
This is a combination of service and query module. Sometime we need data from service and query both.
In this case data has two properties. ie. serviceData, queryData
Service URL: https://picsum.photos/v2/list?page=2&limit=4
Query: select * from site_props where site_id=:site_id and group_name="SocialLinks" and is_public=1 and deleted_at is null;
This is a UrlSerivce module. Sometime you need to call a service based on query parameter. Below URL will be called with your limit param.
Service URL: https://picsum.photos/v2/list?page=2&limit=:limit