Skip to content
This repository was archived by the owner on Feb 6, 2025. It is now read-only.
This repository was archived by the owner on Feb 6, 2025. It is now read-only.

Web API array objects in the query string #59

@GwtLabs

Description

@GwtLabs

Sending a GET request to the Web API with an array of parameters, e.g .:

GET {{url}}/check?archival=1&ids[0].type=gitid&ids[0].value=123456&ids[1].type=shortid&ids[1].value=d4a

The archival parameter is inserted into the object, the ids list is not.
Query object class looks like this:

    public class CheckIdentifiers : IQuery<CheckIdentifiersDto>
    {
        public IList<Identifier> Ids { get; set; }
        public bool Archival { get; set; }
    }

    public class Identifier
    {
        public string Type { get; set; }
        public string Value { get; set; }
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions