PenAndPaperDmHelper

Adventure

adventureAdventureNameDelete

Delete an `adventure`.


/adventure/{adventureName}

Usage and SDK Samples

curl -X DELETE\
 "https://localhost/adventure/{adventureName}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AdventureApi;

import java.io.File;
import java.util.*;

public class AdventureApiExample {
    public static void main(String[] args) {
        
        // Create an instance of the API class
        AdventureApi apiInstance = new AdventureApi();
        String adventureName = A man's best friend; // String | The name of the adventure.
        
        try {
            apiInstance.adventureAdventureNameDelete(adventureName);
        } catch (ApiException e) {
            System.err.println("Exception when calling AdventureApi#adventureAdventureNameDelete");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.AdventureApi;

public class AdventureApiExample {
    public static void main(String[] args) {
        AdventureApi apiInstance = new AdventureApi();
        String adventureName = A man's best friend; // String | The name of the adventure.
        
        try {
            apiInstance.adventureAdventureNameDelete(adventureName);
        } catch (ApiException e) {
            System.err.println("Exception when calling AdventureApi#adventureAdventureNameDelete");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AdventureApi *apiInstance = [[AdventureApi alloc] init];
String *adventureName = A man's best friend; // The name of the adventure. (default to null)

[apiInstance adventureAdventureNameDeleteWith:adventureName
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var PenAndPaperDmHelper = require('pen_and_paper_dm_helper');

// Create an instance of the API class
var api = new PenAndPaperDmHelper.AdventureApi()
var adventureName = A man's best friend; // {String} The name of the adventure.

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.adventureAdventureNameDelete(adventureName, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class adventureAdventureNameDeleteExample
    {
        public void main()
        {
            
            // Create an instance of the API class
            var apiInstance = new AdventureApi();
            var adventureName = A man's best friend;  // String | The name of the adventure. (default to null)

            try {
                apiInstance.adventureAdventureNameDelete(adventureName);
            } catch (Exception e) {
                Debug.Print("Exception when calling AdventureApi.adventureAdventureNameDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AdventureApi();
$adventureName = A man's best friend; // String | The name of the adventure.

try {
    $api_instance->adventureAdventureNameDelete($adventureName);
} catch (Exception $e) {
    echo 'Exception when calling AdventureApi->adventureAdventureNameDelete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AdventureApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AdventureApi->new();
my $adventureName = A man's best friend; # String | The name of the adventure.

eval { 
    $api_instance->adventureAdventureNameDelete(adventureName => $adventureName);
};
if ($@) {
    warn "Exception when calling AdventureApi->adventureAdventureNameDelete: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.AdventureApi()
adventureName = A man's best friend # String | The name of the adventure. (default to null)

try: 
    api_instance.adventure_adventure_name_delete(adventureName)
except ApiException as e:
    print("Exception when calling AdventureApi->adventureAdventureNameDelete: %s\n" % e)
extern crate AdventureApi;

pub fn main() {
    let adventureName = A man's best friend; // String

    let mut context = AdventureApi::Context::default();
    let result = client.adventureAdventureNameDelete(adventureName, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
adventureName*
String
The name of the adventure.
Required

Responses


adventureAdventureNamePatch

Rename an `adventure`.


/adventure/{adventureName}

Usage and SDK Samples

curl -X PATCH\
 -H "Content-Type: application/json"\
 "https://localhost/adventure/{adventureName}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AdventureApi;

import java.io.File;
import java.util.*;

public class AdventureApiExample {
    public static void main(String[] args) {
        
        // Create an instance of the API class
        AdventureApi apiInstance = new AdventureApi();
        String adventureName = A man's best friend; // String | The name of the adventure.
        String body = A man's best fiend; // String | 
        
        try {
            apiInstance.adventureAdventureNamePatch(adventureName, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling AdventureApi#adventureAdventureNamePatch");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.AdventureApi;

public class AdventureApiExample {
    public static void main(String[] args) {
        AdventureApi apiInstance = new AdventureApi();
        String adventureName = A man's best friend; // String | The name of the adventure.
        String body = A man's best fiend; // String | 
        
        try {
            apiInstance.adventureAdventureNamePatch(adventureName, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling AdventureApi#adventureAdventureNamePatch");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AdventureApi *apiInstance = [[AdventureApi alloc] init];
String *adventureName = A man's best friend; // The name of the adventure. (default to null)
String *body = A man's best fiend; // 

[apiInstance adventureAdventureNamePatchWith:adventureName
    body:body
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var PenAndPaperDmHelper = require('pen_and_paper_dm_helper');

// Create an instance of the API class
var api = new PenAndPaperDmHelper.AdventureApi()
var adventureName = A man's best friend; // {String} The name of the adventure.
var body = A man's best fiend; // {String} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.adventureAdventureNamePatch(adventureName, body, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class adventureAdventureNamePatchExample
    {
        public void main()
        {
            
            // Create an instance of the API class
            var apiInstance = new AdventureApi();
            var adventureName = A man's best friend;  // String | The name of the adventure. (default to null)
            var body = A man's best fiend;  // String | 

            try {
                apiInstance.adventureAdventureNamePatch(adventureName, body);
            } catch (Exception e) {
                Debug.Print("Exception when calling AdventureApi.adventureAdventureNamePatch: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AdventureApi();
$adventureName = A man's best friend; // String | The name of the adventure.
$body = A man's best fiend; // String | 

try {
    $api_instance->adventureAdventureNamePatch($adventureName, $body);
} catch (Exception $e) {
    echo 'Exception when calling AdventureApi->adventureAdventureNamePatch: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AdventureApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AdventureApi->new();
my $adventureName = A man's best friend; # String | The name of the adventure.
my $body = WWW::OPenAPIClient::Object::String->new(); # String | 

eval { 
    $api_instance->adventureAdventureNamePatch(adventureName => $adventureName, body => $body);
};
if ($@) {
    warn "Exception when calling AdventureApi->adventureAdventureNamePatch: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.AdventureApi()
adventureName = A man's best friend # String | The name of the adventure. (default to null)
body = A man's best fiend # String | 

try: 
    api_instance.adventure_adventure_name_patch(adventureName, body)
except ApiException as e:
    print("Exception when calling AdventureApi->adventureAdventureNamePatch: %s\n" % e)
extern crate AdventureApi;

pub fn main() {
    let adventureName = A man's best friend; // String
    let body = A man's best fiend; // String

    let mut context = AdventureApi::Context::default();
    let result = client.adventureAdventureNamePatch(adventureName, body, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
adventureName*
String
The name of the adventure.
Required
Body parameters
Name Description
body *

The new `name` for the `adventure`.

Responses


adventureAdventureNamePut

Create a new `adventure`.


/adventure/{adventureName}

Usage and SDK Samples

curl -X PUT\
 "https://localhost/adventure/{adventureName}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AdventureApi;

import java.io.File;
import java.util.*;

public class AdventureApiExample {
    public static void main(String[] args) {
        
        // Create an instance of the API class
        AdventureApi apiInstance = new AdventureApi();
        String adventureName = A man's best friend; // String | The name of the adventure.
        
        try {
            apiInstance.adventureAdventureNamePut(adventureName);
        } catch (ApiException e) {
            System.err.println("Exception when calling AdventureApi#adventureAdventureNamePut");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.AdventureApi;

public class AdventureApiExample {
    public static void main(String[] args) {
        AdventureApi apiInstance = new AdventureApi();
        String adventureName = A man's best friend; // String | The name of the adventure.
        
        try {
            apiInstance.adventureAdventureNamePut(adventureName);
        } catch (ApiException e) {
            System.err.println("Exception when calling AdventureApi#adventureAdventureNamePut");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AdventureApi *apiInstance = [[AdventureApi alloc] init];
String *adventureName = A man's best friend; // The name of the adventure. (default to null)

[apiInstance adventureAdventureNamePutWith:adventureName
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var PenAndPaperDmHelper = require('pen_and_paper_dm_helper');

// Create an instance of the API class
var api = new PenAndPaperDmHelper.AdventureApi()
var adventureName = A man's best friend; // {String} The name of the adventure.

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.adventureAdventureNamePut(adventureName, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class adventureAdventureNamePutExample
    {
        public void main()
        {
            
            // Create an instance of the API class
            var apiInstance = new AdventureApi();
            var adventureName = A man's best friend;  // String | The name of the adventure. (default to null)

            try {
                apiInstance.adventureAdventureNamePut(adventureName);
            } catch (Exception e) {
                Debug.Print("Exception when calling AdventureApi.adventureAdventureNamePut: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AdventureApi();
$adventureName = A man's best friend; // String | The name of the adventure.

try {
    $api_instance->adventureAdventureNamePut($adventureName);
} catch (Exception $e) {
    echo 'Exception when calling AdventureApi->adventureAdventureNamePut: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AdventureApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AdventureApi->new();
my $adventureName = A man's best friend; # String | The name of the adventure.

eval { 
    $api_instance->adventureAdventureNamePut(adventureName => $adventureName);
};
if ($@) {
    warn "Exception when calling AdventureApi->adventureAdventureNamePut: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.AdventureApi()
adventureName = A man's best friend # String | The name of the adventure. (default to null)

try: 
    api_instance.adventure_adventure_name_put(adventureName)
except ApiException as e:
    print("Exception when calling AdventureApi->adventureAdventureNamePut: %s\n" % e)
extern crate AdventureApi;

pub fn main() {
    let adventureName = A man's best friend; // String

    let mut context = AdventureApi::Context::default();
    let result = client.adventureAdventureNamePut(adventureName, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
adventureName*
String
The name of the adventure.
Required

Responses


adventuresGet

Get the names of all available `adventure`s.


/adventures

Usage and SDK Samples

curl -X GET\
 -H "Accept: application/json"\
 "https://localhost/adventures"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AdventureApi;

import java.io.File;
import java.util.*;

public class AdventureApiExample {
    public static void main(String[] args) {
        
        // Create an instance of the API class
        AdventureApi apiInstance = new AdventureApi();
        
        try {
            array['String'] result = apiInstance.adventuresGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AdventureApi#adventuresGet");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.AdventureApi;

public class AdventureApiExample {
    public static void main(String[] args) {
        AdventureApi apiInstance = new AdventureApi();
        
        try {
            array['String'] result = apiInstance.adventuresGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AdventureApi#adventuresGet");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AdventureApi *apiInstance = [[AdventureApi alloc] init];

[apiInstance adventuresGetWithCompletionHandler: 
              ^(array['String'] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var PenAndPaperDmHelper = require('pen_and_paper_dm_helper');

// Create an instance of the API class
var api = new PenAndPaperDmHelper.AdventureApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.adventuresGet(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class adventuresGetExample
    {
        public void main()
        {
            
            // Create an instance of the API class
            var apiInstance = new AdventureApi();

            try {
                array['String'] result = apiInstance.adventuresGet();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AdventureApi.adventuresGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AdventureApi();

try {
    $result = $api_instance->adventuresGet();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AdventureApi->adventuresGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AdventureApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AdventureApi->new();

eval { 
    my $result = $api_instance->adventuresGet();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AdventureApi->adventuresGet: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.AdventureApi()

try: 
    api_response = api_instance.adventures_get()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AdventureApi->adventuresGet: %s\n" % e)
extern crate AdventureApi;

pub fn main() {

    let mut context = AdventureApi::Context::default();
    let result = client.adventuresGet(&context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Responses


Chapter

chaptersDeleteByName

Deletes the `chapter` by that name


/chapter/{adventureName}/{chapterName}

Usage and SDK Samples

curl -X DELETE\
 "https://localhost/chapter/{adventureName}/{chapterName}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ChapterApi;

import java.io.File;
import java.util.*;

public class ChapterApiExample {
    public static void main(String[] args) {
        
        // Create an instance of the API class
        ChapterApi apiInstance = new ChapterApi();
        String adventureName = A man's best friend; // String | The name of the adventure.
        String chapterName = Chapter 01 - The killing of the dragon; // String | The name of the chapter.
        
        try {
            apiInstance.chaptersDeleteByName(adventureName, chapterName);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChapterApi#chaptersDeleteByName");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.ChapterApi;

public class ChapterApiExample {
    public static void main(String[] args) {
        ChapterApi apiInstance = new ChapterApi();
        String adventureName = A man's best friend; // String | The name of the adventure.
        String chapterName = Chapter 01 - The killing of the dragon; // String | The name of the chapter.
        
        try {
            apiInstance.chaptersDeleteByName(adventureName, chapterName);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChapterApi#chaptersDeleteByName");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
ChapterApi *apiInstance = [[ChapterApi alloc] init];
String *adventureName = A man's best friend; // The name of the adventure. (default to null)
String *chapterName = Chapter 01 - The killing of the dragon; // The name of the chapter. (default to null)

[apiInstance chaptersDeleteByNameWith:adventureName
    chapterName:chapterName
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var PenAndPaperDmHelper = require('pen_and_paper_dm_helper');

// Create an instance of the API class
var api = new PenAndPaperDmHelper.ChapterApi()
var adventureName = A man's best friend; // {String} The name of the adventure.
var chapterName = Chapter 01 - The killing of the dragon; // {String} The name of the chapter.

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.chaptersDeleteByName(adventureName, chapterName, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class chaptersDeleteByNameExample
    {
        public void main()
        {
            
            // Create an instance of the API class
            var apiInstance = new ChapterApi();
            var adventureName = A man's best friend;  // String | The name of the adventure. (default to null)
            var chapterName = Chapter 01 - The killing of the dragon;  // String | The name of the chapter. (default to null)

            try {
                apiInstance.chaptersDeleteByName(adventureName, chapterName);
            } catch (Exception e) {
                Debug.Print("Exception when calling ChapterApi.chaptersDeleteByName: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ChapterApi();
$adventureName = A man's best friend; // String | The name of the adventure.
$chapterName = Chapter 01 - The killing of the dragon; // String | The name of the chapter.

try {
    $api_instance->chaptersDeleteByName($adventureName, $chapterName);
} catch (Exception $e) {
    echo 'Exception when calling ChapterApi->chaptersDeleteByName: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ChapterApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ChapterApi->new();
my $adventureName = A man's best friend; # String | The name of the adventure.
my $chapterName = Chapter 01 - The killing of the dragon; # String | The name of the chapter.

eval { 
    $api_instance->chaptersDeleteByName(adventureName => $adventureName, chapterName => $chapterName);
};
if ($@) {
    warn "Exception when calling ChapterApi->chaptersDeleteByName: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.ChapterApi()
adventureName = A man's best friend # String | The name of the adventure. (default to null)
chapterName = Chapter 01 - The killing of the dragon # String | The name of the chapter. (default to null)

try: 
    api_instance.chapters_delete_by_name(adventureName, chapterName)
except ApiException as e:
    print("Exception when calling ChapterApi->chaptersDeleteByName: %s\n" % e)
extern crate ChapterApi;

pub fn main() {
    let adventureName = A man's best friend; // String
    let chapterName = Chapter 01 - The killing of the dragon; // String

    let mut context = ChapterApi::Context::default();
    let result = client.chaptersDeleteByName(adventureName, chapterName, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
adventureName*
String
The name of the adventure.
Required
chapterName*
String
The name of the chapter.
Required

Responses


chaptersGetByName

Returns a chapter object.


/chapter/{adventureName}/{chapterName}

Usage and SDK Samples

curl -X GET\
 -H "Accept: application/json"\
 "https://localhost/chapter/{adventureName}/{chapterName}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ChapterApi;

import java.io.File;
import java.util.*;

public class ChapterApiExample {
    public static void main(String[] args) {
        
        // Create an instance of the API class
        ChapterApi apiInstance = new ChapterApi();
        String adventureName = A man's best friend; // String | The name of the adventure.
        String chapterName = Chapter 01 - The killing of the dragon; // String | The name of the chapter.
        
        try {
            array[chapter] result = apiInstance.chaptersGetByName(adventureName, chapterName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChapterApi#chaptersGetByName");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.ChapterApi;

public class ChapterApiExample {
    public static void main(String[] args) {
        ChapterApi apiInstance = new ChapterApi();
        String adventureName = A man's best friend; // String | The name of the adventure.
        String chapterName = Chapter 01 - The killing of the dragon; // String | The name of the chapter.
        
        try {
            array[chapter] result = apiInstance.chaptersGetByName(adventureName, chapterName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChapterApi#chaptersGetByName");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
ChapterApi *apiInstance = [[ChapterApi alloc] init];
String *adventureName = A man's best friend; // The name of the adventure. (default to null)
String *chapterName = Chapter 01 - The killing of the dragon; // The name of the chapter. (default to null)

[apiInstance chaptersGetByNameWith:adventureName
    chapterName:chapterName
              completionHandler: ^(array[chapter] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var PenAndPaperDmHelper = require('pen_and_paper_dm_helper');

// Create an instance of the API class
var api = new PenAndPaperDmHelper.ChapterApi()
var adventureName = A man's best friend; // {String} The name of the adventure.
var chapterName = Chapter 01 - The killing of the dragon; // {String} The name of the chapter.

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.chaptersGetByName(adventureName, chapterName, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class chaptersGetByNameExample
    {
        public void main()
        {
            
            // Create an instance of the API class
            var apiInstance = new ChapterApi();
            var adventureName = A man's best friend;  // String | The name of the adventure. (default to null)
            var chapterName = Chapter 01 - The killing of the dragon;  // String | The name of the chapter. (default to null)

            try {
                array[chapter] result = apiInstance.chaptersGetByName(adventureName, chapterName);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ChapterApi.chaptersGetByName: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ChapterApi();
$adventureName = A man's best friend; // String | The name of the adventure.
$chapterName = Chapter 01 - The killing of the dragon; // String | The name of the chapter.

try {
    $result = $api_instance->chaptersGetByName($adventureName, $chapterName);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ChapterApi->chaptersGetByName: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ChapterApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ChapterApi->new();
my $adventureName = A man's best friend; # String | The name of the adventure.
my $chapterName = Chapter 01 - The killing of the dragon; # String | The name of the chapter.

eval { 
    my $result = $api_instance->chaptersGetByName(adventureName => $adventureName, chapterName => $chapterName);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ChapterApi->chaptersGetByName: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.ChapterApi()
adventureName = A man's best friend # String | The name of the adventure. (default to null)
chapterName = Chapter 01 - The killing of the dragon # String | The name of the chapter. (default to null)

try: 
    api_response = api_instance.chapters_get_by_name(adventureName, chapterName)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ChapterApi->chaptersGetByName: %s\n" % e)
extern crate ChapterApi;

pub fn main() {
    let adventureName = A man's best friend; // String
    let chapterName = Chapter 01 - The killing of the dragon; // String

    let mut context = ChapterApi::Context::default();
    let result = client.chaptersGetByName(adventureName, chapterName, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
adventureName*
String
The name of the adventure.
Required
chapterName*
String
The name of the chapter.
Required

Responses


chaptersPatch

Updates the `chapter`. If a attribute has a null value, it is not updated. Attribute `name` value has to be a name of a existing `chapter`. If a `chapter` has to be renamed, the patch operation with name parameter should be used.


/chapter/{adventureName}

Usage and SDK Samples

curl -X PATCH\
 -H "Content-Type: application/json"\
 "https://localhost/chapter/{adventureName}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ChapterApi;

import java.io.File;
import java.util.*;

public class ChapterApiExample {
    public static void main(String[] args) {
        
        // Create an instance of the API class
        ChapterApi apiInstance = new ChapterApi();
        String adventureName = A man's best friend; // String | The name of the adventure.
        Chapter chapter = ; // Chapter | 
        
        try {
            apiInstance.chaptersPatch(adventureName, chapter);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChapterApi#chaptersPatch");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.ChapterApi;

public class ChapterApiExample {
    public static void main(String[] args) {
        ChapterApi apiInstance = new ChapterApi();
        String adventureName = A man's best friend; // String | The name of the adventure.
        Chapter chapter = ; // Chapter | 
        
        try {
            apiInstance.chaptersPatch(adventureName, chapter);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChapterApi#chaptersPatch");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
ChapterApi *apiInstance = [[ChapterApi alloc] init];
String *adventureName = A man's best friend; // The name of the adventure. (default to null)
Chapter *chapter = ; // 

[apiInstance chaptersPatchWith:adventureName
    chapter:chapter
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var PenAndPaperDmHelper = require('pen_and_paper_dm_helper');

// Create an instance of the API class
var api = new PenAndPaperDmHelper.ChapterApi()
var adventureName = A man's best friend; // {String} The name of the adventure.
var chapter = ; // {Chapter} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.chaptersPatch(adventureName, chapter, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class chaptersPatchExample
    {
        public void main()
        {
            
            // Create an instance of the API class
            var apiInstance = new ChapterApi();
            var adventureName = A man's best friend;  // String | The name of the adventure. (default to null)
            var chapter = new Chapter(); // Chapter | 

            try {
                apiInstance.chaptersPatch(adventureName, chapter);
            } catch (Exception e) {
                Debug.Print("Exception when calling ChapterApi.chaptersPatch: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ChapterApi();
$adventureName = A man's best friend; // String | The name of the adventure.
$chapter = ; // Chapter | 

try {
    $api_instance->chaptersPatch($adventureName, $chapter);
} catch (Exception $e) {
    echo 'Exception when calling ChapterApi->chaptersPatch: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ChapterApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ChapterApi->new();
my $adventureName = A man's best friend; # String | The name of the adventure.
my $chapter = WWW::OPenAPIClient::Object::Chapter->new(); # Chapter | 

eval { 
    $api_instance->chaptersPatch(adventureName => $adventureName, chapter => $chapter);
};
if ($@) {
    warn "Exception when calling ChapterApi->chaptersPatch: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.ChapterApi()
adventureName = A man's best friend # String | The name of the adventure. (default to null)
chapter =  # Chapter | 

try: 
    api_instance.chapters_patch(adventureName, chapter)
except ApiException as e:
    print("Exception when calling ChapterApi->chaptersPatch: %s\n" % e)
extern crate ChapterApi;

pub fn main() {
    let adventureName = A man's best friend; // String
    let chapter = ; // Chapter

    let mut context = ChapterApi::Context::default();
    let result = client.chaptersPatch(adventureName, chapter, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
adventureName*
String
The name of the adventure.
Required
Body parameters
Name Description
chapter *

Responses


chaptersPatchByName

Updates the `chapter`. If a attribute has a null value, it is not updated


/chapter/{adventureName}/{chapterName}

Usage and SDK Samples

curl -X PATCH\
 -H "Content-Type: application/json"\
 "https://localhost/chapter/{adventureName}/{chapterName}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ChapterApi;

import java.io.File;
import java.util.*;

public class ChapterApiExample {
    public static void main(String[] args) {
        
        // Create an instance of the API class
        ChapterApi apiInstance = new ChapterApi();
        String adventureName = A man's best friend; // String | The name of the adventure.
        String chapterName = Chapter 01 - The killing of the dragon; // String | The name of the chapter.
        Chapter chapter = ; // Chapter | 
        
        try {
            apiInstance.chaptersPatchByName(adventureName, chapterName, chapter);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChapterApi#chaptersPatchByName");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.ChapterApi;

public class ChapterApiExample {
    public static void main(String[] args) {
        ChapterApi apiInstance = new ChapterApi();
        String adventureName = A man's best friend; // String | The name of the adventure.
        String chapterName = Chapter 01 - The killing of the dragon; // String | The name of the chapter.
        Chapter chapter = ; // Chapter | 
        
        try {
            apiInstance.chaptersPatchByName(adventureName, chapterName, chapter);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChapterApi#chaptersPatchByName");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
ChapterApi *apiInstance = [[ChapterApi alloc] init];
String *adventureName = A man's best friend; // The name of the adventure. (default to null)
String *chapterName = Chapter 01 - The killing of the dragon; // The name of the chapter. (default to null)
Chapter *chapter = ; // 

[apiInstance chaptersPatchByNameWith:adventureName
    chapterName:chapterName
    chapter:chapter
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var PenAndPaperDmHelper = require('pen_and_paper_dm_helper');

// Create an instance of the API class
var api = new PenAndPaperDmHelper.ChapterApi()
var adventureName = A man's best friend; // {String} The name of the adventure.
var chapterName = Chapter 01 - The killing of the dragon; // {String} The name of the chapter.
var chapter = ; // {Chapter} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.chaptersPatchByName(adventureName, chapterName, chapter, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class chaptersPatchByNameExample
    {
        public void main()
        {
            
            // Create an instance of the API class
            var apiInstance = new ChapterApi();
            var adventureName = A man's best friend;  // String | The name of the adventure. (default to null)
            var chapterName = Chapter 01 - The killing of the dragon;  // String | The name of the chapter. (default to null)
            var chapter = new Chapter(); // Chapter | 

            try {
                apiInstance.chaptersPatchByName(adventureName, chapterName, chapter);
            } catch (Exception e) {
                Debug.Print("Exception when calling ChapterApi.chaptersPatchByName: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ChapterApi();
$adventureName = A man's best friend; // String | The name of the adventure.
$chapterName = Chapter 01 - The killing of the dragon; // String | The name of the chapter.
$chapter = ; // Chapter | 

try {
    $api_instance->chaptersPatchByName($adventureName, $chapterName, $chapter);
} catch (Exception $e) {
    echo 'Exception when calling ChapterApi->chaptersPatchByName: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ChapterApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ChapterApi->new();
my $adventureName = A man's best friend; # String | The name of the adventure.
my $chapterName = Chapter 01 - The killing of the dragon; # String | The name of the chapter.
my $chapter = WWW::OPenAPIClient::Object::Chapter->new(); # Chapter | 

eval { 
    $api_instance->chaptersPatchByName(adventureName => $adventureName, chapterName => $chapterName, chapter => $chapter);
};
if ($@) {
    warn "Exception when calling ChapterApi->chaptersPatchByName: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.ChapterApi()
adventureName = A man's best friend # String | The name of the adventure. (default to null)
chapterName = Chapter 01 - The killing of the dragon # String | The name of the chapter. (default to null)
chapter =  # Chapter | 

try: 
    api_instance.chapters_patch_by_name(adventureName, chapterName, chapter)
except ApiException as e:
    print("Exception when calling ChapterApi->chaptersPatchByName: %s\n" % e)
extern crate ChapterApi;

pub fn main() {
    let adventureName = A man's best friend; // String
    let chapterName = Chapter 01 - The killing of the dragon; // String
    let chapter = ; // Chapter

    let mut context = ChapterApi::Context::default();
    let result = client.chaptersPatchByName(adventureName, chapterName, chapter, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
adventureName*
String
The name of the adventure.
Required
chapterName*
String
The name of the chapter.
Required
Body parameters
Name Description
chapter *

Responses


chaptersPut

Creates a new `chapter` with a name. If a `chapter` `name` is given in the request body and it conflicts with the path parameter, the path parameter is used.


/chapter/{adventureName}

Usage and SDK Samples

curl -X PUT\
 -H "Content-Type: application/json"\
 "https://localhost/chapter/{adventureName}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ChapterApi;

import java.io.File;
import java.util.*;

public class ChapterApiExample {
    public static void main(String[] args) {
        
        // Create an instance of the API class
        ChapterApi apiInstance = new ChapterApi();
        String adventureName = A man's best friend; // String | The name of the adventure.
        Chapter chapter = ; // Chapter | 
        
        try {
            apiInstance.chaptersPut(adventureName, chapter);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChapterApi#chaptersPut");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.ChapterApi;

public class ChapterApiExample {
    public static void main(String[] args) {
        ChapterApi apiInstance = new ChapterApi();
        String adventureName = A man's best friend; // String | The name of the adventure.
        Chapter chapter = ; // Chapter | 
        
        try {
            apiInstance.chaptersPut(adventureName, chapter);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChapterApi#chaptersPut");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
ChapterApi *apiInstance = [[ChapterApi alloc] init];
String *adventureName = A man's best friend; // The name of the adventure. (default to null)
Chapter *chapter = ; // 

[apiInstance chaptersPutWith:adventureName
    chapter:chapter
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var PenAndPaperDmHelper = require('pen_and_paper_dm_helper');

// Create an instance of the API class
var api = new PenAndPaperDmHelper.ChapterApi()
var adventureName = A man's best friend; // {String} The name of the adventure.
var chapter = ; // {Chapter} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.chaptersPut(adventureName, chapter, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class chaptersPutExample
    {
        public void main()
        {
            
            // Create an instance of the API class
            var apiInstance = new ChapterApi();
            var adventureName = A man's best friend;  // String | The name of the adventure. (default to null)
            var chapter = new Chapter(); // Chapter | 

            try {
                apiInstance.chaptersPut(adventureName, chapter);
            } catch (Exception e) {
                Debug.Print("Exception when calling ChapterApi.chaptersPut: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ChapterApi();
$adventureName = A man's best friend; // String | The name of the adventure.
$chapter = ; // Chapter | 

try {
    $api_instance->chaptersPut($adventureName, $chapter);
} catch (Exception $e) {
    echo 'Exception when calling ChapterApi->chaptersPut: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ChapterApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ChapterApi->new();
my $adventureName = A man's best friend; # String | The name of the adventure.
my $chapter = WWW::OPenAPIClient::Object::Chapter->new(); # Chapter | 

eval { 
    $api_instance->chaptersPut(adventureName => $adventureName, chapter => $chapter);
};
if ($@) {
    warn "Exception when calling ChapterApi->chaptersPut: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.ChapterApi()
adventureName = A man's best friend # String | The name of the adventure. (default to null)
chapter =  # Chapter | 

try: 
    api_instance.chapters_put(adventureName, chapter)
except ApiException as e:
    print("Exception when calling ChapterApi->chaptersPut: %s\n" % e)
extern crate ChapterApi;

pub fn main() {
    let adventureName = A man's best friend; // String
    let chapter = ; // Chapter

    let mut context = ChapterApi::Context::default();
    let result = client.chaptersPut(adventureName, chapter, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
adventureName*
String
The name of the adventure.
Required
Body parameters
Name Description
chapter *

Responses


ChapterWithoutNamePathParameter

chaptersPatch

Updates the `chapter`. If a attribute has a null value, it is not updated. Attribute `name` value has to be a name of a existing `chapter`. If a `chapter` has to be renamed, the patch operation with name parameter should be used.


/chapter/{adventureName}

Usage and SDK Samples

curl -X PATCH\
 -H "Content-Type: application/json"\
 "https://localhost/chapter/{adventureName}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ChapterWithoutNamePathParameterApi;

import java.io.File;
import java.util.*;

public class ChapterWithoutNamePathParameterApiExample {
    public static void main(String[] args) {
        
        // Create an instance of the API class
        ChapterWithoutNamePathParameterApi apiInstance = new ChapterWithoutNamePathParameterApi();
        String adventureName = A man's best friend; // String | The name of the adventure.
        Chapter chapter = ; // Chapter | 
        
        try {
            apiInstance.chaptersPatch(adventureName, chapter);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChapterWithoutNamePathParameterApi#chaptersPatch");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.ChapterWithoutNamePathParameterApi;

public class ChapterWithoutNamePathParameterApiExample {
    public static void main(String[] args) {
        ChapterWithoutNamePathParameterApi apiInstance = new ChapterWithoutNamePathParameterApi();
        String adventureName = A man's best friend; // String | The name of the adventure.
        Chapter chapter = ; // Chapter | 
        
        try {
            apiInstance.chaptersPatch(adventureName, chapter);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChapterWithoutNamePathParameterApi#chaptersPatch");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
ChapterWithoutNamePathParameterApi *apiInstance = [[ChapterWithoutNamePathParameterApi alloc] init];
String *adventureName = A man's best friend; // The name of the adventure. (default to null)
Chapter *chapter = ; // 

[apiInstance chaptersPatchWith:adventureName
    chapter:chapter
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var PenAndPaperDmHelper = require('pen_and_paper_dm_helper');

// Create an instance of the API class
var api = new PenAndPaperDmHelper.ChapterWithoutNamePathParameterApi()
var adventureName = A man's best friend; // {String} The name of the adventure.
var chapter = ; // {Chapter} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.chaptersPatch(adventureName, chapter, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class chaptersPatchExample
    {
        public void main()
        {
            
            // Create an instance of the API class
            var apiInstance = new ChapterWithoutNamePathParameterApi();
            var adventureName = A man's best friend;  // String | The name of the adventure. (default to null)
            var chapter = new Chapter(); // Chapter | 

            try {
                apiInstance.chaptersPatch(adventureName, chapter);
            } catch (Exception e) {
                Debug.Print("Exception when calling ChapterWithoutNamePathParameterApi.chaptersPatch: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ChapterWithoutNamePathParameterApi();
$adventureName = A man's best friend; // String | The name of the adventure.
$chapter = ; // Chapter | 

try {
    $api_instance->chaptersPatch($adventureName, $chapter);
} catch (Exception $e) {
    echo 'Exception when calling ChapterWithoutNamePathParameterApi->chaptersPatch: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ChapterWithoutNamePathParameterApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ChapterWithoutNamePathParameterApi->new();
my $adventureName = A man's best friend; # String | The name of the adventure.
my $chapter = WWW::OPenAPIClient::Object::Chapter->new(); # Chapter | 

eval { 
    $api_instance->chaptersPatch(adventureName => $adventureName, chapter => $chapter);
};
if ($@) {
    warn "Exception when calling ChapterWithoutNamePathParameterApi->chaptersPatch: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.ChapterWithoutNamePathParameterApi()
adventureName = A man's best friend # String | The name of the adventure. (default to null)
chapter =  # Chapter | 

try: 
    api_instance.chapters_patch(adventureName, chapter)
except ApiException as e:
    print("Exception when calling ChapterWithoutNamePathParameterApi->chaptersPatch: %s\n" % e)
extern crate ChapterWithoutNamePathParameterApi;

pub fn main() {
    let adventureName = A man's best friend; // String
    let chapter = ; // Chapter

    let mut context = ChapterWithoutNamePathParameterApi::Context::default();
    let result = client.chaptersPatch(adventureName, chapter, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
adventureName*
String
The name of the adventure.
Required
Body parameters
Name Description
chapter *

Responses


chaptersPut

Creates a new `chapter` with a name. If a `chapter` `name` is given in the request body and it conflicts with the path parameter, the path parameter is used.


/chapter/{adventureName}

Usage and SDK Samples

curl -X PUT\
 -H "Content-Type: application/json"\
 "https://localhost/chapter/{adventureName}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ChapterWithoutNamePathParameterApi;

import java.io.File;
import java.util.*;

public class ChapterWithoutNamePathParameterApiExample {
    public static void main(String[] args) {
        
        // Create an instance of the API class
        ChapterWithoutNamePathParameterApi apiInstance = new ChapterWithoutNamePathParameterApi();
        String adventureName = A man's best friend; // String | The name of the adventure.
        Chapter chapter = ; // Chapter | 
        
        try {
            apiInstance.chaptersPut(adventureName, chapter);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChapterWithoutNamePathParameterApi#chaptersPut");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.ChapterWithoutNamePathParameterApi;

public class ChapterWithoutNamePathParameterApiExample {
    public static void main(String[] args) {
        ChapterWithoutNamePathParameterApi apiInstance = new ChapterWithoutNamePathParameterApi();
        String adventureName = A man's best friend; // String | The name of the adventure.
        Chapter chapter = ; // Chapter | 
        
        try {
            apiInstance.chaptersPut(adventureName, chapter);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChapterWithoutNamePathParameterApi#chaptersPut");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
ChapterWithoutNamePathParameterApi *apiInstance = [[ChapterWithoutNamePathParameterApi alloc] init];
String *adventureName = A man's best friend; // The name of the adventure. (default to null)
Chapter *chapter = ; // 

[apiInstance chaptersPutWith:adventureName
    chapter:chapter
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var PenAndPaperDmHelper = require('pen_and_paper_dm_helper');

// Create an instance of the API class
var api = new PenAndPaperDmHelper.ChapterWithoutNamePathParameterApi()
var adventureName = A man's best friend; // {String} The name of the adventure.
var chapter = ; // {Chapter} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.chaptersPut(adventureName, chapter, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class chaptersPutExample
    {
        public void main()
        {
            
            // Create an instance of the API class
            var apiInstance = new ChapterWithoutNamePathParameterApi();
            var adventureName = A man's best friend;  // String | The name of the adventure. (default to null)
            var chapter = new Chapter(); // Chapter | 

            try {
                apiInstance.chaptersPut(adventureName, chapter);
            } catch (Exception e) {
                Debug.Print("Exception when calling ChapterWithoutNamePathParameterApi.chaptersPut: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ChapterWithoutNamePathParameterApi();
$adventureName = A man's best friend; // String | The name of the adventure.
$chapter = ; // Chapter | 

try {
    $api_instance->chaptersPut($adventureName, $chapter);
} catch (Exception $e) {
    echo 'Exception when calling ChapterWithoutNamePathParameterApi->chaptersPut: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ChapterWithoutNamePathParameterApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ChapterWithoutNamePathParameterApi->new();
my $adventureName = A man's best friend; # String | The name of the adventure.
my $chapter = WWW::OPenAPIClient::Object::Chapter->new(); # Chapter | 

eval { 
    $api_instance->chaptersPut(adventureName => $adventureName, chapter => $chapter);
};
if ($@) {
    warn "Exception when calling ChapterWithoutNamePathParameterApi->chaptersPut: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.ChapterWithoutNamePathParameterApi()
adventureName = A man's best friend # String | The name of the adventure. (default to null)
chapter =  # Chapter | 

try: 
    api_instance.chapters_put(adventureName, chapter)
except ApiException as e:
    print("Exception when calling ChapterWithoutNamePathParameterApi->chaptersPut: %s\n" % e)
extern crate ChapterWithoutNamePathParameterApi;

pub fn main() {
    let adventureName = A man's best friend; // String
    let chapter = ; // Chapter

    let mut context = ChapterWithoutNamePathParameterApi::Context::default();
    let result = client.chaptersPut(adventureName, chapter, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
adventureName*
String
The name of the adventure.
Required
Body parameters
Name Description
chapter *

Responses


Graph

graphAdventureNameGet

Get the `graph` describing the whole adventure.


/graph/{adventureName}

Usage and SDK Samples

curl -X GET\
 -H "Accept: application/json"\
 "https://localhost/graph/{adventureName}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.GraphApi;

import java.io.File;
import java.util.*;

public class GraphApiExample {
    public static void main(String[] args) {
        
        // Create an instance of the API class
        GraphApi apiInstance = new GraphApi();
        String adventureName = A man's best friend; // String | The name of the adventure.
        
        try {
            graph result = apiInstance.graphAdventureNameGet(adventureName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GraphApi#graphAdventureNameGet");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.GraphApi;

public class GraphApiExample {
    public static void main(String[] args) {
        GraphApi apiInstance = new GraphApi();
        String adventureName = A man's best friend; // String | The name of the adventure.
        
        try {
            graph result = apiInstance.graphAdventureNameGet(adventureName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GraphApi#graphAdventureNameGet");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
GraphApi *apiInstance = [[GraphApi alloc] init];
String *adventureName = A man's best friend; // The name of the adventure. (default to null)

[apiInstance graphAdventureNameGetWith:adventureName
              completionHandler: ^(graph output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var PenAndPaperDmHelper = require('pen_and_paper_dm_helper');

// Create an instance of the API class
var api = new PenAndPaperDmHelper.GraphApi()
var adventureName = A man's best friend; // {String} The name of the adventure.

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.graphAdventureNameGet(adventureName, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class graphAdventureNameGetExample
    {
        public void main()
        {
            
            // Create an instance of the API class
            var apiInstance = new GraphApi();
            var adventureName = A man's best friend;  // String | The name of the adventure. (default to null)

            try {
                graph result = apiInstance.graphAdventureNameGet(adventureName);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling GraphApi.graphAdventureNameGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\GraphApi();
$adventureName = A man's best friend; // String | The name of the adventure.

try {
    $result = $api_instance->graphAdventureNameGet($adventureName);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling GraphApi->graphAdventureNameGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::GraphApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::GraphApi->new();
my $adventureName = A man's best friend; # String | The name of the adventure.

eval { 
    my $result = $api_instance->graphAdventureNameGet(adventureName => $adventureName);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling GraphApi->graphAdventureNameGet: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.GraphApi()
adventureName = A man's best friend # String | The name of the adventure. (default to null)

try: 
    api_response = api_instance.graph_adventure_name_get(adventureName)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling GraphApi->graphAdventureNameGet: %s\n" % e)
extern crate GraphApi;

pub fn main() {
    let adventureName = A man's best friend; // String

    let mut context = GraphApi::Context::default();
    let result = client.graphAdventureNameGet(adventureName, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
adventureName*
String
The name of the adventure.
Required

Responses


pathsLongestAdventureNameGet

Get the longest possible `path`s in the `graph`.


/paths/longest/{adventureName}

Usage and SDK Samples

curl -X GET\
 -H "Accept: application/json"\
 "https://localhost/paths/longest/{adventureName}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.GraphApi;

import java.io.File;
import java.util.*;

public class GraphApiExample {
    public static void main(String[] args) {
        
        // Create an instance of the API class
        GraphApi apiInstance = new GraphApi();
        String adventureName = A man's best friend; // String | The name of the adventure.
        
        try {
            array[path] result = apiInstance.pathsLongestAdventureNameGet(adventureName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GraphApi#pathsLongestAdventureNameGet");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.GraphApi;

public class GraphApiExample {
    public static void main(String[] args) {
        GraphApi apiInstance = new GraphApi();
        String adventureName = A man's best friend; // String | The name of the adventure.
        
        try {
            array[path] result = apiInstance.pathsLongestAdventureNameGet(adventureName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GraphApi#pathsLongestAdventureNameGet");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
GraphApi *apiInstance = [[GraphApi alloc] init];
String *adventureName = A man's best friend; // The name of the adventure. (default to null)

[apiInstance pathsLongestAdventureNameGetWith:adventureName
              completionHandler: ^(array[path] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var PenAndPaperDmHelper = require('pen_and_paper_dm_helper');

// Create an instance of the API class
var api = new PenAndPaperDmHelper.GraphApi()
var adventureName = A man's best friend; // {String} The name of the adventure.

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.pathsLongestAdventureNameGet(adventureName, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class pathsLongestAdventureNameGetExample
    {
        public void main()
        {
            
            // Create an instance of the API class
            var apiInstance = new GraphApi();
            var adventureName = A man's best friend;  // String | The name of the adventure. (default to null)

            try {
                array[path] result = apiInstance.pathsLongestAdventureNameGet(adventureName);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling GraphApi.pathsLongestAdventureNameGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\GraphApi();
$adventureName = A man's best friend; // String | The name of the adventure.

try {
    $result = $api_instance->pathsLongestAdventureNameGet($adventureName);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling GraphApi->pathsLongestAdventureNameGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::GraphApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::GraphApi->new();
my $adventureName = A man's best friend; # String | The name of the adventure.

eval { 
    my $result = $api_instance->pathsLongestAdventureNameGet(adventureName => $adventureName);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling GraphApi->pathsLongestAdventureNameGet: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.GraphApi()
adventureName = A man's best friend # String | The name of the adventure. (default to null)

try: 
    api_response = api_instance.paths_longest_adventure_name_get(adventureName)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling GraphApi->pathsLongestAdventureNameGet: %s\n" % e)
extern crate GraphApi;

pub fn main() {
    let adventureName = A man's best friend; // String

    let mut context = GraphApi::Context::default();
    let result = client.pathsLongestAdventureNameGet(adventureName, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
adventureName*
String
The name of the adventure.
Required

Responses


pathsNextAdventureNameStartingPointGet

Get the next possible `path`s starting with the given `chapter`.


/paths/next/{adventureName}/{startingPoint}

Usage and SDK Samples

curl -X GET\
 -H "Accept: application/json"\
 "https://localhost/paths/next/{adventureName}/{startingPoint}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.GraphApi;

import java.io.File;
import java.util.*;

public class GraphApiExample {
    public static void main(String[] args) {
        
        // Create an instance of the API class
        GraphApi apiInstance = new GraphApi();
        String adventureName = A man's best friend; // String | The name of the adventure.
        String startingPoint = Wishing for a friend; // String | The `chapter`s `name` as ´startingPoint`.
        
        try {
            array[path] result = apiInstance.pathsNextAdventureNameStartingPointGet(adventureName, startingPoint);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GraphApi#pathsNextAdventureNameStartingPointGet");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.GraphApi;

public class GraphApiExample {
    public static void main(String[] args) {
        GraphApi apiInstance = new GraphApi();
        String adventureName = A man's best friend; // String | The name of the adventure.
        String startingPoint = Wishing for a friend; // String | The `chapter`s `name` as ´startingPoint`.
        
        try {
            array[path] result = apiInstance.pathsNextAdventureNameStartingPointGet(adventureName, startingPoint);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GraphApi#pathsNextAdventureNameStartingPointGet");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
GraphApi *apiInstance = [[GraphApi alloc] init];
String *adventureName = A man's best friend; // The name of the adventure. (default to null)
String *startingPoint = Wishing for a friend; // The `chapter`s `name` as ´startingPoint`. (default to null)

[apiInstance pathsNextAdventureNameStartingPointGetWith:adventureName
    startingPoint:startingPoint
              completionHandler: ^(array[path] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var PenAndPaperDmHelper = require('pen_and_paper_dm_helper');

// Create an instance of the API class
var api = new PenAndPaperDmHelper.GraphApi()
var adventureName = A man's best friend; // {String} The name of the adventure.
var startingPoint = Wishing for a friend; // {String} The `chapter`s `name` as ´startingPoint`.

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.pathsNextAdventureNameStartingPointGet(adventureName, startingPoint, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class pathsNextAdventureNameStartingPointGetExample
    {
        public void main()
        {
            
            // Create an instance of the API class
            var apiInstance = new GraphApi();
            var adventureName = A man's best friend;  // String | The name of the adventure. (default to null)
            var startingPoint = Wishing for a friend;  // String | The `chapter`s `name` as ´startingPoint`. (default to null)

            try {
                array[path] result = apiInstance.pathsNextAdventureNameStartingPointGet(adventureName, startingPoint);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling GraphApi.pathsNextAdventureNameStartingPointGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\GraphApi();
$adventureName = A man's best friend; // String | The name of the adventure.
$startingPoint = Wishing for a friend; // String | The `chapter`s `name` as ´startingPoint`.

try {
    $result = $api_instance->pathsNextAdventureNameStartingPointGet($adventureName, $startingPoint);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling GraphApi->pathsNextAdventureNameStartingPointGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::GraphApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::GraphApi->new();
my $adventureName = A man's best friend; # String | The name of the adventure.
my $startingPoint = Wishing for a friend; # String | The `chapter`s `name` as ´startingPoint`.

eval { 
    my $result = $api_instance->pathsNextAdventureNameStartingPointGet(adventureName => $adventureName, startingPoint => $startingPoint);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling GraphApi->pathsNextAdventureNameStartingPointGet: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.GraphApi()
adventureName = A man's best friend # String | The name of the adventure. (default to null)
startingPoint = Wishing for a friend # String | The `chapter`s `name` as ´startingPoint`. (default to null)

try: 
    api_response = api_instance.paths_next_adventure_name_starting_point_get(adventureName, startingPoint)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling GraphApi->pathsNextAdventureNameStartingPointGet: %s\n" % e)
extern crate GraphApi;

pub fn main() {
    let adventureName = A man's best friend; // String
    let startingPoint = Wishing for a friend; // String

    let mut context = GraphApi::Context::default();
    let result = client.pathsNextAdventureNameStartingPointGet(adventureName, startingPoint, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
adventureName*
String
The name of the adventure.
Required
startingPoint*
String
The `chapter`s `name` as ´startingPoint`.
Required

Responses


pathsShortestAdventureNameGet

Get the shortest possible `path`s in the `graph`.


/paths/shortest/{adventureName}

Usage and SDK Samples

curl -X GET\
 -H "Accept: application/json"\
 "https://localhost/paths/shortest/{adventureName}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.GraphApi;

import java.io.File;
import java.util.*;

public class GraphApiExample {
    public static void main(String[] args) {
        
        // Create an instance of the API class
        GraphApi apiInstance = new GraphApi();
        String adventureName = A man's best friend; // String | The name of the adventure.
        
        try {
            array[path] result = apiInstance.pathsShortestAdventureNameGet(adventureName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GraphApi#pathsShortestAdventureNameGet");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.GraphApi;

public class GraphApiExample {
    public static void main(String[] args) {
        GraphApi apiInstance = new GraphApi();
        String adventureName = A man's best friend; // String | The name of the adventure.
        
        try {
            array[path] result = apiInstance.pathsShortestAdventureNameGet(adventureName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GraphApi#pathsShortestAdventureNameGet");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
GraphApi *apiInstance = [[GraphApi alloc] init];
String *adventureName = A man's best friend; // The name of the adventure. (default to null)

[apiInstance pathsShortestAdventureNameGetWith:adventureName
              completionHandler: ^(array[path] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var PenAndPaperDmHelper = require('pen_and_paper_dm_helper');

// Create an instance of the API class
var api = new PenAndPaperDmHelper.GraphApi()
var adventureName = A man's best friend; // {String} The name of the adventure.

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.pathsShortestAdventureNameGet(adventureName, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class pathsShortestAdventureNameGetExample
    {
        public void main()
        {
            
            // Create an instance of the API class
            var apiInstance = new GraphApi();
            var adventureName = A man's best friend;  // String | The name of the adventure. (default to null)

            try {
                array[path] result = apiInstance.pathsShortestAdventureNameGet(adventureName);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling GraphApi.pathsShortestAdventureNameGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\GraphApi();
$adventureName = A man's best friend; // String | The name of the adventure.

try {
    $result = $api_instance->pathsShortestAdventureNameGet($adventureName);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling GraphApi->pathsShortestAdventureNameGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::GraphApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::GraphApi->new();
my $adventureName = A man's best friend; # String | The name of the adventure.

eval { 
    my $result = $api_instance->pathsShortestAdventureNameGet(adventureName => $adventureName);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling GraphApi->pathsShortestAdventureNameGet: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.GraphApi()
adventureName = A man's best friend # String | The name of the adventure. (default to null)

try: 
    api_response = api_instance.paths_shortest_adventure_name_get(adventureName)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling GraphApi->pathsShortestAdventureNameGet: %s\n" % e)
extern crate GraphApi;

pub fn main() {
    let adventureName = A man's best friend; // String

    let mut context = GraphApi::Context::default();
    let result = client.pathsShortestAdventureNameGet(adventureName, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
adventureName*
String
The name of the adventure.
Required

Responses


MultipleRecords

recordAdventureNameChapterNameDelete


/record/{adventureName}/{chapterName}

Usage and SDK Samples

curl -X DELETE\
 -H "Content-Type: application/json"\
 "https://localhost/record/{adventureName}/{chapterName}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.MultipleRecordsApi;

import java.io.File;
import java.util.*;

public class MultipleRecordsApiExample {
    public static void main(String[] args) {
        
        // Create an instance of the API class
        MultipleRecordsApi apiInstance = new MultipleRecordsApi();
        String adventureName = A man's best friend; // String | The name of the adventure.
        String chapterName = Chapter 01 - The killing of the dragon; // String | The name of the chapter.
        array[record] record = ; // array[record] | 
        
        try {
            apiInstance.recordAdventureNameChapterNameDelete(adventureName, chapterName, record);
        } catch (ApiException e) {
            System.err.println("Exception when calling MultipleRecordsApi#recordAdventureNameChapterNameDelete");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.MultipleRecordsApi;

public class MultipleRecordsApiExample {
    public static void main(String[] args) {
        MultipleRecordsApi apiInstance = new MultipleRecordsApi();
        String adventureName = A man's best friend; // String | The name of the adventure.
        String chapterName = Chapter 01 - The killing of the dragon; // String | The name of the chapter.
        array[record] record = ; // array[record] | 
        
        try {
            apiInstance.recordAdventureNameChapterNameDelete(adventureName, chapterName, record);
        } catch (ApiException e) {
            System.err.println("Exception when calling MultipleRecordsApi#recordAdventureNameChapterNameDelete");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
MultipleRecordsApi *apiInstance = [[MultipleRecordsApi alloc] init];
String *adventureName = A man's best friend; // The name of the adventure. (default to null)
String *chapterName = Chapter 01 - The killing of the dragon; // The name of the chapter. (default to null)
array[record] *record = ; //  (optional)

[apiInstance recordAdventureNameChapterNameDeleteWith:adventureName
    chapterName:chapterName
    record:record
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var PenAndPaperDmHelper = require('pen_and_paper_dm_helper');

// Create an instance of the API class
var api = new PenAndPaperDmHelper.MultipleRecordsApi()
var adventureName = A man's best friend; // {String} The name of the adventure.
var chapterName = Chapter 01 - The killing of the dragon; // {String} The name of the chapter.
var opts = {
  'record':  // {array[record]} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.recordAdventureNameChapterNameDelete(adventureName, chapterName, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class recordAdventureNameChapterNameDeleteExample
    {
        public void main()
        {
            
            // Create an instance of the API class
            var apiInstance = new MultipleRecordsApi();
            var adventureName = A man's best friend;  // String | The name of the adventure. (default to null)
            var chapterName = Chapter 01 - The killing of the dragon;  // String | The name of the chapter. (default to null)
            var record = new array[record](); // array[record] |  (optional) 

            try {
                apiInstance.recordAdventureNameChapterNameDelete(adventureName, chapterName, record);
            } catch (Exception e) {
                Debug.Print("Exception when calling MultipleRecordsApi.recordAdventureNameChapterNameDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\MultipleRecordsApi();
$adventureName = A man's best friend; // String | The name of the adventure.
$chapterName = Chapter 01 - The killing of the dragon; // String | The name of the chapter.
$record = ; // array[record] | 

try {
    $api_instance->recordAdventureNameChapterNameDelete($adventureName, $chapterName, $record);
} catch (Exception $e) {
    echo 'Exception when calling MultipleRecordsApi->recordAdventureNameChapterNameDelete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::MultipleRecordsApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::MultipleRecordsApi->new();
my $adventureName = A man's best friend; # String | The name of the adventure.
my $chapterName = Chapter 01 - The killing of the dragon; # String | The name of the chapter.
my $record = [WWW::OPenAPIClient::Object::array[record]->new()]; # array[record] | 

eval { 
    $api_instance->recordAdventureNameChapterNameDelete(adventureName => $adventureName, chapterName => $chapterName, record => $record);
};
if ($@) {
    warn "Exception when calling MultipleRecordsApi->recordAdventureNameChapterNameDelete: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.MultipleRecordsApi()
adventureName = A man's best friend # String | The name of the adventure. (default to null)
chapterName = Chapter 01 - The killing of the dragon # String | The name of the chapter. (default to null)
record =  # array[record] |  (optional)

try: 
    api_instance.record_adventure_name_chapter_name_delete(adventureName, chapterName, record=record)
except ApiException as e:
    print("Exception when calling MultipleRecordsApi->recordAdventureNameChapterNameDelete: %s\n" % e)
extern crate MultipleRecordsApi;

pub fn main() {
    let adventureName = A man's best friend; // String
    let chapterName = Chapter 01 - The killing of the dragon; // String
    let record = ; // array[record]

    let mut context = MultipleRecordsApi::Context::default();
    let result = client.recordAdventureNameChapterNameDelete(adventureName, chapterName, record, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
adventureName*
String
The name of the adventure.
Required
chapterName*
String
The name of the chapter.
Required
Body parameters
Name Description
record

The `record`s to be deleted.

Responses


recordAdventureNameChapterNameGet


/record/{adventureName}/{chapterName}

Usage and SDK Samples

curl -X GET\
 -H "Accept: application/json"\
 "https://localhost/record/{adventureName}/{chapterName}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.MultipleRecordsApi;

import java.io.File;
import java.util.*;

public class MultipleRecordsApiExample {
    public static void main(String[] args) {
        
        // Create an instance of the API class
        MultipleRecordsApi apiInstance = new MultipleRecordsApi();
        String adventureName = A man's best friend; // String | The name of the adventure.
        String chapterName = Chapter 01 - The killing of the dragon; // String | The name of the chapter.
        
        try {
            array[record] result = apiInstance.recordAdventureNameChapterNameGet(adventureName, chapterName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MultipleRecordsApi#recordAdventureNameChapterNameGet");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.MultipleRecordsApi;

public class MultipleRecordsApiExample {
    public static void main(String[] args) {
        MultipleRecordsApi apiInstance = new MultipleRecordsApi();
        String adventureName = A man's best friend; // String | The name of the adventure.
        String chapterName = Chapter 01 - The killing of the dragon; // String | The name of the chapter.
        
        try {
            array[record] result = apiInstance.recordAdventureNameChapterNameGet(adventureName, chapterName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MultipleRecordsApi#recordAdventureNameChapterNameGet");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
MultipleRecordsApi *apiInstance = [[MultipleRecordsApi alloc] init];
String *adventureName = A man's best friend; // The name of the adventure. (default to null)
String *chapterName = Chapter 01 - The killing of the dragon; // The name of the chapter. (default to null)

[apiInstance recordAdventureNameChapterNameGetWith:adventureName
    chapterName:chapterName
              completionHandler: ^(array[record] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var PenAndPaperDmHelper = require('pen_and_paper_dm_helper');

// Create an instance of the API class
var api = new PenAndPaperDmHelper.MultipleRecordsApi()
var adventureName = A man's best friend; // {String} The name of the adventure.
var chapterName = Chapter 01 - The killing of the dragon; // {String} The name of the chapter.

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.recordAdventureNameChapterNameGet(adventureName, chapterName, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class recordAdventureNameChapterNameGetExample
    {
        public void main()
        {
            
            // Create an instance of the API class
            var apiInstance = new MultipleRecordsApi();
            var adventureName = A man's best friend;  // String | The name of the adventure. (default to null)
            var chapterName = Chapter 01 - The killing of the dragon;  // String | The name of the chapter. (default to null)

            try {
                array[record] result = apiInstance.recordAdventureNameChapterNameGet(adventureName, chapterName);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling MultipleRecordsApi.recordAdventureNameChapterNameGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\MultipleRecordsApi();
$adventureName = A man's best friend; // String | The name of the adventure.
$chapterName = Chapter 01 - The killing of the dragon; // String | The name of the chapter.

try {
    $result = $api_instance->recordAdventureNameChapterNameGet($adventureName, $chapterName);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling MultipleRecordsApi->recordAdventureNameChapterNameGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::MultipleRecordsApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::MultipleRecordsApi->new();
my $adventureName = A man's best friend; # String | The name of the adventure.
my $chapterName = Chapter 01 - The killing of the dragon; # String | The name of the chapter.

eval { 
    my $result = $api_instance->recordAdventureNameChapterNameGet(adventureName => $adventureName, chapterName => $chapterName);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling MultipleRecordsApi->recordAdventureNameChapterNameGet: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.MultipleRecordsApi()
adventureName = A man's best friend # String | The name of the adventure. (default to null)
chapterName = Chapter 01 - The killing of the dragon # String | The name of the chapter. (default to null)

try: 
    api_response = api_instance.record_adventure_name_chapter_name_get(adventureName, chapterName)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MultipleRecordsApi->recordAdventureNameChapterNameGet: %s\n" % e)
extern crate MultipleRecordsApi;

pub fn main() {
    let adventureName = A man's best friend; // String
    let chapterName = Chapter 01 - The killing of the dragon; // String

    let mut context = MultipleRecordsApi::Context::default();
    let result = client.recordAdventureNameChapterNameGet(adventureName, chapterName, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
adventureName*
String
The name of the adventure.
Required
chapterName*
String
The name of the chapter.
Required

Responses


Record

getRecordByChapterAndIndex

Returns a `record`.


/record/{adventureName}/{chapterName}/{index}

Usage and SDK Samples

curl -X GET\
 -H "Accept: application/json"\
 "https://localhost/record/{adventureName}/{chapterName}/{index}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.RecordApi;

import java.io.File;
import java.util.*;

public class RecordApiExample {
    public static void main(String[] args) {
        
        // Create an instance of the API class
        RecordApi apiInstance = new RecordApi();
        String adventureName = A man's best friend; // String | The name of the adventure.
        String chapterName = Chapter 01 - The killing of the dragon; // String | The name of the chapter.
        Integer index = 0; // Integer | Index of the record in the chapter.
        
        try {
            record result = apiInstance.getRecordByChapterAndIndex(adventureName, chapterName, index);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RecordApi#getRecordByChapterAndIndex");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.RecordApi;

public class RecordApiExample {
    public static void main(String[] args) {
        RecordApi apiInstance = new RecordApi();
        String adventureName = A man's best friend; // String | The name of the adventure.
        String chapterName = Chapter 01 - The killing of the dragon; // String | The name of the chapter.
        Integer index = 0; // Integer | Index of the record in the chapter.
        
        try {
            record result = apiInstance.getRecordByChapterAndIndex(adventureName, chapterName, index);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RecordApi#getRecordByChapterAndIndex");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
RecordApi *apiInstance = [[RecordApi alloc] init];
String *adventureName = A man's best friend; // The name of the adventure. (default to null)
String *chapterName = Chapter 01 - The killing of the dragon; // The name of the chapter. (default to null)
Integer *index = 0; // Index of the record in the chapter. (default to null)

[apiInstance getRecordByChapterAndIndexWith:adventureName
    chapterName:chapterName
    index:index
              completionHandler: ^(record output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var PenAndPaperDmHelper = require('pen_and_paper_dm_helper');

// Create an instance of the API class
var api = new PenAndPaperDmHelper.RecordApi()
var adventureName = A man's best friend; // {String} The name of the adventure.
var chapterName = Chapter 01 - The killing of the dragon; // {String} The name of the chapter.
var index = 0; // {Integer} Index of the record in the chapter.

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getRecordByChapterAndIndex(adventureName, chapterName, index, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class getRecordByChapterAndIndexExample
    {
        public void main()
        {
            
            // Create an instance of the API class
            var apiInstance = new RecordApi();
            var adventureName = A man's best friend;  // String | The name of the adventure. (default to null)
            var chapterName = Chapter 01 - The killing of the dragon;  // String | The name of the chapter. (default to null)
            var index = 0;  // Integer | Index of the record in the chapter. (default to null)

            try {
                record result = apiInstance.getRecordByChapterAndIndex(adventureName, chapterName, index);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling RecordApi.getRecordByChapterAndIndex: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\RecordApi();
$adventureName = A man's best friend; // String | The name of the adventure.
$chapterName = Chapter 01 - The killing of the dragon; // String | The name of the chapter.
$index = 0; // Integer | Index of the record in the chapter.

try {
    $result = $api_instance->getRecordByChapterAndIndex($adventureName, $chapterName, $index);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling RecordApi->getRecordByChapterAndIndex: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::RecordApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::RecordApi->new();
my $adventureName = A man's best friend; # String | The name of the adventure.
my $chapterName = Chapter 01 - The killing of the dragon; # String | The name of the chapter.
my $index = 0; # Integer | Index of the record in the chapter.

eval { 
    my $result = $api_instance->getRecordByChapterAndIndex(adventureName => $adventureName, chapterName => $chapterName, index => $index);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling RecordApi->getRecordByChapterAndIndex: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.RecordApi()
adventureName = A man's best friend # String | The name of the adventure. (default to null)
chapterName = Chapter 01 - The killing of the dragon # String | The name of the chapter. (default to null)
index = 0 # Integer | Index of the record in the chapter. (default to null)

try: 
    api_response = api_instance.get_record_by_chapter_and_index(adventureName, chapterName, index)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RecordApi->getRecordByChapterAndIndex: %s\n" % e)
extern crate RecordApi;

pub fn main() {
    let adventureName = A man's best friend; // String
    let chapterName = Chapter 01 - The killing of the dragon; // String
    let index = 0; // Integer

    let mut context = RecordApi::Context::default();
    let result = client.getRecordByChapterAndIndex(adventureName, chapterName, index, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
adventureName*
String
The name of the adventure.
Required
chapterName*
String
The name of the chapter.
Required
index*
Integer
Index of the record in the chapter.
Required

Responses


recordAdventureNameChapterNameDelete


/record/{adventureName}/{chapterName}

Usage and SDK Samples

curl -X DELETE\
 -H "Content-Type: application/json"\
 "https://localhost/record/{adventureName}/{chapterName}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.RecordApi;

import java.io.File;
import java.util.*;

public class RecordApiExample {
    public static void main(String[] args) {
        
        // Create an instance of the API class
        RecordApi apiInstance = new RecordApi();
        String adventureName = A man's best friend; // String | The name of the adventure.
        String chapterName = Chapter 01 - The killing of the dragon; // String | The name of the chapter.
        array[record] record = ; // array[record] | 
        
        try {
            apiInstance.recordAdventureNameChapterNameDelete(adventureName, chapterName, record);
        } catch (ApiException e) {
            System.err.println("Exception when calling RecordApi#recordAdventureNameChapterNameDelete");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.RecordApi;

public class RecordApiExample {
    public static void main(String[] args) {
        RecordApi apiInstance = new RecordApi();
        String adventureName = A man's best friend; // String | The name of the adventure.
        String chapterName = Chapter 01 - The killing of the dragon; // String | The name of the chapter.
        array[record] record = ; // array[record] | 
        
        try {
            apiInstance.recordAdventureNameChapterNameDelete(adventureName, chapterName, record);
        } catch (ApiException e) {
            System.err.println("Exception when calling RecordApi#recordAdventureNameChapterNameDelete");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
RecordApi *apiInstance = [[RecordApi alloc] init];
String *adventureName = A man's best friend; // The name of the adventure. (default to null)
String *chapterName = Chapter 01 - The killing of the dragon; // The name of the chapter. (default to null)
array[record] *record = ; //  (optional)

[apiInstance recordAdventureNameChapterNameDeleteWith:adventureName
    chapterName:chapterName
    record:record
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var PenAndPaperDmHelper = require('pen_and_paper_dm_helper');

// Create an instance of the API class
var api = new PenAndPaperDmHelper.RecordApi()
var adventureName = A man's best friend; // {String} The name of the adventure.
var chapterName = Chapter 01 - The killing of the dragon; // {String} The name of the chapter.
var opts = {
  'record':  // {array[record]} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.recordAdventureNameChapterNameDelete(adventureName, chapterName, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class recordAdventureNameChapterNameDeleteExample
    {
        public void main()
        {
            
            // Create an instance of the API class
            var apiInstance = new RecordApi();
            var adventureName = A man's best friend;  // String | The name of the adventure. (default to null)
            var chapterName = Chapter 01 - The killing of the dragon;  // String | The name of the chapter. (default to null)
            var record = new array[record](); // array[record] |  (optional) 

            try {
                apiInstance.recordAdventureNameChapterNameDelete(adventureName, chapterName, record);
            } catch (Exception e) {
                Debug.Print("Exception when calling RecordApi.recordAdventureNameChapterNameDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\RecordApi();
$adventureName = A man's best friend; // String | The name of the adventure.
$chapterName = Chapter 01 - The killing of the dragon; // String | The name of the chapter.
$record = ; // array[record] | 

try {
    $api_instance->recordAdventureNameChapterNameDelete($adventureName, $chapterName, $record);
} catch (Exception $e) {
    echo 'Exception when calling RecordApi->recordAdventureNameChapterNameDelete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::RecordApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::RecordApi->new();
my $adventureName = A man's best friend; # String | The name of the adventure.
my $chapterName = Chapter 01 - The killing of the dragon; # String | The name of the chapter.
my $record = [WWW::OPenAPIClient::Object::array[record]->new()]; # array[record] | 

eval { 
    $api_instance->recordAdventureNameChapterNameDelete(adventureName => $adventureName, chapterName => $chapterName, record => $record);
};
if ($@) {
    warn "Exception when calling RecordApi->recordAdventureNameChapterNameDelete: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.RecordApi()
adventureName = A man's best friend # String | The name of the adventure. (default to null)
chapterName = Chapter 01 - The killing of the dragon # String | The name of the chapter. (default to null)
record =  # array[record] |  (optional)

try: 
    api_instance.record_adventure_name_chapter_name_delete(adventureName, chapterName, record=record)
except ApiException as e:
    print("Exception when calling RecordApi->recordAdventureNameChapterNameDelete: %s\n" % e)
extern crate RecordApi;

pub fn main() {
    let adventureName = A man's best friend; // String
    let chapterName = Chapter 01 - The killing of the dragon; // String
    let record = ; // array[record]

    let mut context = RecordApi::Context::default();
    let result = client.recordAdventureNameChapterNameDelete(adventureName, chapterName, record, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
adventureName*
String
The name of the adventure.
Required
chapterName*
String
The name of the chapter.
Required
Body parameters
Name Description
record

The `record`s to be deleted.

Responses


recordAdventureNameChapterNameGet


/record/{adventureName}/{chapterName}

Usage and SDK Samples

curl -X GET\
 -H "Accept: application/json"\
 "https://localhost/record/{adventureName}/{chapterName}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.RecordApi;

import java.io.File;
import java.util.*;

public class RecordApiExample {
    public static void main(String[] args) {
        
        // Create an instance of the API class
        RecordApi apiInstance = new RecordApi();
        String adventureName = A man's best friend; // String | The name of the adventure.
        String chapterName = Chapter 01 - The killing of the dragon; // String | The name of the chapter.
        
        try {
            array[record] result = apiInstance.recordAdventureNameChapterNameGet(adventureName, chapterName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RecordApi#recordAdventureNameChapterNameGet");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.RecordApi;

public class RecordApiExample {
    public static void main(String[] args) {
        RecordApi apiInstance = new RecordApi();
        String adventureName = A man's best friend; // String | The name of the adventure.
        String chapterName = Chapter 01 - The killing of the dragon; // String | The name of the chapter.
        
        try {
            array[record] result = apiInstance.recordAdventureNameChapterNameGet(adventureName, chapterName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RecordApi#recordAdventureNameChapterNameGet");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
RecordApi *apiInstance = [[RecordApi alloc] init];
String *adventureName = A man's best friend; // The name of the adventure. (default to null)
String *chapterName = Chapter 01 - The killing of the dragon; // The name of the chapter. (default to null)

[apiInstance recordAdventureNameChapterNameGetWith:adventureName
    chapterName:chapterName
              completionHandler: ^(array[record] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var PenAndPaperDmHelper = require('pen_and_paper_dm_helper');

// Create an instance of the API class
var api = new PenAndPaperDmHelper.RecordApi()
var adventureName = A man's best friend; // {String} The name of the adventure.
var chapterName = Chapter 01 - The killing of the dragon; // {String} The name of the chapter.

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.recordAdventureNameChapterNameGet(adventureName, chapterName, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class recordAdventureNameChapterNameGetExample
    {
        public void main()
        {
            
            // Create an instance of the API class
            var apiInstance = new RecordApi();
            var adventureName = A man's best friend;  // String | The name of the adventure. (default to null)
            var chapterName = Chapter 01 - The killing of the dragon;  // String | The name of the chapter. (default to null)

            try {
                array[record] result = apiInstance.recordAdventureNameChapterNameGet(adventureName, chapterName);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling RecordApi.recordAdventureNameChapterNameGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\RecordApi();
$adventureName = A man's best friend; // String | The name of the adventure.
$chapterName = Chapter 01 - The killing of the dragon; // String | The name of the chapter.

try {
    $result = $api_instance->recordAdventureNameChapterNameGet($adventureName, $chapterName);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling RecordApi->recordAdventureNameChapterNameGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::RecordApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::RecordApi->new();
my $adventureName = A man's best friend; # String | The name of the adventure.
my $chapterName = Chapter 01 - The killing of the dragon; # String | The name of the chapter.

eval { 
    my $result = $api_instance->recordAdventureNameChapterNameGet(adventureName => $adventureName, chapterName => $chapterName);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling RecordApi->recordAdventureNameChapterNameGet: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.RecordApi()
adventureName = A man's best friend # String | The name of the adventure. (default to null)
chapterName = Chapter 01 - The killing of the dragon # String | The name of the chapter. (default to null)

try: 
    api_response = api_instance.record_adventure_name_chapter_name_get(adventureName, chapterName)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RecordApi->recordAdventureNameChapterNameGet: %s\n" % e)
extern crate RecordApi;

pub fn main() {
    let adventureName = A man's best friend; // String
    let chapterName = Chapter 01 - The killing of the dragon; // String

    let mut context = RecordApi::Context::default();
    let result = client.recordAdventureNameChapterNameGet(adventureName, chapterName, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
adventureName*
String
The name of the adventure.
Required
chapterName*
String
The name of the chapter.
Required

Responses


recordsDeleteByChapterAndIndex

Deletes the `record` by that `index` in that `chapter`. If no `index` is given, all `record`s in this `chapter` will be deleted.


/record/{adventureName}/{chapterName}/{index}

Usage and SDK Samples

curl -X DELETE\
 -H "Accept: application/json"\
 "https://localhost/record/{adventureName}/{chapterName}/{index}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.RecordApi;

import java.io.File;
import java.util.*;

public class RecordApiExample {
    public static void main(String[] args) {
        
        // Create an instance of the API class
        RecordApi apiInstance = new RecordApi();
        String adventureName = A man's best friend; // String | The name of the adventure.
        String chapterName = Chapter 01 - The killing of the dragon; // String | The name of the chapter.
        Integer index = 0; // Integer | Index of the record in the chapter.
        
        try {
            'Integer' result = apiInstance.recordsDeleteByChapterAndIndex(adventureName, chapterName, index);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RecordApi#recordsDeleteByChapterAndIndex");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.RecordApi;

public class RecordApiExample {
    public static void main(String[] args) {
        RecordApi apiInstance = new RecordApi();
        String adventureName = A man's best friend; // String | The name of the adventure.
        String chapterName = Chapter 01 - The killing of the dragon; // String | The name of the chapter.
        Integer index = 0; // Integer | Index of the record in the chapter.
        
        try {
            'Integer' result = apiInstance.recordsDeleteByChapterAndIndex(adventureName, chapterName, index);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RecordApi#recordsDeleteByChapterAndIndex");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
RecordApi *apiInstance = [[RecordApi alloc] init];
String *adventureName = A man's best friend; // The name of the adventure. (default to null)
String *chapterName = Chapter 01 - The killing of the dragon; // The name of the chapter. (default to null)
Integer *index = 0; // Index of the record in the chapter. (default to null)

[apiInstance recordsDeleteByChapterAndIndexWith:adventureName
    chapterName:chapterName
    index:index
              completionHandler: ^('Integer' output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var PenAndPaperDmHelper = require('pen_and_paper_dm_helper');

// Create an instance of the API class
var api = new PenAndPaperDmHelper.RecordApi()
var adventureName = A man's best friend; // {String} The name of the adventure.
var chapterName = Chapter 01 - The killing of the dragon; // {String} The name of the chapter.
var index = 0; // {Integer} Index of the record in the chapter.

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.recordsDeleteByChapterAndIndex(adventureName, chapterName, index, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class recordsDeleteByChapterAndIndexExample
    {
        public void main()
        {
            
            // Create an instance of the API class
            var apiInstance = new RecordApi();
            var adventureName = A man's best friend;  // String | The name of the adventure. (default to null)
            var chapterName = Chapter 01 - The killing of the dragon;  // String | The name of the chapter. (default to null)
            var index = 0;  // Integer | Index of the record in the chapter. (default to null)

            try {
                'Integer' result = apiInstance.recordsDeleteByChapterAndIndex(adventureName, chapterName, index);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling RecordApi.recordsDeleteByChapterAndIndex: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\RecordApi();
$adventureName = A man's best friend; // String | The name of the adventure.
$chapterName = Chapter 01 - The killing of the dragon; // String | The name of the chapter.
$index = 0; // Integer | Index of the record in the chapter.

try {
    $result = $api_instance->recordsDeleteByChapterAndIndex($adventureName, $chapterName, $index);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling RecordApi->recordsDeleteByChapterAndIndex: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::RecordApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::RecordApi->new();
my $adventureName = A man's best friend; # String | The name of the adventure.
my $chapterName = Chapter 01 - The killing of the dragon; # String | The name of the chapter.
my $index = 0; # Integer | Index of the record in the chapter.

eval { 
    my $result = $api_instance->recordsDeleteByChapterAndIndex(adventureName => $adventureName, chapterName => $chapterName, index => $index);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling RecordApi->recordsDeleteByChapterAndIndex: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.RecordApi()
adventureName = A man's best friend # String | The name of the adventure. (default to null)
chapterName = Chapter 01 - The killing of the dragon # String | The name of the chapter. (default to null)
index = 0 # Integer | Index of the record in the chapter. (default to null)

try: 
    api_response = api_instance.records_delete_by_chapter_and_index(adventureName, chapterName, index)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RecordApi->recordsDeleteByChapterAndIndex: %s\n" % e)
extern crate RecordApi;

pub fn main() {
    let adventureName = A man's best friend; // String
    let chapterName = Chapter 01 - The killing of the dragon; // String
    let index = 0; // Integer

    let mut context = RecordApi::Context::default();
    let result = client.recordsDeleteByChapterAndIndex(adventureName, chapterName, index, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
adventureName*
String
The name of the adventure.
Required
chapterName*
String
The name of the chapter.
Required
index*
Integer
Index of the record in the chapter.
Required

Responses


recordsPatchByChapterAndIndex

Updates the `record` by that `index` in that `chapter`.


/record/{adventureName}/{chapterName}/{index}

Usage and SDK Samples

curl -X PATCH\
 -H "Content-Type: application/json"\
 "https://localhost/record/{adventureName}/{chapterName}/{index}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.RecordApi;

import java.io.File;
import java.util.*;

public class RecordApiExample {
    public static void main(String[] args) {
        
        // Create an instance of the API class
        RecordApi apiInstance = new RecordApi();
        String adventureName = A man's best friend; // String | The name of the adventure.
        String chapterName = Chapter 01 - The killing of the dragon; // String | The name of the chapter.
        Integer index = 8; // Integer | Index of the record in the chapter.
        Record record = Roll **50** to not get discovered.; // Record | 
        
        try {
            apiInstance.recordsPatchByChapterAndIndex(adventureName, chapterName, index, record);
        } catch (ApiException e) {
            System.err.println("Exception when calling RecordApi#recordsPatchByChapterAndIndex");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.RecordApi;

public class RecordApiExample {
    public static void main(String[] args) {
        RecordApi apiInstance = new RecordApi();
        String adventureName = A man's best friend; // String | The name of the adventure.
        String chapterName = Chapter 01 - The killing of the dragon; // String | The name of the chapter.
        Integer index = 8; // Integer | Index of the record in the chapter.
        Record record = Roll **50** to not get discovered.; // Record | 
        
        try {
            apiInstance.recordsPatchByChapterAndIndex(adventureName, chapterName, index, record);
        } catch (ApiException e) {
            System.err.println("Exception when calling RecordApi#recordsPatchByChapterAndIndex");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
RecordApi *apiInstance = [[RecordApi alloc] init];
String *adventureName = A man's best friend; // The name of the adventure. (default to null)
String *chapterName = Chapter 01 - The killing of the dragon; // The name of the chapter. (default to null)
Integer *index = 8; // Index of the record in the chapter. (default to null)
Record *record = Roll **50** to not get discovered.; //  (optional)

[apiInstance recordsPatchByChapterAndIndexWith:adventureName
    chapterName:chapterName
    index:index
    record:record
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var PenAndPaperDmHelper = require('pen_and_paper_dm_helper');

// Create an instance of the API class
var api = new PenAndPaperDmHelper.RecordApi()
var adventureName = A man's best friend; // {String} The name of the adventure.
var chapterName = Chapter 01 - The killing of the dragon; // {String} The name of the chapter.
var index = 8; // {Integer} Index of the record in the chapter.
var opts = {
  'record': Roll **50** to not get discovered. // {Record} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.recordsPatchByChapterAndIndex(adventureName, chapterName, index, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class recordsPatchByChapterAndIndexExample
    {
        public void main()
        {
            
            // Create an instance of the API class
            var apiInstance = new RecordApi();
            var adventureName = A man's best friend;  // String | The name of the adventure. (default to null)
            var chapterName = Chapter 01 - The killing of the dragon;  // String | The name of the chapter. (default to null)
            var index = 8;  // Integer | Index of the record in the chapter. (default to null)
            var record = new Record(); // Record |  (optional) 

            try {
                apiInstance.recordsPatchByChapterAndIndex(adventureName, chapterName, index, record);
            } catch (Exception e) {
                Debug.Print("Exception when calling RecordApi.recordsPatchByChapterAndIndex: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\RecordApi();
$adventureName = A man's best friend; // String | The name of the adventure.
$chapterName = Chapter 01 - The killing of the dragon; // String | The name of the chapter.
$index = 8; // Integer | Index of the record in the chapter.
$record = Roll **50** to not get discovered.; // Record | 

try {
    $api_instance->recordsPatchByChapterAndIndex($adventureName, $chapterName, $index, $record);
} catch (Exception $e) {
    echo 'Exception when calling RecordApi->recordsPatchByChapterAndIndex: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::RecordApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::RecordApi->new();
my $adventureName = A man's best friend; # String | The name of the adventure.
my $chapterName = Chapter 01 - The killing of the dragon; # String | The name of the chapter.
my $index = 8; # Integer | Index of the record in the chapter.
my $record = WWW::OPenAPIClient::Object::Record->new(); # Record | 

eval { 
    $api_instance->recordsPatchByChapterAndIndex(adventureName => $adventureName, chapterName => $chapterName, index => $index, record => $record);
};
if ($@) {
    warn "Exception when calling RecordApi->recordsPatchByChapterAndIndex: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.RecordApi()
adventureName = A man's best friend # String | The name of the adventure. (default to null)
chapterName = Chapter 01 - The killing of the dragon # String | The name of the chapter. (default to null)
index = 8 # Integer | Index of the record in the chapter. (default to null)
record = Roll **50** to not get discovered. # Record |  (optional)

try: 
    api_instance.records_patch_by_chapter_and_index(adventureName, chapterName, index, record=record)
except ApiException as e:
    print("Exception when calling RecordApi->recordsPatchByChapterAndIndex: %s\n" % e)
extern crate RecordApi;

pub fn main() {
    let adventureName = A man's best friend; // String
    let chapterName = Chapter 01 - The killing of the dragon; // String
    let index = 8; // Integer
    let record = Roll **50** to not get discovered.; // Record

    let mut context = RecordApi::Context::default();
    let result = client.recordsPatchByChapterAndIndex(adventureName, chapterName, index, record, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
adventureName*
String
The name of the adventure.
Required
chapterName*
String
The name of the chapter.
Required
index*
Integer
Index of the record in the chapter.
Required
Body parameters
Name Description
record

Responses


recordsPutByChapterAndIndex

Inserts a new `record` at that `index` in that `chapter`. If no `index` is given, then it is appended to the end.


/record/{adventureName}/{chapterName}/{index}

Usage and SDK Samples

curl -X PUT\
 -H "Content-Type: application/json"\
 "https://localhost/record/{adventureName}/{chapterName}/{index}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.RecordApi;

import java.io.File;
import java.util.*;

public class RecordApiExample {
    public static void main(String[] args) {
        
        // Create an instance of the API class
        RecordApi apiInstance = new RecordApi();
        String adventureName = A man's best friend; // String | The name of the adventure.
        String chapterName = Chapter 01 - The killing of the dragon; // String | The name of the chapter.
        Integer index = 0; // Integer | Index of the record in the chapter.
        Record record = The heroes gather around the dragon. Roll **100** to not be instantly killed.; // Record | 
        
        try {
            apiInstance.recordsPutByChapterAndIndex(adventureName, chapterName, index, record);
        } catch (ApiException e) {
            System.err.println("Exception when calling RecordApi#recordsPutByChapterAndIndex");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.RecordApi;

public class RecordApiExample {
    public static void main(String[] args) {
        RecordApi apiInstance = new RecordApi();
        String adventureName = A man's best friend; // String | The name of the adventure.
        String chapterName = Chapter 01 - The killing of the dragon; // String | The name of the chapter.
        Integer index = 0; // Integer | Index of the record in the chapter.
        Record record = The heroes gather around the dragon. Roll **100** to not be instantly killed.; // Record | 
        
        try {
            apiInstance.recordsPutByChapterAndIndex(adventureName, chapterName, index, record);
        } catch (ApiException e) {
            System.err.println("Exception when calling RecordApi#recordsPutByChapterAndIndex");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
RecordApi *apiInstance = [[RecordApi alloc] init];
String *adventureName = A man's best friend; // The name of the adventure. (default to null)
String *chapterName = Chapter 01 - The killing of the dragon; // The name of the chapter. (default to null)
Integer *index = 0; // Index of the record in the chapter. (default to null)
Record *record = The heroes gather around the dragon. Roll **100** to not be instantly killed.; //  (optional)

[apiInstance recordsPutByChapterAndIndexWith:adventureName
    chapterName:chapterName
    index:index
    record:record
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var PenAndPaperDmHelper = require('pen_and_paper_dm_helper');

// Create an instance of the API class
var api = new PenAndPaperDmHelper.RecordApi()
var adventureName = A man's best friend; // {String} The name of the adventure.
var chapterName = Chapter 01 - The killing of the dragon; // {String} The name of the chapter.
var index = 0; // {Integer} Index of the record in the chapter.
var opts = {
  'record': The heroes gather around the dragon. Roll **100** to not be instantly killed. // {Record} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.recordsPutByChapterAndIndex(adventureName, chapterName, index, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class recordsPutByChapterAndIndexExample
    {
        public void main()
        {
            
            // Create an instance of the API class
            var apiInstance = new RecordApi();
            var adventureName = A man's best friend;  // String | The name of the adventure. (default to null)
            var chapterName = Chapter 01 - The killing of the dragon;  // String | The name of the chapter. (default to null)
            var index = 0;  // Integer | Index of the record in the chapter. (default to null)
            var record = new Record(); // Record |  (optional) 

            try {
                apiInstance.recordsPutByChapterAndIndex(adventureName, chapterName, index, record);
            } catch (Exception e) {
                Debug.Print("Exception when calling RecordApi.recordsPutByChapterAndIndex: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\RecordApi();
$adventureName = A man's best friend; // String | The name of the adventure.
$chapterName = Chapter 01 - The killing of the dragon; // String | The name of the chapter.
$index = 0; // Integer | Index of the record in the chapter.
$record = The heroes gather around the dragon. Roll **100** to not be instantly killed.; // Record | 

try {
    $api_instance->recordsPutByChapterAndIndex($adventureName, $chapterName, $index, $record);
} catch (Exception $e) {
    echo 'Exception when calling RecordApi->recordsPutByChapterAndIndex: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::RecordApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::RecordApi->new();
my $adventureName = A man's best friend; # String | The name of the adventure.
my $chapterName = Chapter 01 - The killing of the dragon; # String | The name of the chapter.
my $index = 0; # Integer | Index of the record in the chapter.
my $record = WWW::OPenAPIClient::Object::Record->new(); # Record | 

eval { 
    $api_instance->recordsPutByChapterAndIndex(adventureName => $adventureName, chapterName => $chapterName, index => $index, record => $record);
};
if ($@) {
    warn "Exception when calling RecordApi->recordsPutByChapterAndIndex: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.RecordApi()
adventureName = A man's best friend # String | The name of the adventure. (default to null)
chapterName = Chapter 01 - The killing of the dragon # String | The name of the chapter. (default to null)
index = 0 # Integer | Index of the record in the chapter. (default to null)
record = The heroes gather around the dragon. Roll **100** to not be instantly killed. # Record |  (optional)

try: 
    api_instance.records_put_by_chapter_and_index(adventureName, chapterName, index, record=record)
except ApiException as e:
    print("Exception when calling RecordApi->recordsPutByChapterAndIndex: %s\n" % e)
extern crate RecordApi;

pub fn main() {
    let adventureName = A man's best friend; // String
    let chapterName = Chapter 01 - The killing of the dragon; // String
    let index = 0; // Integer
    let record = The heroes gather around the dragon. Roll **100** to not be instantly killed.; // Record

    let mut context = RecordApi::Context::default();
    let result = client.recordsPutByChapterAndIndex(adventureName, chapterName, index, record, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
adventureName*
String
The name of the adventure.
Required
chapterName*
String
The name of the chapter.
Required
index*
Integer
Index of the record in the chapter.
Required
Body parameters
Name Description
record

Responses