|
2 | 2 | #include "../include/generic.h"
|
3 | 3 | #include "../include/utils.h"
|
4 | 4 |
|
| 5 | +void makeNamespacedResourcePath(char* path, genericClient_t *client, const char* namespace, const char* name); |
| 6 | +void makeResourcePath(char* path, genericClient_t *client, const char* name); |
| 7 | +char* callInternal(genericClient_t *client, |
| 8 | + const char *path, list_t *queryParameters, list_t *headerParameters, list_t *formParameters, list_t *headerType, list_t *contentType, const char *body, const char *method); |
| 9 | +char *callSimplifiedInternal(genericClient_t *client, const char *path, const char *method, const char *body); |
| 10 | + |
5 | 11 | genericClient_t* genericClient_create(apiClient_t *client, const char *apiGroup, const char* apiVersion, const char* resourcePlural) {
|
6 | 12 | genericClient_t *result = malloc(sizeof(genericClient_t));
|
7 | 13 | result->client = client;
|
@@ -54,7 +60,7 @@ void makeResourcePath(char* path, genericClient_t *client, const char* name) {
|
54 | 60 | char* callInternal(genericClient_t *client,
|
55 | 61 | const char *path, list_t *queryParameters, list_t *headerParameters, list_t *formParameters, list_t *headerType, list_t *contentType, const char *body, const char *method)
|
56 | 62 | {
|
57 |
| - apiClient_invoke(client->client, path, queryParameters, headerParameters, formParameters, headerType, contentType, body, method); |
| 63 | + apiClient_invoke(client->client, path, queryParameters, headerParameters, formParameters, headerType, contentType, body, strlen(body), method); |
58 | 64 |
|
59 | 65 | if (client->client->response_code == 401) {
|
60 | 66 | return NULL;
|
|
0 commit comments