libriciel/iparapheur-v5-api-php

iparapheur v5.x main core application. The main link between every sub-services, integrating business code logic.


README

iparapheur v5.x main core application.

The main link between every sub-services, integrating business code logic.

For more information, please visit https://libriciel.fr.

Installation & Usage

Requirements

PHP 7.2 and later.

Composer

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

Your project is free to choose the http client of your choice Please require packages that will provide http client functionality: https://packagist.org/providers/psr/http-client-implementation https://packagist.org/providers/php-http/async-client-implementation https://packagist.org/providers/psr/http-factory-implementation

As an example:

composer require guzzlehttp/guzzle php-http/guzzle7-adapter http-interop/http-factory-guzzle

Manual Installation

Download the files and include autoload.php:

<?php
require_once('/path/to/OpenAPIClient-php/vendor/autoload.php');

Getting Started

Please follow the installation procedure and then run the following:

<?php
require_once(__DIR__ . '/vendor/autoload.php');



// Configure OAuth2 access token for authorization: spring_oauth
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new OpenAPI\Client\Api\AdminTrashBinApi(
    // If you want use custom http client, pass your client which implements `Psr\Http\Client\ClientInterface`.
    // This is optional, `Psr18ClientDiscovery` will be used to find http client. For instance `GuzzleHttp\Client` implements that interface
    new GuzzleHttp\Client(),
    $config
);
$tenant_id = 'tenant_id_example'; // string | Tenant id
$folder_id = 'folder_id_example'; // string | Folder id

try {
    $apiInstance->deleteTrashBinFolder($tenant_id, $folder_id);
} catch (Exception $e) {
    echo 'Exception when calling AdminTrashBinApi->deleteTrashBinFolder: ', $e->getMessage(), PHP_EOL;
}

API Endpoints

All URIs are relative to http://localhost:8080

ClassMethodHTTP requestDescription
AdminTrashBinApideleteTrashBinFolderDELETE /api/standard/v1/admin/tenant/{tenantId}/trash-bin/{folderId}Permanently delete a folder
AdminTrashBinApidownloadTrashBinFolderZipGET /api/standard/v1/admin/tenant/{tenantId}/trash-bin/{folderId}/zipDownload a folder as ZIP
AdminTrashBinApilistTrashBinFoldersGET /api/standard/v1/admin/tenant/{tenantId}/trash-binList folders in the trash-bin
DeskApilistUserDesksGET /api/standard/v1/tenant/{tenantId}/deskList desks attached to the current user
FolderApicreateFolderPOST /api/standard/v1/tenant/{tenantId}/desk/{deskId}/folderCreate a folder
FolderApideleteFolderDELETE /api/standard/v1/tenant/{tenantId}/desk/{deskId}/folder/{folderId}Delete folder
FolderApidownloadFolderPremisGET /api/standard/v1/tenant/{tenantId}/desk/{deskId}/folder/{folderId}/premisGet a PREMIS-formatted file, containing the folder summary
FolderApidownloadFolderZipGET /api/standard/v1/tenant/{tenantId}/desk/{deskId}/folder/{folderId}/zipGet every file as ZIP, with a PREMIS-formatted summary
FolderApilistFoldersGET /api/standard/v1/tenant/{tenantId}/desk/{deskId}/{state}List folders in the given state
SecureMailApirequestSecureMailPUT /api/standard/v1/tenant/{tenantId}/desk/{deskId}/folder/{folderId}/task/{taskId}/secure_mailSecure mail
TenantApilistTenantsGET /api/standard/v1/tenantList tenants attached with the current user
TypologyApilistCreationAllowedSubtypesGET /api/standard/v1/tenant/{tenantId}/desk/{deskId}/types/{typeId}/subtypes/creation-allowedList creation-allowed subtypes from a given type, for the given desk
TypologyApilistCreationAllowedTypesGET /api/standard/v1/tenant/{tenantId}/desk/{deskId}/types/creation-allowedList types parent to a creation-allowed subtype on the given desk
TypologyApilistSubtypesGET /api/standard/v1/tenant/{tenantId}/types/{typeId}/subtypesList all subtypes of a specific type on the current tenant
TypologyApilistTypesGET /api/standard/v1/tenant/{tenantId}/typesList all types on the current tenant
WorkflowApibypassPUT /api/standard/v1/tenant/{tenantId}/desk/{deskId}/folder/{folderId}/task/{taskId}/bypassBypass
WorkflowApisealPUT /api/standard/v1/tenant/{tenantId}/desk/{deskId}/folder/{folderId}/task/{taskId}/sealSeal
WorkflowApisecondOpinionPUT /api/standard/v1/tenant/{tenantId}/desk/{deskId}/folder/{folderId}/task/{taskId}/second_opinionSecond opinion
WorkflowApisendToTrashBinPUT /api/standard/v1/tenant/{tenantId}/desk/{deskId}/folder/{folderId}/task/{taskId}/send_to_trash_binSend to trash-bin
WorkflowApistartPUT /api/standard/v1/tenant/{tenantId}/desk/{deskId}/folder/{folderId}/task/{taskId}/startStart
WorkflowApiundoPUT /api/standard/v1/tenant/{tenantId}/desk/{deskId}/folder/{folderId}/task/{taskId}/undoUndo
WorkflowApivisaPUT /api/standard/v1/tenant/{tenantId}/desk/{deskId}/folder/{folderId}/task/{taskId}/visaVisa

Models

Authorization

spring_oauth

  • Type: OAuth
  • Flow: accessCode
  • Authorization URL: ./auth/realms/api/protocol/openid-connect/auth
  • Scopes: N/A

Tests

To run the tests, use:

composer install
vendor/bin/phpunit

Author

iparapheur@libriciel.coop

About this package

This PHP package is automatically generated by the OpenAPI Generator project:

  • API version: DEVELOP
    • Generator version: 7.14.0
  • Build package: org.openapitools.codegen.languages.PhpClientCodegen