Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

REST API: remove 'html' from path to request resource in html format #239

Closed
lgoltz opened this issue Sep 12, 2017 · 3 comments
Closed

REST API: remove 'html' from path to request resource in html format #239

lgoltz opened this issue Sep 12, 2017 · 3 comments
Assignees
Milestone

Comments

@lgoltz
Copy link
Contributor

lgoltz commented Sep 12, 2017

No description provided.

@lgoltz
Copy link
Contributor Author

lgoltz commented Sep 12, 2017

Local branch: https://github.com/lat-lon/teamengine/tree/removeHtmlFromRestPath-239

Fixed my moving handleHtmlGet() from TestResultLog to TestResource and specifying @produces per REST method.

Commit: https://github.com/lat-lon/teamengine/commit/2b22d740116402e4b3c647f7986d4bd0a28d7fdb

@dstenger
Copy link
Contributor

dstenger commented Sep 14, 2017

Test with ets-wfs20 and [1] (bases on TestNG)

Endpoint: http://localhost:8081/teamengine/rest/suites/wfs20/1.26/run?wfs=http://cite.deegree.org/deegree-webservices-3.4-RC3/services/wfs200?service=WFS%26request=GetCapabilities

  • No header
    • EARL result is displayed.
  • Header: Accept: application/rdf+earl
    • EARL result is displayed.
  • Header: Accept: application/xml
    • XML (TestNG) result is displayed.
  • Header: Accept: application/zip
    • Zip-file with HTML result is returned and zip-file can be unzipped. HTML pages are present and can be opened.

[1] http://cite.deegree.org/deegree-webservices-3.4-RC3/services/wfs200?service=WFS&request=GetCapabilities

@dstenger
Copy link
Contributor

dstenger commented Sep 14, 2017

Test with ets-wms13 and [1] (bases on CTL)

Endpoint: http://localhost:8081/teamengine/rest/suites/wms/1.23/run?capabilities-url=http://cite.deegree.org/deegree-webservices-3.4-RC3/services/wms130?service=WMS%26request=GetCapabilities

  • No header
    • EARL result is displayed (incomplete as CTL scripts have not been extended, yet).
  • Header: Accept: application/rdf+earl
    • EARL result is displayed (incomplete as CTL scripts have not been extended, yet).
  • Header: Accept: application/xml
    • XML (CTL) result is displayed.
  • Header: Accept: application/zip; /html is added to path
    • Zip-file with HTML result is returned and zip-file can be unzipped. HTML pages are present and can be opened (incomplete as CTL scripts have not been extended, yet).

[1] http://cite.deegree.org/deegree-webservices-3.4-RC3/services/wms130?service=WMS&request=GetCapabilities

@dstenger dstenger added this to the 5.0 milestone Oct 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants