-
Notifications
You must be signed in to change notification settings - Fork 0
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
base: main
Are you sure you want to change the base?
External tools #11
Conversation
…th database migration scripts
…em, along with related model and controller updates
…or handling tool manifests
…tabase and version metadata models
…database resource storage, including updates to ExternalToolManifest handling and repository definitions.
…e storage type definitions
… for filesystem storage support
…ternalToolService to handle image storage
… handle item images
…d tool functionality and update request examples
…for the Ask the Data tool
…and RoleCreationRequest
…uest models and repository methods
…ad and delete endpoints
…t and manifest handling
…e management and API documentation
…addition and image handling
…ionDTO, and enhance ExternalToolVersionController with caching and authorization
…ng database migration
*/ | ||
@GetMapping() | ||
@ExternalToolsAPIDocs.ExternalToolsListDoc | ||
public ResponseEntity<?> getAllTools() { |
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 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 %
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.
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.
This pull request introduces 16 new endpoints to manage external tools and their versions in the Dataverse-Marketplace application.
New Features:
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:
Closes: