Storage Service

Default

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

Responses


get

Returned die gefragte Html

die Html wird im Dateisystemgesucht und geliefert


/storage/{memeId}

Usage and SDK Samples

curl -X GET \
 -H "Accept: string" \
 "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 der Html

        try {
            'String' result = apiInstance.get(memeId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#get");
            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 der Html

        try {
            'String' result = apiInstance.get(memeId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#get");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *memeId = memeId_example; // ID der Html (default to null)

// Returned die gefragte Html
[apiInstance getWith:memeId
              completionHandler: ^('String' output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    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 der Html

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

namespace Example
{
    public class getExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var memeId = memeId_example;  // String | ID der Html (default to null)

            try {
                // Returned die gefragte Html
                'String' result = apiInstance.get(memeId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.get: " + 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 der Html

try {
    $result = $api_instance->get($memeId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->get: ', $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 der Html

eval {
    my $result = $api_instance->get(memeId => $memeId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->get: $@\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 der Html (default to null)

try:
    # Returned die gefragte Html
    api_response = api_instance.get(memeId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->get: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let memeId = memeId_example; // String

    let mut context = DefaultApi::Context::default();
    let result = client.get(memeId, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
memeId*
String
ID der Html
Required

Responses


read

Liefert Bild


/{memeId}/{filename}

Usage and SDK Samples

curl -X GET \
 "http://storage-service.storageservice:8203//{memeId}/{filename}"
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
        String filename = filename_example; // String | Filename des Bildes

        try {
            apiInstance.read(memeId, filename);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#read");
            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
        String filename = filename_example; // String | Filename des Bildes

        try {
            apiInstance.read(memeId, filename);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#read");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *memeId = memeId_example; // ID des Bildes (default to null)
String *filename = filename_example; // Filename des Bildes (default to null)

// Liefert Bild
[apiInstance readWith:memeId
    filename:filename
              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
var filename = filename_example; // {String} Filename des Bildes

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

namespace Example
{
    public class readExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var memeId = memeId_example;  // String | ID des Bildes (default to null)
            var filename = filename_example;  // String | Filename des Bildes (default to null)

            try {
                // Liefert Bild
                apiInstance.read(memeId, filename);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.read: " + 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
$filename = filename_example; // String | Filename des Bildes

try {
    $api_instance->read($memeId, $filename);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->read: ', $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
my $filename = filename_example; # String | Filename des Bildes

eval {
    $api_instance->read(memeId => $memeId, filename => $filename);
};
if ($@) {
    warn "Exception when calling DefaultApi->read: $@\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 (default to null)
filename = filename_example # String | Filename des Bildes (default to null)

try:
    # Liefert Bild
    api_instance.read(memeId, filename)
except ApiException as e:
    print("Exception when calling DefaultApi->read: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let memeId = memeId_example; // String
    let filename = filename_example; // String

    let mut context = DefaultApi::Context::default();
    let result = client.read(memeId, filename, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
memeId*
String
ID des Bildes
Required
filename*
String
Filename des Bildes
Required

Responses


write

Speichert Bild, HTML-Datei und fügt diese der Indexing queue hinzu.

Es wird eine ID aus dem zu speichernden Bild erzeugt. Das Bild und die HTML Datei werden in einem Ordner unter der ID gespeichert. Nach erfolgreicher Speicherung wird der Indexing queue ein neuer Eintrag anghängt.


/save

Usage and SDK Samples

curl -X POST \
 -H "Content-Type: multipart/form-data" \
 "http://storage-service.storageservice:8203//save"
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 file = file_example; // String | ist das gecrawlte Bild
        String html = html_example; // String | ist die gecrawlte Website

        try {
            apiInstance.write(file, html);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#write");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String file = file_example; // String | ist das gecrawlte Bild
        String html = html_example; // String | ist die gecrawlte Website

        try {
            apiInstance.write(file, html);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#write");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *file = file_example; // ist das gecrawlte Bild (default to null)
String *html = html_example; // ist die gecrawlte Website (default to null)

// Speichert Bild, HTML-Datei und fügt diese der Indexing queue hinzu.
[apiInstance writeWith:file
    html:html
              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 file = file_example; // {String} ist das gecrawlte Bild
var html = html_example; // {String} ist die gecrawlte Website

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

namespace Example
{
    public class writeExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var file = file_example;  // String | ist das gecrawlte Bild (default to null)
            var html = html_example;  // String | ist die gecrawlte Website (default to null)

            try {
                // Speichert Bild, HTML-Datei und fügt diese der Indexing queue hinzu.
                apiInstance.write(file, html);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.write: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$file = file_example; // String | ist das gecrawlte Bild
$html = html_example; // String | ist die gecrawlte Website

try {
    $api_instance->write($file, $html);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->write: ', $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 $file = file_example; # String | ist das gecrawlte Bild
my $html = html_example; # String | ist die gecrawlte Website

eval {
    $api_instance->write(file => $file, html => $html);
};
if ($@) {
    warn "Exception when calling DefaultApi->write: $@\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()
file = file_example # String | ist das gecrawlte Bild (default to null)
html = html_example # String | ist die gecrawlte Website (default to null)

try:
    # Speichert Bild, HTML-Datei und fügt diese der Indexing queue hinzu.
    api_instance.write(file, html)
except ApiException as e:
    print("Exception when calling DefaultApi->write: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let file = file_example; // String
    let html = html_example; // String

    let mut context = DefaultApi::Context::default();
    let result = client.write(file, html, &context).wait();

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

Scopes

Parameters

Form parameters
Name Description
file*
String
ist das gecrawlte Bild
Required
html*
String
ist die gecrawlte Website
Required

Responses