How to use the services api in Zotonic?

I’m using version 0.82.0 and I tried to make service_list_turism. I want to make a get request from a page /api/list/turism , but in response I get 404 Object Not Found

-module(service_list_turism).
-svc_title("turism list").
-svc_needauth(true).

-export([process_get/2]).


-include_lib("zotonic.hrl").

process_get(_ReqData, Context) ->
	?DEBUG("!!!").

I looked in controller_api and my module appears there correctly and all methods return the ability to work with the api point.but from the page for the get request the access point is not available. What could be the problem ?

I’ll answer myself, making an arbitrary endpoint will not work, the format of the call point is always Module name / API method

1 Like