Ejemplo n.º 1
0
        public JsonObject DataHeadersWithIncludeDataInResponse(string endpoint, bool includeDataInResponse)
        {
            JsonObjectApi apiHeaders = new ApiHeaders().DataHeaders(endpoint);
            Dictionary <string, object> dictionary = new Dictionary <string, object>();

            dictionary.Add("includeDataInResponse", includeDataInResponse);
            apiHeaders.PutHeaders(dictionary);
            return(apiHeaders);
        }
Ejemplo n.º 2
0
        public JsonObjectApi DataHeadersWithPathId(string endpoint, int id)
        {
            JsonObjectApi apiHeaders = new ApiHeaders().DataHeaders(endpoint.Replace("{id}", id.ToString()));

            return(apiHeaders);
        }