An example of a gcube service based on Smartgears 4
Go to file
Alfredo Oliviero 6ab3c110a2 gitgnore from https://www.toptal.com/developers/gitignore/api/java,eclipse,visualstudiocode,intellij,macos,linux,windows,maven 2024-02-23 18:44:28 +01:00
.vscode gitgnore from https://www.toptal.com/developers/gitignore/api/java,eclipse,visualstudiocode,intellij,macos,linux,windows,maven 2024-02-23 18:44:28 +01:00
docker put container in offline mode 2024-02-23 17:07:31 +01:00
gcube/extra-resources/WEB-INF AuthorizationService 2024-02-23 18:44:16 +01:00
src/main/java/org/gcube/service/helloworld style - code formatting 2024-02-23 18:44:28 +01:00
.gitignore gitgnore from https://www.toptal.com/developers/gitignore/api/java,eclipse,visualstudiocode,intellij,macos,linux,windows,maven 2024-02-23 18:44:28 +01:00
CHANGELOG.md first commit 2024-02-21 11:44:41 +01:00
Dockerfile Added an example of ecluded method 2024-02-23 15:20:22 +01:00
FUNDING.md first commit 2024-02-21 11:44:41 +01:00
LICENSE.md first commit 2024-02-21 11:44:41 +01:00
README.md AuthorizationService 2024-02-23 18:44:16 +01:00
buildImageAndStart.sh style - code formatting 2024-02-23 18:44:28 +01:00
buildImageAndStartWithDebug.sh style - code formatting 2024-02-23 18:44:28 +01:00
pom.xml style - code formatting 2024-02-23 18:44:28 +01:00

README.md

Smartgears4 Hello World

HelloWorld service for smartgears4

Structure of the project

  • The source code is present in the src folder.

Built With

Documentation

start the docker container ./buildImageAndStart.sh

test urls (replace {{TOKEN}} with your token):

http://localhost:8080/helloworld/guest

http://localhost:8080/helloworld/details?gcube-token={{TOKEN}} http://localhost:8080/helloworld/hello/details?gcube-token={{TOKEN}}

http://localhost:8080/helloworld/auth?gcube-token={{TOKEN}} (checks for myRole role) http://localhost:8080/helloworld/auth/orm_member?gcube-token={{TOKEN}} (checks for OrganizationMember role)

Authentication:

GCUBE-TOKEN param

obtain personal token at https://next.dev.d4science.org/group/gcube/home

add

DEBUG

start the docker container in debug Mode ./buildImageAndStartWithDebug.sh

connect the JAVA debugger to port 5005

  • VSCODE: press the green play button and start "Debug (Attach)

Change log

See Releases.

Authors

License

This project is licensed under the EUPL V.1.1 License - see the LICENSE.md file for details.

About the gCube Framework

This software is part of the gCubeFramework: an open-source software toolkit used for building and operating Hybrid Data Infrastructures enabling the dynamic deployment of Virtual Research Environments by favouring the realisation of reuse oriented policies.

The projects leading to this software have received funding from a series of European Union programmes including:

  • the Sixth Framework Programme for Research and Technological Development
    • DILIGENT (grant no. 004260);
  • the Seventh Framework Programme for research, technological development and demonstration
    • D4Science (grant no. 212488), D4Science-II (grant no.239019), ENVRI (grant no. 283465), EUBrazilOpenBio (grant no. 288754), iMarine(grant no. 283644);
  • the H2020 research and innovation programme
    • BlueBRIDGE (grant no. 675680), EGIEngage (grant no. 654142), ENVRIplus (grant no. 654182), Parthenos (grant no. 654119), SoBigData (grant no. 654024),DESIRA (grant no. 818194), ARIADNEplus (grant no. 823914), RISIS2 (grant no. 824091), PerformFish (grant no. 727610), AGINFRAplus (grant no. 731001);