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

[TASK]: Support Decapodes AMR #2638

Closed
7 tasks
YohannParis opened this issue Jan 31, 2024 · 0 comments · Fixed by #2653
Closed
7 tasks

[TASK]: Support Decapodes AMR #2638

YohannParis opened this issue Jan 31, 2024 · 0 comments · Fixed by #2653
Assignees
Labels
feature New feature or request integration TA2 task Development task

Comments

@YohannParis
Copy link
Member

YohannParis commented Jan 31, 2024

Describe the task

We need to support Decapodes AMR in the data-service.

Task Items

  • Create new model DecapodesContext.java
// Just be a wrapper around a JSON blob.
private ModelHeader header;
private Object context;
@JsonProperty("parent_model")
private UUID modelId;
  • Create new model DecapodesConfiguration.java
// Just be a wrapper around a JSON blob.
private ModelHeader header;
private Object configuration;
@JsonProperty("parent_context")
private UUID decapodesContextId;
{
   "header": { 
      "id": UUID,
      // ...all properties of 'header'
    },
   "model": // ...all properties of 'model'
}
{
   "header": { 
      "id": UUID,
      "parent_model": UUID,
      // ...all properties of 'header'
    },
   "context": // ...all properties of 'context'
}
{
   "header": { 
      "id": UUID,
      "parent_context": UUID,
      // ...all properties of 'header'
    },
   "configuration": // ...all properties of 'configuration'
}
  • /api/model-combined/decapodes/{DecapodesConfigurationId} endpoint to generate a Decapodes AMR Combined
    example of a JSON output
    This one needs to combine a Model, DecapodesContext, and DecapodesConfiguration in one result.
    The DecapodesContext is fetch via parent_context in DecapodesConfiguration.
    The Model is fetch via parent_model in DecapodesContext.
{
   "header": { 
      "id": UUID, // Id of the Model
      // ...all properties of 'header'
    },
   "model":  ,// ...all properties of 'model'
   "context": , // ...all properties of 'context'
   "configuration": ,// ...all properties of 'configuration'
}
  • Write test for the new endpoints
@YohannParis YohannParis added feature New feature or request task Development task integration TA2 labels Jan 31, 2024
@YohannParis YohannParis linked a pull request Feb 5, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request integration TA2 task Development task
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants