The codealpine API description
PHP 7.2 and later.
To install the bindings via Composer, add the following to composer.json
:
{
"repositories": [
{
"type": "vcs",
"url": "https://github.com/GIT_USER_ID/GIT_REPO_ID.git"
}
],
"require": {
"GIT_USER_ID/GIT_REPO_ID": "*@dev"
}
}
Then run composer install
Download the files and include autoload.php
:
<?php
require_once('/path/to/OpenAPIClient-php/vendor/autoload.php');
Please follow the installation procedure and then run the following:
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new OpenAPI\Client\Api\ClimbingQuestionnaireApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$with_questions = 'with_questions_example'; // string
try {
$result = $apiInstance->climbingQuestionnaireControllerFindAll($with_questions);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ClimbingQuestionnaireApi->climbingQuestionnaireControllerFindAll: ', $e->getMessage(), PHP_EOL;
}
All URIs are relative to http://localhost:3045
Class | Method | HTTP request | Description |
---|---|---|---|
ClimbingQuestionnaireApi | climbingQuestionnaireControllerFindAll | GET /api/v1/climbing-questionnaire/all/{withQuestions} | |
ClimbingQuestionnaireApi | climbingQuestionnaireControllerFindForUser | GET /api/v1/climbing-questionnaire/user | |
ClimbingQuestionnaireApi | climbingQuestionnaireControllerFindOne | GET /api/v1/climbing-questionnaire/{id}/{withQuestions} | |
ClimbingQuestionnaireApi | climbingQuestionnaireControllerGetAnalysisMessage | POST /api/v1/climbing-questionnaire/analysis/{questionnaire} | |
ClimbingQuestionnaireApi | climbingQuestionnaireControllerSaveUserQuestionnaire | POST /api/v1/climbing-questionnaire/save-answers | |
ClimbingStatsApi | climbingStatsControllerGetUserProfile | GET /api/v1/climbing-stats/user/assessment | |
ClimbingStatsApi | climbingStatsControllerGetUserStats | POST /api/v1/climbing-stats/user | |
DefaultApi | appControllerGetInfo | GET /api | |
NavigationLinksApi | navlinksControllerV1Create | POST /api/v1/navlinks | |
NavigationLinksApi | navlinksControllerV1FindAll | GET /api/v1/navlinks | |
NavigationLinksApi | navlinksControllerV1FindOne | GET /api/v1/navlinks/{id} | |
NavigationLinksApi | navlinksControllerV1Remove | DELETE /api/v1/navlinks/{id} | |
NavigationLinksApi | navlinksControllerV1Update | PATCH /api/v1/navlinks/{id} | |
NotificationsApi | notificationControllerCreate | POST /api/v1/notification | |
NotificationsApi | notificationControllerFindAll | GET /api/v1/notification | |
NotificationsApi | notificationControllerFindOne | GET /api/v1/notification/{id} | |
NotificationsApi | notificationControllerRemove | DELETE /api/v1/notification/{id} | |
NotificationsApi | notificationControllerUpdate | PATCH /api/v1/notification/{id} | |
UsersApi | userControllerUpdate | PATCH /api/user/{id} |
- ClimbingProvidedAnswers
- ClimbingQuestion
- ClimbingQuestionnaire
- ClimbingQuestionnaireAnalysis
- ClimbingQuestionnaireUser
- CreateNavlinkDto
- CreateNotificationDto
- Notification
- UpdateNavlinkDto
- UpdateNotificationDto
All endpoints do not require authorization.
To run the tests, use:
composer install
vendor/bin/phpunit
This PHP package is automatically generated by the OpenAPI Generator project:
- API version:
1.0
- Build package:
org.openapitools.codegen.languages.PhpClientCodegen