All URIs are relative to https://project-ile.net:1038/v1
| Method | HTTP request | Description |
|---|---|---|
| GetRoleById | GET /role/{roleId} | Find role by ID |
| RoleGet | GET /role | Get list of roles |
Role GetRoleById (long? roleId)
Find role by ID
Returns a single role
using System;
using System.Diagnostics;
using WerewolfAPI.Api;
using WerewolfAPI.Client;
using WerewolfAPI.Model;
namespace Example
{
public class GetRoleByIdExample
{
public void main()
{
var apiInstance = new RoleApi();
var roleId = 789; // long? | ID of role to return
try
{
// Find role by ID
Role result = apiInstance.GetRoleById(roleId);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling RoleApi.GetRoleById: " + e.Message );
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| roleId | long? | ID of role to return |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List RoleGet ()
Get list of roles
using System;
using System.Diagnostics;
using WerewolfAPI.Api;
using WerewolfAPI.Client;
using WerewolfAPI.Model;
namespace Example
{
public class RoleGetExample
{
public void main()
{
var apiInstance = new RoleApi();
try
{
// Get list of roles
List<Role> result = apiInstance.RoleGet();
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling RoleApi.RoleGet: " + e.Message );
}
}
}
}This endpoint does not need any parameter.
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]