forked from loafle/openapi-generator-original
* [C] Don't convert post body strings to JSON If the body provided for the api request is a just a string itself, don't try to convert it to JSON, simply submit the string. * [C] Implement BearerToken authentication * [C] Handle nullable fields correctly * [C] Fix implementation of FromString for enums * [C] Update the test schemas to cover the changes * Update samples * Fix the updated samples * [C] Add the new samples folder to the CI workflow
2.7 KiB
2.7 KiB
DefaultAPI
All URIs are relative to http://api.example.com/v1
Method | HTTP request | Description |
---|---|---|
DefaultAPI_privateGet | GET /private | Returns private information. |
DefaultAPI_publicGet | GET /public | Returns public information. |
DefaultAPI_usersGet | GET /users | Returns a list of users. |
DefaultAPI_privateGet
// Returns private information.
//
// This endpoint requires global security settings.
//
object_t* DefaultAPI_privateGet(apiClient_t *apiClient);
Parameters
Name | Type | Description | Notes |
---|---|---|---|
apiClient | apiClient_t * | context containing the client configuration |
Return type
object_t *
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DefaultAPI_publicGet
// Returns public information.
//
// This endpoint does not require authentication.
//
object_t* DefaultAPI_publicGet(apiClient_t *apiClient);
Parameters
Name | Type | Description | Notes |
---|---|---|---|
apiClient | apiClient_t * | context containing the client configuration |
Return type
object_t *
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DefaultAPI_usersGet
// Returns a list of users.
//
// Optional extended description in CommonMark or HTML.
//
list_t* DefaultAPI_usersGet(apiClient_t *apiClient);
Parameters
Name | Type | Description | Notes |
---|---|---|---|
apiClient | apiClient_t * | context containing the client configuration |
Return type
list_t *
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]