Publishing REST web service from FirstSpirit
Author: isac_jimenez
Publication Date: 4/23/2021 16:25
Hi experts!
I would like to know how to provide a web service (ideally restful service although SOAP would work too) in FirstSpirit server to be consumed by an external server.
A bit of context: We have a SAP Netweaver portal integrated with FirstSpirit. Now they want to have a page in portal where they can check the current deployment status in First Spirit. For that I figured I would need to build an API in First Spirit that would provide such information which would be read by Portal on demand.
I reviewed the documentation but could not find the right place... Any advice would be much appreciated.
Thanks!
Isac Jiménez
Tags: rest api, web service
-
Author: felix_reinhold - 4/26/2021 8:15
Hi Isac,
you can create a global webapplication in FirstSpirit.
FirstSpirit Online Documentation - Module Definition see web-app (scopes "global").
Just create a FirstSpirit-Module and add a web-app with scope globale to your module.xml.
As web-app class you can set a class that extends AbstractWebApp (FirstSpirit Developer-API) .
Then you have a java webapp that you can use to create your REST-API.
best regards
Felix
0 -
Author: isac_jimenez - 4/26/2021 9:37
Thanks Felix,
I'll follow your instructions and let you know if it worked.
Regards,
Isac Jimenez
0 -
Author: isac_jimenez - 4/30/2021 9:50
Hi Felix,
Thank you for the support. I followed this blog: Creating a FirstSpirit web-module: Part 2 – Building the module and was able to deploy it to the FS server. I installed it in the Preview and Production(live) Web components (just like the blog explains) but could not figure out the right URL. I ended up creating my own "Web Application" (Server>Server properties>Web applications) and adding my module there. That worked.
Anyway, thanks again for pointing me in the right direction.
Regards,
Isac Jiménez
0 -
Author: felix_reinhold - 4/30/2021 9:52
Isac Jimenez schrieb:
I ended up creating my own "Web Application" (Server>Server properties>Web applications) and adding my module there.
That's exactly what I meant :smileyhappy:
0
Please sign in to leave a comment.
Comments
4 comments