-
Notifications
You must be signed in to change notification settings - Fork 21
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
Landing page for the Series REST-API #382
Conversation
(cherry picked from commit 9018961)
(cherry picked from commit ec8b3a0)
(cherry picked from commit 88f792b)
(cherry picked from commit e8f6855)
(cherry picked from commit dcc3a76)
…page Conflicts: rest/pom.xml spi-impl/series/series-dao-webapp/src/main/webapp/WEB-INF/spring/api_v1_mvc.xml spi-impl/series/series-dao-webapp/src/main/webapp/WEB-INF/spring/dispatcher-servlet.xml spi-impl/series/series-dao-webapp/src/main/webapp/WEB-INF/web.xml
The merge conflict is because I've forgot to pull the changes from the upstream repo. Therefore I've edited the series-dao before It has been moved to the separate repo. @ridoo, can you tell me please in which SPI implementations the landing page should be added? |
I think, it would be nice if you create an extra module which can be overlayed in the webapp module of the actual SPI implementation. Probably this module can be further used later on to add other stuff like Web API documentation (not sure if there is a Jekyll-Maven plugin which could trigger a site build on What do you think? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- move content to an extra module which can be overlayed (see examples on SOS webapp) on the actual webapp (like in dao-series-api)
- make changes to avoid configuration conflicts
public class LandingPageController { | ||
@RequestMapping | ||
public String redirectToLandingPage() { | ||
return "redirect:/api/"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this will break, if implementations choose different servlet contexts thant /api/*
(see web.xml
). You could configure the context, though, within the application.properties
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
<!-- </bean> --> | ||
<bean class="org.springframework.web.servlet.view.BeanNameViewResolver" /> | ||
<bean class="org.springframework.web.servlet.view.InternalResourceViewResolver"> | ||
<property name="prefix" value="/" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use a prefix different from /
just to separate API-related content from stuff the actual webapp ships.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved to the landing
directory
Yes, it makes sense to include resources in a common module. Also have found this maven-jekyll plugin. It can be an option, if the windows builds are not required. |
cool .. you could give it a try .. make sure that you place the plugin in a profile which is only run on Linux machines |
I can't build the proxy on the antego/series-sos-proxy@80327c5 commit.
Did I forget to build something else? |
Please check if you are on the newest revision ... hint: have a look at other repositories available |
Copied the Jekyll |
@antego could you please also create PR on the https://github.com/52North/dao-series-api repo showing how you integrated the new overlay module? Please reference the PR here so that one can reproduce what you are doing |
@ridoo could you tell me please which docs should be placed in a dao-series
webapp? Currently the docs from the series-rest-api [0] is copied to the
dao-webapp. Maybe I can add jekyll-generated docs [1] to the dao-webapp and leave a link to them from a
landing page.
[0] https://github.com/52North/series-rest-api/tree/develop/rest/src/main/webapp/api-doc
[1] https://github.com/52North/series-rest-api/tree/develop/docs
2017-05-31 14:33 GMT+03:00 Henning Bredel <[email protected]>:
… @antego <https://github.com/antego> could you please also create PR on
the https://github.com/52North/dao-series-api repo showing how you
integrated the new overlay module? Please reference the PR here so that one
can reproduce what you are doing
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#382 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABYlyzjBm_meWQsk99EA8Xa7y-tberpFks5r_VAFgaJpZM4NhaJA>
.
|
@ridoo I've created a PR which integrates the new module into a webapp 52North/sensorweb-server-dao-impl#43. |
Implementation of requested feature #134