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
| Name | Description |
|---|---|
| adventureName* |
String
The name of the adventure.
Required
|