delete
Löscht das angebene Bild und Html
Löscht das Bild und Html
/storage/{memeId}
Usage and SDK Samples
curl -X DELETE \
"http://storage-service.storageservice:8203//storage/{memeId}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
// Create an instance of the API class
DefaultApi apiInstance = new DefaultApi();
String memeId = memeId_example; // String | ID des Bildes und Html
try {
apiInstance.delete(memeId);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#delete");
e.printStackTrace();
}
}
}
import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
String memeId = memeId_example; // String | ID des Bildes und Html
try {
apiInstance.delete(memeId);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#delete");
e.printStackTrace();
}
}
}
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *memeId = memeId_example; // ID des Bildes und Html (default to null)
// Löscht das angebene Bild und Html
[apiInstance deleteWith:memeId
completionHandler: ^(NSError* error) {
if (error) {
NSLog(@"Error: %@", error);
}
}];
var StorageService = require('storage_service');
// Create an instance of the API class
var api = new StorageService.DefaultApi()
var memeId = memeId_example; // {String} ID des Bildes und Html
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
api.delete(memeId, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class deleteExample
{
public void main()
{
// Create an instance of the API class
var apiInstance = new DefaultApi();
var memeId = memeId_example; // String | ID des Bildes und Html (default to null)
try {
// Löscht das angebene Bild und Html
apiInstance.delete(memeId);
} catch (Exception e) {
Debug.Print("Exception when calling DefaultApi.delete: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$memeId = memeId_example; // String | ID des Bildes und Html
try {
$api_instance->delete($memeId);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->delete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $memeId = memeId_example; # String | ID des Bildes und Html
eval {
$api_instance->delete(memeId => $memeId);
};
if ($@) {
warn "Exception when calling DefaultApi->delete: $@\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.DefaultApi()
memeId = memeId_example # String | ID des Bildes und Html (default to null)
try:
# Löscht das angebene Bild und Html
api_instance.delete(memeId)
except ApiException as e:
print("Exception when calling DefaultApi->delete: %s\n" % e)
extern crate DefaultApi;
pub fn main() {
let memeId = memeId_example; // String
let mut context = DefaultApi::Context::default();
let result = client.delete(memeId, &context).wait();
println!("{:?}", result);
}
Scopes
Parameters
Path parameters
Name | Description |
---|---|
memeId* |
String
ID des Bildes und Html
Required
|