•  
      story #13856 have a REST end point to get my artifacts
    Summary
    Empty
    have a REST end point to get my artifacts
    Empty
    GET /users/:id/artifacts?query=[""]
    [
      {
        'id': int,
        'uri': string,
        'html_url': string,
        'title': string,
        "xref": string,
        "tracker": {
            "id": int,
            "uri": string,
            "label": string,
            "color_name": string,
            "project": {
                "id": int,
                "uri": string,
                "label": string
            }
        }
      }
    ]

    query can be either

    • query={"assigned_to": true}
    • query={"submitted_by": true}
    • query={"submitted_by": true, "assigned_to": true}

    The query return the same result set than "my artifacts" widget, paginated. It means it only returns "Open" artifacts (as per semantic).

    As of today, the only valid value for :id is 'self', the scope can be extended in future work.

     

    Empty
    Empty
    Status
    Empty
    Done
    Development
    • [ ] Does it involves User Interface? 
    • [ ] Are there any mockups?
    • [ ] Are permissions checked?
    • [ ] Does it need Javascript development?
    • [ ] Does it need a forge upgrade bucket?
    • [ ] Does it need to execute things in system events?
    • [ ] Does it impact project creation (templates)?
    • [ ] Is it exploratory?
    Empty
    Details
    #13856
    Manuel Vacelet (vaceletm)
    2019-09-16 18:14
    2019-09-11 08:59
    14848

    References

    Follow-ups

    User avatar
    • Acceptance criteria
      Something went wrong, the follow up content couldn't be loaded
      Only formatting have been changed, you should switch to markup to see the changes
    User avatar
    • Acceptance criteria
      Something went wrong, the follow up content couldn't be loaded
      Only formatting have been changed, you should switch to markup to see the changes