[ 
https://issues.apache.org/jira/browse/BEAM-13044?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Daria Malkova updated BEAM-13044:
---------------------------------
    Description:     (was: API:
struct example {
   id string, 
   name string,
   type string,
   description string,
}

struct example_output {
   output string,
   graph string,
   log string
}

API:
 - GetExample(id) -> string
 - GetExampleOutput(id) -> example_output

- GetListOfExamles(sdk, category)


Example of API usage:

GetListOfExamples(SDK_UNSPECIFIED, all) ->
{
        "Java":{
                "Common": ["example1", "example2", "..."],
                "SideInputs": ["example3", "..."],
                "I/O": ["example4", "example5", "..."]
        }
        ,
        "Python":{
                "Common": ["example11", "example21", "..."],
                "SideInputs": ["example31", "..."],
                "I/O": ["example41", "example51", "..."]
        }
        ,
        "Go":{...},
        "Scio":{...},
}

GetListOfExamples(SDK_JAVA, all) ->
{
        "Java":{
                "Common": ["example1", "example2", "..."],
                "SideInputs": ["example3", "..."],
                "I/O": ["example4", "example5", "..."]
        }
}

GetListOfExamples(SDK_JAVA, "Common") ->
{
        "Java":{
                "Common": ["example1", "example2", "..."],
        }
}

GetExample(id) ->

example{
        id,
        name, 
        ...
})

> Example storage design
> ----------------------
>
>                 Key: BEAM-13044
>                 URL: https://issues.apache.org/jira/browse/BEAM-13044
>             Project: Beam
>          Issue Type: Sub-task
>          Components: beam-playground
>            Reporter: Daria Malkova
>            Assignee: Daria Malkova
>            Priority: P3
>              Labels: beam-playground-sprint-2
>         Attachments: Screenshot 2021-10-28 at 14.03.32.png
>
>




--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to