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 nick-rv opened 2 years ago

nick-rv commented 2 years 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 2 years ago

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

nick-rv commented 2 years 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