Details
-
Quality Risk
-
Resolution: Done
-
Blocker
-
8.12
-
None
-
None
Description
Generated REST Service war have the following configuration in web.xml
<servlet-mapping> <servlet-name>RestDataservice</servlet-name> <url-pattern>/*</url-pattern> </servlet-mapping>
This means all request be thought as rest request. As attached screen, all shot,
http://localhost:8080/sample_1/swagger/css/typography.css http://localhost:8080/sample_1/swagger/lib/jquery-1.8.0.min.js http://localhost:8080/sample_1/swagger/lib/highlight.7.3.pack.js
be thought as rest request, but no relevant api define, 404 returned.
Current design is for guarantee the rest api path like
/{vdbName_vdbVersion}/{modelName}/{procedureName}/{path}
for example
http://localhost:8080/sample_1/view/g1/1
But, I do wonder we really need to treat all are rest request? For example, if we request http://localhost:8080/sample_1, a rude 404 page with stacktrace return, we may consider and a customized 404 page.
Attachments
Issue Links
- is caused by
-
TEIID-3521 Provide Swagger support on auto-generated REST web services
- Closed