•  
      story #10771 get several artifacts at once from the REST API
    Summary
    Empty
    get several artifacts at once from the REST API
    Empty
    GET /api/artifacts?query={"id" = [x,y,z]}
    
    {
        collection: [
            ArtifactRepresentation
        ]
    }

    The return format is the same than GET /api/artifacts/:id/linked_artifacts (artifact representation)

    It's not possible to retrieve more than 100 ids at once. moreover the size of the query is limited to the size of the URL the server can accept (4096 according to the RFC)

    The collection returns artifacts that are readable by user given permissions (that is to say the returned collection can be lower than requested ids)

    Warning: there are no ETAG nor "LastModified" headers to avoid refetch of not modified artifacts

    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
    #10771
    Manuel Vacelet (vaceletm)
    2017-12-11 15:35
    2017-10-24 17:23
    4417

    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
    • Permissions set to