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

feat(rest.packages.provider): add endpoint for .dp upload #4891

Closed
wants to merge 11 commits into from

Conversation

mattdibi
Copy link
Contributor

@mattdibi mattdibi commented Oct 11, 2023

This PR follows #4868 and adds the endpoint for .dp file upload. It leverages multipart/form-data under the hood.

Can be tested using:

export ADDRESS=<addr>
export USERNAME=<user>
export PASSWORD=<pass>

and then:

curl -X POST -k -u $USER:$PASSWORD --header 'Content-Type: multipart/form-data' --form 'file=@"/path/to/org.eclipse.kura.ai.triton.server-1.2.0.dp"' https://$ADDRESS/services/deploy/v2/_upload -v

Roadmap:

Dependency:

This PR introduces a dependency on jersey-media-multipart v 2.27 which adds JAX-RS Integration with MIME MultiPart Message Formats. Eclipse Jersey is an Eclipse project therefore there should be no issue with Licensing.

@mattdibi mattdibi changed the title feat(rest.packages.provider): add endpoint for .dp upload feat(rest.packages.provider): add endpoint for .dp upload Oct 11, 2023
@mattdibi
Copy link
Contributor Author

Superseded by #4894

@mattdibi mattdibi closed this Oct 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant