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

Test the current version of the API #1

Closed
ghilbrae opened this issue Mar 14, 2019 · 5 comments
Closed

Test the current version of the API #1

ghilbrae opened this issue Mar 14, 2019 · 5 comments
Assignees
Labels
BB: Table Component Table Component Building Block help wanted Extra attention is needed question Further information is requested

Comments

@ghilbrae
Copy link
Collaborator

ghilbrae commented Mar 14, 2019

@therter I have just finished configuring the service. It can be found here:

https://clarity.meteogrid.com/api/request_exposure
https://clarity.meteogrid.com/api/request_hazard

There are only two options for now. To make it work you need to do a POST request with a certain request.json file depending on the request. You can find the examples in the examples folder: https://github.com/clarity-h2020/table-state-rest-api/tree/master/examples

I've been using the layers already available in geoserver. I'm keeping in mind what @maesbri said about a different source in the future, but I won't implement it until I have some feedback.

Note that the requests are very sensible to the bbox. I'm working on some error handling on that regard and on other possible sources of error now, but it's not yet available in the server.

The responses should look something like what you see in the same folder.

@ghilbrae ghilbrae added help wanted Extra attention is needed question Further information is requested labels Mar 14, 2019
@ghilbrae
Copy link
Collaborator Author

BTW, you can check the available layers in here: https://clarity.meteogrid.com/geoserver/web/wicket/bookmarkable/org.geoserver.web.demo.MapPreviewPage?3

Note that some are duplicated. This is because we are changing the workspaces but we have not deleted the previous ones.

@therter
Copy link

therter commented Mar 15, 2019

I have tested the service with curl and it works fine. But to use the service within the table-component, the following response header must be set:
Access-Control-Allow-Origin: *

@ghilbrae
Copy link
Collaborator Author

ghilbrae commented Mar 15, 2019

I think it should work now. I've added the header and I'm getting it in my responses. Let me know if it works for you too.

@therter
Copy link

therter commented Mar 15, 2019

Thank you, it works for me too

@ghilbrae
Copy link
Collaborator Author

I'm closing this issue now.
Please open new issues for bugs, questions, new functionality/options.

@p-a-s-c-a-l p-a-s-c-a-l added the BB: Table Component Table Component Building Block label Oct 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BB: Table Component Table Component Building Block help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants