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

New endpoint for receiving UVL files from GitHub #22

Closed
drorganvidez opened this issue Dec 24, 2024 · 1 comment
Closed

New endpoint for receiving UVL files from GitHub #22

drorganvidez opened this issue Dec 24, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@drorganvidez
Copy link
Member

Use case:

We need an endpoint to receive a full path from GitHub and load that model.

@drorganvidez drorganvidez added the enhancement New feature or request label Dec 24, 2024
@sebasruii
Copy link
Collaborator

As of current implementation, it is possible to load a model from an only text response. So it is possible to load a model from gitHub by using its "raw" content URL.

For example, if we want to import the model
https://github.com/flamapy/flamapy-ide/blob/main/tests/test_models/uvlfile.uvl

The plugin could take advantage of the raw content URL for the file:
https://raw.githubusercontent.com/flamapy/flamapy-ide/refs/heads/main/tests/test_models/uvlfile.uvl

and import it into flamapyIDE with the following link:
https://ide.flamapy.org/?import=https://raw.githubusercontent.com/flamapy/flamapy-ide/refs/heads/main/tests/test_models/uvlfile.uvl

The raw content URL follows a defined structure, which could be useful for a plugin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants