Skip to content

[F] getRequestVisibility

function getRequestVisibility(verb): Visibility

Determines the visibility to use for a request with the given verb.

  • GET | HEAD => Visibility.Query
  • POST => Visibility.Create
  • PATCH => Visibility.Update
  • PUT => Visibility.Create | Update
  • DELETE => Visibility.Delete

Parameters

ParameterTypeDescription
verbHttpVerbThe HTTP verb for the operation.

Returns

Visibility

The applicable parameter visibility or visibilities for the request.

Deprecated

Use resolveRequestVisibility instead, or if you only want the default visibility for a verb, getDefaultVisibilityForVerb.