mirror of
https://github.com/Tribufu/TribufuDotNet
synced 2026-08-08 04:11:06 +00:00
* Generate project with open-api-generator * Add example project * Create wrapper class
94 lines
5 KiB
C#
94 lines
5 KiB
C#
/*
|
|
* Tribufu API
|
|
*
|
|
* REST API to access Tribufu services.
|
|
*
|
|
* The version of the OpenAPI document: 1.1.0
|
|
* Contact: contact@tribufu.com
|
|
* Generated by: https://github.com/openapitools/openapi-generator.git
|
|
*/
|
|
|
|
|
|
using System;
|
|
using System.IO;
|
|
|
|
namespace Tribufu.Generated.Client
|
|
{
|
|
/// <summary>
|
|
/// Contract for Synchronous RESTful API interactions.
|
|
///
|
|
/// This interface allows consumers to provide a custom API accessor client.
|
|
/// </summary>
|
|
public interface ISynchronousClient
|
|
{
|
|
/// <summary>
|
|
/// Executes a blocking call to some <paramref name="path"/> using the GET http verb.
|
|
/// </summary>
|
|
/// <param name="path">The relative path to invoke.</param>
|
|
/// <param name="options">The request parameters to pass along to the client.</param>
|
|
/// <param name="configuration">Per-request configurable settings.</param>
|
|
/// <typeparam name="T">The return type.</typeparam>
|
|
/// <returns>The response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
|
ApiResponse<T> Get<T>(string path, RequestOptions options, IReadableConfiguration configuration = null);
|
|
|
|
/// <summary>
|
|
/// Executes a blocking call to some <paramref name="path"/> using the POST http verb.
|
|
/// </summary>
|
|
/// <param name="path">The relative path to invoke.</param>
|
|
/// <param name="options">The request parameters to pass along to the client.</param>
|
|
/// <param name="configuration">Per-request configurable settings.</param>
|
|
/// <typeparam name="T">The return type.</typeparam>
|
|
/// <returns>The response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
|
ApiResponse<T> Post<T>(string path, RequestOptions options, IReadableConfiguration configuration = null);
|
|
|
|
/// <summary>
|
|
/// Executes a blocking call to some <paramref name="path"/> using the PUT http verb.
|
|
/// </summary>
|
|
/// <param name="path">The relative path to invoke.</param>
|
|
/// <param name="options">The request parameters to pass along to the client.</param>
|
|
/// <param name="configuration">Per-request configurable settings.</param>
|
|
/// <typeparam name="T">The return type.</typeparam>
|
|
/// <returns>The response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
|
ApiResponse<T> Put<T>(string path, RequestOptions options, IReadableConfiguration configuration = null);
|
|
|
|
/// <summary>
|
|
/// Executes a blocking call to some <paramref name="path"/> using the DELETE http verb.
|
|
/// </summary>
|
|
/// <param name="path">The relative path to invoke.</param>
|
|
/// <param name="options">The request parameters to pass along to the client.</param>
|
|
/// <param name="configuration">Per-request configurable settings.</param>
|
|
/// <typeparam name="T">The return type.</typeparam>
|
|
/// <returns>The response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
|
ApiResponse<T> Delete<T>(string path, RequestOptions options, IReadableConfiguration configuration = null);
|
|
|
|
/// <summary>
|
|
/// Executes a blocking call to some <paramref name="path"/> using the HEAD http verb.
|
|
/// </summary>
|
|
/// <param name="path">The relative path to invoke.</param>
|
|
/// <param name="options">The request parameters to pass along to the client.</param>
|
|
/// <param name="configuration">Per-request configurable settings.</param>
|
|
/// <typeparam name="T">The return type.</typeparam>
|
|
/// <returns>The response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
|
ApiResponse<T> Head<T>(string path, RequestOptions options, IReadableConfiguration configuration = null);
|
|
|
|
/// <summary>
|
|
/// Executes a blocking call to some <paramref name="path"/> using the OPTIONS http verb.
|
|
/// </summary>
|
|
/// <param name="path">The relative path to invoke.</param>
|
|
/// <param name="options">The request parameters to pass along to the client.</param>
|
|
/// <param name="configuration">Per-request configurable settings.</param>
|
|
/// <typeparam name="T">The return type.</typeparam>
|
|
/// <returns>The response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
|
ApiResponse<T> Options<T>(string path, RequestOptions options, IReadableConfiguration configuration = null);
|
|
|
|
/// <summary>
|
|
/// Executes a blocking call to some <paramref name="path"/> using the PATCH http verb.
|
|
/// </summary>
|
|
/// <param name="path">The relative path to invoke.</param>
|
|
/// <param name="options">The request parameters to pass along to the client.</param>
|
|
/// <param name="configuration">Per-request configurable settings.</param>
|
|
/// <typeparam name="T">The return type.</typeparam>
|
|
/// <returns>The response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
|
ApiResponse<T> Patch<T>(string path, RequestOptions options, IReadableConfiguration configuration = null);
|
|
}
|
|
}
|