benoitdm-oslandia / pg_featureserv

Apache License 2.0
1 stars 0 forks source link

Task - 404 error on a GET request to "/functions/fun_a/items" #139

Open nrevelant opened 1 year ago

nrevelant commented 1 year ago

A GET request on the following route "/functions/fun_a/items" into the mock tests brings a 404 error : "Caused by: Error: No data read from: postgisftw.fun_a"

benoitdm-oslandia commented 1 year ago

That's strange indeed! Is there a test to check that?

nrevelant commented 1 year ago

The test has not been pushed yet, in order to allow the format handling to be complete. But it is quite easy to add this test, the route is commented into the TestGetFormatHandlingSuffix unit test from the following file : internal/service/mock_test/handler_get_test.go