Class CRUDParam
- Namespace
- Glitch9.IO.Networking.RESTApi
public class CRUDParam
- Inheritance
-
CRUDParam
- Inherited Members
- Extension Methods
Properties
Getter
Required if Type is set.
public Func<string> Getter { get; set; }
Property Value
HeaderFormat
Optional. If the API requires a specific header name instead of 'Bearer {0}', it will be set here.
public string HeaderFormat { get; set; }
Property Value
HeaderName
Optional. If the API requires a specific header name instead of 'Authorization', it will be set here.
public string HeaderName { get; set; }
Property Value
QueryKey
public string QueryKey { get; set; }
Property Value
Type
Required. Indicates how the API key should be sent.
public ParamType Type { get; set; }
Property Value
Value
Either Value or Getter must be set.
Value is used if the API key is static.
public string Value { get; set; }
Property Value
Methods
GetValue()
public string GetValue()
Returns
Header(Func<string>, string, string)
public static CRUDParam Header(Func<string> getter, string headerName = null, string headerFormat = null)
Parameters
Returns
Header(string, string, string)
public static CRUDParam Header(string value, string headerName = null, string headerFormat = null)
Parameters
Returns
Query(Func<string>, string)
public static CRUDParam Query(Func<string> getter, string queryKey = null)
Parameters
Returns
Query(string, string)
public static CRUDParam Query(string value, string queryKey = null)