All URIs are relative to https://api.teke.li/api/v1/obs
Method | HTTP request | Description |
---|---|---|
Getroles | GET /roles | Retrieves one or more roles |
GetrolesItem | GET /roles/{rolesId} | Retrieves a roles document |
PatchrolesItem | PATCH /roles/{rolesId} | Updates a roles document |
Postroles | POST /roles | Stores one or more roles. |
PutrolesItem | PUT /roles/{rolesId} | Replaces a roles document |
InlineResponse20011 Getroles (string where = null, string sort = null, int? page = null, int? maxResults = null)
Retrieves one or more roles
using System.Collections.Generic;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class GetrolesExample
{
public static void Main()
{
Configuration.Default.BasePath = "https://api.teke.li/api/v1/obs";
// Configure API key authorization: ApiKeyHeaderAuth
Configuration.Default.AddApiKey("X-Api-Key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("X-Api-Key", "Bearer");
// Configure API key authorization: ApiKeyQueryAuth
Configuration.Default.AddApiKey("api_key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("api_key", "Bearer");
var apiInstance = new RolesApi(Configuration.Default);
var where = where_example; // string | the filters query parameter (ex.: {\"number\": 10}) (optional)
var sort = sort_example; // string | the sort query parameter (ex.: \"city,-lastname\") (optional)
var page = 1; // int? | the pages query parameter (optional)
var maxResults = 25; // int? | the max results query parameter (optional)
try
{
// Retrieves one or more roles
InlineResponse20011 result = apiInstance.Getroles(where, sort, page, maxResults);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling RolesApi.Getroles: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
where | string | the filters query parameter (ex.: {"number": 10}) | [optional] |
sort | string | the sort query parameter (ex.: "city,-lastname") | [optional] |
page | int? | the pages query parameter | [optional] |
maxResults | int? | the max results query parameter | [optional] |
ApiKeyHeaderAuth, ApiKeyQueryAuth
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | An array of roles | - |
0 | An error message | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Roles GetrolesItem (string rolesId)
Retrieves a roles document
using System.Collections.Generic;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class GetrolesItemExample
{
public static void Main()
{
Configuration.Default.BasePath = "https://api.teke.li/api/v1/obs";
// Configure API key authorization: ApiKeyHeaderAuth
Configuration.Default.AddApiKey("X-Api-Key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("X-Api-Key", "Bearer");
// Configure API key authorization: ApiKeyQueryAuth
Configuration.Default.AddApiKey("api_key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("api_key", "Bearer");
var apiInstance = new RolesApi(Configuration.Default);
var rolesId = rolesId_example; // string |
try
{
// Retrieves a roles document
Roles result = apiInstance.GetrolesItem(rolesId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling RolesApi.GetrolesItem: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
rolesId | string |
ApiKeyHeaderAuth, ApiKeyQueryAuth
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | roles document fetched successfully | - |
0 | An error message | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void PatchrolesItem (string rolesId, string ifMatch, Roles roles)
Updates a roles document
using System.Collections.Generic;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class PatchrolesItemExample
{
public static void Main()
{
Configuration.Default.BasePath = "https://api.teke.li/api/v1/obs";
// Configure API key authorization: ApiKeyHeaderAuth
Configuration.Default.AddApiKey("X-Api-Key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("X-Api-Key", "Bearer");
// Configure API key authorization: ApiKeyQueryAuth
Configuration.Default.AddApiKey("api_key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("api_key", "Bearer");
var apiInstance = new RolesApi(Configuration.Default);
var rolesId = rolesId_example; // string |
var ifMatch = ifMatch_example; // string | Current value of the _etag field
var roles = new Roles(); // Roles | A roles or list of roles documents
try
{
// Updates a roles document
apiInstance.PatchrolesItem(rolesId, ifMatch, roles);
}
catch (ApiException e)
{
Debug.Print("Exception when calling RolesApi.PatchrolesItem: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
rolesId | string | ||
ifMatch | string | Current value of the _etag field | |
roles | Roles | A roles or list of roles documents |
void (empty response body)
ApiKeyHeaderAuth, ApiKeyQueryAuth
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | roles document updated successfully | - |
0 | An error message | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void Postroles (Roles roles)
Stores one or more roles.
using System.Collections.Generic;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class PostrolesExample
{
public static void Main()
{
Configuration.Default.BasePath = "https://api.teke.li/api/v1/obs";
// Configure API key authorization: ApiKeyHeaderAuth
Configuration.Default.AddApiKey("X-Api-Key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("X-Api-Key", "Bearer");
// Configure API key authorization: ApiKeyQueryAuth
Configuration.Default.AddApiKey("api_key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("api_key", "Bearer");
var apiInstance = new RolesApi(Configuration.Default);
var roles = new Roles(); // Roles | A roles or list of roles documents
try
{
// Stores one or more roles.
apiInstance.Postroles(roles);
}
catch (ApiException e)
{
Debug.Print("Exception when calling RolesApi.Postroles: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
roles | Roles | A roles or list of roles documents |
void (empty response body)
ApiKeyHeaderAuth, ApiKeyQueryAuth
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
201 | operation has been successful | - |
0 | An error message | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void PutrolesItem (string rolesId, string ifMatch, Roles roles)
Replaces a roles document
using System.Collections.Generic;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class PutrolesItemExample
{
public static void Main()
{
Configuration.Default.BasePath = "https://api.teke.li/api/v1/obs";
// Configure API key authorization: ApiKeyHeaderAuth
Configuration.Default.AddApiKey("X-Api-Key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("X-Api-Key", "Bearer");
// Configure API key authorization: ApiKeyQueryAuth
Configuration.Default.AddApiKey("api_key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("api_key", "Bearer");
var apiInstance = new RolesApi(Configuration.Default);
var rolesId = rolesId_example; // string |
var ifMatch = ifMatch_example; // string | Current value of the _etag field
var roles = new Roles(); // Roles | A roles or list of roles documents
try
{
// Replaces a roles document
apiInstance.PutrolesItem(rolesId, ifMatch, roles);
}
catch (ApiException e)
{
Debug.Print("Exception when calling RolesApi.PutrolesItem: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
rolesId | string | ||
ifMatch | string | Current value of the _etag field | |
roles | Roles | A roles or list of roles documents |
void (empty response body)
ApiKeyHeaderAuth, ApiKeyQueryAuth
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | roles document replaced successfully | - |
0 | An error message | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]