From fcbcc8f2d98ddc7184b96315e087675785454a03 Mon Sep 17 00:00:00 2001 From: Giuseppe Lo Presti Date: Mon, 26 Apr 2021 09:30:54 +0200 Subject: [PATCH] Also add ability to filter list of app providers by mimetype --- cs3/app/registry/v1beta1/registry_api.proto | 20 +++++- docs/index.html | 72 ++++++++++++++++++++- 2 files changed, 88 insertions(+), 4 deletions(-) diff --git a/cs3/app/registry/v1beta1/registry_api.proto b/cs3/app/registry/v1beta1/registry_api.proto index 30075bad..3620f314 100644 --- a/cs3/app/registry/v1beta1/registry_api.proto +++ b/cs3/app/registry/v1beta1/registry_api.proto @@ -82,8 +82,24 @@ message ListAppProvidersRequest { // OPTIONAL. // Opaque information. cs3.types.v1beta1.Opaque opaque = 1; - // TODO(labkode): maybe add some filter? - + // REQUIRED. + // Represents a filter to apply to the request. + message Filter { + // The filter to apply. + enum Type { + TYPE_INVALID = 0; + TYPE_MIME_TYPE = 1; + } + // REQUIRED. + Type type = 2; + oneof term { + // if present, the response MUST list all known app providers for the given mimetype. + string mime_type = 3; + } + } + // OPTIONAL. + // The list of filters to apply if any. + repeated Filter filters = 2; } message ListAppProvidersResponse { diff --git a/docs/index.html b/docs/index.html index 7570bead..588bc9ac 100644 --- a/docs/index.html +++ b/docs/index.html @@ -543,11 +543,19 @@

Table of Contents

MListAppProvidersRequest +
  • + MListAppProvidersRequest.Filter +
  • +
  • MListAppProvidersResponse
  • +
  • + EListAppProvidersRequest.Filter.Type +
  • +
  • @@ -5173,9 +5181,46 @@

    ListAppProvidersReques cs3.types.v1beta1.Opaque

    OPTIONAL. -Opaque information. +Opaque information.

    + + + + filters + ListAppProvidersRequest.Filter + repeated +

    OPTIONAL. +The list of filters to apply if any.

    + + + + -TODO(labkode): maybe add some filter?

    + + + + +

    ListAppProvidersRequest.Filter

    +

    REQUIRED.

    Represents a filter to apply to the request.

    + + + + + + + + + + + + + + + + + + + + @@ -5228,6 +5273,29 @@

    ListAppProvidersRespo +

    ListAppProvidersRequest.Filter.Type

    +

    The filter to apply.

    +
    FieldTypeLabelDescription
    typeListAppProvidersRequest.Filter.Type

    REQUIRED.

    mime_typestring

    if present, the response MUST list all known app providers for the given mimetype.

    + + + + + + + + + + + + + + + + + + +
    NameNumberDescription
    TYPE_INVALID0

    TYPE_MIME_TYPE1

    +