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

External tools #11

Open
wants to merge 30 commits into
base: main
Choose a base branch
from
Open

External tools #11

wants to merge 30 commits into from

Conversation

jp-tosca
Copy link
Contributor

@jp-tosca jp-tosca commented Feb 18, 2025

This pull request introduces 16 new endpoints to manage external tools and their versions in the Dataverse-Marketplace application.

New Features:

  • Cache mechanism for the get all tools endpoint.

New Endpoints:

Tools:

✅* [GET] /api/tools
✅* [POST] /api/tools
✅* [GET] /api/tools/{toolId}
✅* [PUT] /api/tools/{toolId}

Versions:

✅* [GET] /api/tools/{toolId}/versions
✅* [POST] /api/tools/{toolId}/versions
✅* [GET] /api/tools/{toolId}/versions/{versionId}
✅* [PUT] /api/tools/{toolId}/versions/{versionId}
✅* [DELETE] /api/tools/{toolId}/versions/{versionId}

Images:

✅* [GET] /api/tools/{toolId}/images
✅* [POST] /api/tools/{toolId}/images
✅* [DELETE] /api/tools/{toolId}/images/{imageId}

Manifest

✅* [GET] /api/tools/{toolId}/versions/{versionId}/manifests
✅* [POST] /api/tools/{toolId}/versions/{versionId}/manifests
✅* [DELETE] /api/tools/{toolId}/versions/{versionId}/manifests/{manifestId}

Stored Resource

  • [GET] /api/stored-resource/{resourceId}

New Tests:

  • ExternalToolTest

Closes:

…em, along with related model and controller updates
…database resource storage, including updates to ExternalToolManifest handling and repository definitions.
…d tool functionality and update request examples
…ionDTO, and enhance ExternalToolVersionController with caching and authorization
@jp-tosca jp-tosca marked this pull request as ready for review February 20, 2025 18:25
@jp-tosca jp-tosca requested a review from scolapasta February 20, 2025 18:25
@jp-tosca jp-tosca added the Marketplace Tracking label for marketplace related issues label Feb 20, 2025
@scolapasta scolapasta self-assigned this Feb 24, 2025
@pdurbin pdurbin mentioned this pull request Feb 25, 2025
*/
@GetMapping()
@ExternalToolsAPIDocs.ExternalToolsListDoc
public ResponseEntity<?> getAllTools() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This API endpoint doesn't seem to work for me. Getting just one tool works, but not all. I just get an empty array.

pdurbin@beamish dataverse-marketplace % curl -s http://localhost:8080/api/tools/1 | jq .
{
  "id": 1,
  "name": "AskTheData",
  "description": "Ask the Data is an ...",
  "versions": [
    {
      "id": 1,
      "version": "1.0",
      "releaseNote": "This release includes a new feature ...",
      "dataverseMinVersion": "6.0",
      "manifests": [
        {
          "manifestId": 2,
          "storedResourceId": 5
        }
      ]
    }
  ],
  "imagesResourceId": [
    3
  ]
}
pdurbin@beamish dataverse-marketplace % curl -s http://localhost:8080/api/tools | jq .  
[]
pdurbin@beamish dataverse-marketplace % 

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is weird, I been using that endpoint for the main page and it works fine, I will do a fresh test soon and post back.

@cmbz cmbz added the FY25 Sprint 17 FY25 Sprint 17 (2025-02-12 - 2025-02-26) label Feb 26, 2025
@cmbz cmbz added the FY25 Sprint 18 FY25 Sprint 18 (2025-02-26 - 2025-03-12) label Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FY25 Sprint 17 FY25 Sprint 17 (2025-02-12 - 2025-02-26) FY25 Sprint 18 FY25 Sprint 18 (2025-02-26 - 2025-03-12) Marketplace Tracking label for marketplace related issues Size: 80
Projects
Status: In Review 🔎
4 participants