Jimi Search

Blog

preflightBlogPost

Preflight request for CORS.


/sites/{site}/posts/{postId}

Usage and SDK Samples

curl -X OPTIONS \
 "https://search.jimidata.info/sites/{site}/posts/{postId}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.BlogApi;

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

public class BlogApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        BlogApi apiInstance = new BlogApi();
        String site = mincong.io; // String | The domain of the website, e.g. 'mincong.io'
        String postId = activity-in-temporal; // String | The id of the post

        try {
            apiInstance.preflightBlogPost(site, postId);
        } catch (ApiException e) {
            System.err.println("Exception when calling BlogApi#preflightBlogPost");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.BlogApi;

public class BlogApiExample {
    public static void main(String[] args) {
        BlogApi apiInstance = new BlogApi();
        String site = mincong.io; // String | The domain of the website, e.g. 'mincong.io'
        String postId = activity-in-temporal; // String | The id of the post

        try {
            apiInstance.preflightBlogPost(site, postId);
        } catch (ApiException e) {
            System.err.println("Exception when calling BlogApi#preflightBlogPost");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
BlogApi *apiInstance = [[BlogApi alloc] init];
String *site = mincong.io; // The domain of the website, e.g. 'mincong.io' (default to null)
String *postId = activity-in-temporal; // The id of the post (default to null)

// Preflight request for CORS.
[apiInstance preflightBlogPostWith:site
    postId:postId
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var JimiSearch = require('jimi_search');

// Create an instance of the API class
var api = new JimiSearch.BlogApi()
var site = mincong.io; // {String} The domain of the website, e.g. 'mincong.io'
var postId = activity-in-temporal; // {String} The id of the post

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

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

            // Create an instance of the API class
            var apiInstance = new BlogApi();
            var site = mincong.io;  // String | The domain of the website, e.g. 'mincong.io' (default to null)
            var postId = activity-in-temporal;  // String | The id of the post (default to null)

            try {
                // Preflight request for CORS.
                apiInstance.preflightBlogPost(site, postId);
            } catch (Exception e) {
                Debug.Print("Exception when calling BlogApi.preflightBlogPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\BlogApi();
$site = mincong.io; // String | The domain of the website, e.g. 'mincong.io'
$postId = activity-in-temporal; // String | The id of the post

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::BlogApi->new();
my $site = mincong.io; # String | The domain of the website, e.g. 'mincong.io'
my $postId = activity-in-temporal; # String | The id of the post

eval {
    $api_instance->preflightBlogPost(site => $site, postId => $postId);
};
if ($@) {
    warn "Exception when calling BlogApi->preflightBlogPost: $@\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.BlogApi()
site = mincong.io # String | The domain of the website, e.g. 'mincong.io' (default to null)
postId = activity-in-temporal # String | The id of the post (default to null)

try:
    # Preflight request for CORS.
    api_instance.preflight_blog_post(site, postId)
except ApiException as e:
    print("Exception when calling BlogApi->preflightBlogPost: %s\n" % e)
extern crate BlogApi;

pub fn main() {
    let site = mincong.io; // String
    let postId = activity-in-temporal; // String

    let mut context = BlogApi::Context::default();
    let result = client.preflightBlogPost(site, postId, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
site*
String
The domain of the website, e.g. 'mincong.io'
Required
postId*
String
The id of the post
Required

Responses


preflightBlogPostsSearch

Preflight request for CORS.


/sites/{site}/posts/search

Usage and SDK Samples

curl -X OPTIONS \
 "https://search.jimidata.info/sites/{site}/posts/search"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.BlogApi;

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

public class BlogApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        BlogApi apiInstance = new BlogApi();
        String site = site_example; // String | The id (domain) of the website, such as 'mincong.io'

        try {
            apiInstance.preflightBlogPostsSearch(site);
        } catch (ApiException e) {
            System.err.println("Exception when calling BlogApi#preflightBlogPostsSearch");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.BlogApi;

public class BlogApiExample {
    public static void main(String[] args) {
        BlogApi apiInstance = new BlogApi();
        String site = site_example; // String | The id (domain) of the website, such as 'mincong.io'

        try {
            apiInstance.preflightBlogPostsSearch(site);
        } catch (ApiException e) {
            System.err.println("Exception when calling BlogApi#preflightBlogPostsSearch");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
BlogApi *apiInstance = [[BlogApi alloc] init];
String *site = site_example; // The id (domain) of the website, such as 'mincong.io' (default to null)

// Preflight request for CORS.
[apiInstance preflightBlogPostsSearchWith:site
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var JimiSearch = require('jimi_search');

// Create an instance of the API class
var api = new JimiSearch.BlogApi()
var site = site_example; // {String} The id (domain) of the website, such as 'mincong.io'

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

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

            // Create an instance of the API class
            var apiInstance = new BlogApi();
            var site = site_example;  // String | The id (domain) of the website, such as 'mincong.io' (default to null)

            try {
                // Preflight request for CORS.
                apiInstance.preflightBlogPostsSearch(site);
            } catch (Exception e) {
                Debug.Print("Exception when calling BlogApi.preflightBlogPostsSearch: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\BlogApi();
$site = site_example; // String | The id (domain) of the website, such as 'mincong.io'

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::BlogApi->new();
my $site = site_example; # String | The id (domain) of the website, such as 'mincong.io'

eval {
    $api_instance->preflightBlogPostsSearch(site => $site);
};
if ($@) {
    warn "Exception when calling BlogApi->preflightBlogPostsSearch: $@\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.BlogApi()
site = site_example # String | The id (domain) of the website, such as 'mincong.io' (default to null)

try:
    # Preflight request for CORS.
    api_instance.preflight_blog_posts_search(site)
except ApiException as e:
    print("Exception when calling BlogApi->preflightBlogPostsSearch: %s\n" % e)
extern crate BlogApi;

pub fn main() {
    let site = site_example; // String

    let mut context = BlogApi::Context::default();
    let result = client.preflightBlogPostsSearch(site, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
site*
String
The id (domain) of the website, such as 'mincong.io'
Required

Responses


searchBlogPosts

Search blog posts of a given website.


/sites/{site}/posts/search

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://search.jimidata.info/sites/{site}/posts/search?q=Java API"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.BlogApi;

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

public class BlogApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        BlogApi apiInstance = new BlogApi();
        String site = site_example; // String | The id (domain) of the website, such as 'mincong.io'
        String q = Java API; // String | The search query

        try {
            JekyllSearchResponse result = apiInstance.searchBlogPosts(site, q);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BlogApi#searchBlogPosts");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.BlogApi;

public class BlogApiExample {
    public static void main(String[] args) {
        BlogApi apiInstance = new BlogApi();
        String site = site_example; // String | The id (domain) of the website, such as 'mincong.io'
        String q = Java API; // String | The search query

        try {
            JekyllSearchResponse result = apiInstance.searchBlogPosts(site, q);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BlogApi#searchBlogPosts");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
BlogApi *apiInstance = [[BlogApi alloc] init];
String *site = site_example; // The id (domain) of the website, such as 'mincong.io' (default to null)
String *q = Java API; // The search query (default to null)

// Search blog posts of a given website.
[apiInstance searchBlogPostsWith:site
    q:q
              completionHandler: ^(JekyllSearchResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var JimiSearch = require('jimi_search');

// Create an instance of the API class
var api = new JimiSearch.BlogApi()
var site = site_example; // {String} The id (domain) of the website, such as 'mincong.io'
var q = Java API; // {String} The search query

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

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

            // Create an instance of the API class
            var apiInstance = new BlogApi();
            var site = site_example;  // String | The id (domain) of the website, such as 'mincong.io' (default to null)
            var q = Java API;  // String | The search query (default to null)

            try {
                // Search blog posts of a given website.
                JekyllSearchResponse result = apiInstance.searchBlogPosts(site, q);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling BlogApi.searchBlogPosts: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\BlogApi();
$site = site_example; // String | The id (domain) of the website, such as 'mincong.io'
$q = Java API; // String | The search query

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::BlogApi->new();
my $site = site_example; # String | The id (domain) of the website, such as 'mincong.io'
my $q = Java API; # String | The search query

eval {
    my $result = $api_instance->searchBlogPosts(site => $site, q => $q);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling BlogApi->searchBlogPosts: $@\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.BlogApi()
site = site_example # String | The id (domain) of the website, such as 'mincong.io' (default to null)
q = Java API # String | The search query (default to null)

try:
    # Search blog posts of a given website.
    api_response = api_instance.search_blog_posts(site, q)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BlogApi->searchBlogPosts: %s\n" % e)
extern crate BlogApi;

pub fn main() {
    let site = site_example; // String
    let q = Java API; // String

    let mut context = BlogApi::Context::default();
    let result = client.searchBlogPosts(site, q, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
site*
String
The id (domain) of the website, such as 'mincong.io'
Required
Query parameters
Name Description
q*
String
The search query
Required

Responses


upsertBlogPost

Create or update a blog post of a given website.


/sites/{site}/posts/{postId}

Usage and SDK Samples

curl -X PUT \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://search.jimidata.info/sites/{site}/posts/{postId}" \
 -d '{
  "title" : "Activity in Temporal",
  "url" : "https://mincong.io/en/activity-in-temporal/",
  "content" : "If you want to use https://temporal.io/ as your workflow engine, you need to know about\nActivity, which is one of the key concepts of the Temporal workflow engine. After\nreading this article, you will understand ...\n"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.BlogApi;

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

public class BlogApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        BlogApi apiInstance = new BlogApi();
        String site = mincong.io; // String | The domain of the website, e.g. 'mincong.io'
        String postId = activity-in-temporal; // String | The id of the post
        JekyllBlogPost jekyllBlogPost = ; // JekyllBlogPost | 

        try {
            AckResponse result = apiInstance.upsertBlogPost(site, postId, jekyllBlogPost);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BlogApi#upsertBlogPost");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.BlogApi;

public class BlogApiExample {
    public static void main(String[] args) {
        BlogApi apiInstance = new BlogApi();
        String site = mincong.io; // String | The domain of the website, e.g. 'mincong.io'
        String postId = activity-in-temporal; // String | The id of the post
        JekyllBlogPost jekyllBlogPost = ; // JekyllBlogPost | 

        try {
            AckResponse result = apiInstance.upsertBlogPost(site, postId, jekyllBlogPost);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BlogApi#upsertBlogPost");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
BlogApi *apiInstance = [[BlogApi alloc] init];
String *site = mincong.io; // The domain of the website, e.g. 'mincong.io' (default to null)
String *postId = activity-in-temporal; // The id of the post (default to null)
JekyllBlogPost *jekyllBlogPost = ; //  (optional)

// Create or update a blog post of a given website.
[apiInstance upsertBlogPostWith:site
    postId:postId
    jekyllBlogPost:jekyllBlogPost
              completionHandler: ^(AckResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var JimiSearch = require('jimi_search');

// Create an instance of the API class
var api = new JimiSearch.BlogApi()
var site = mincong.io; // {String} The domain of the website, e.g. 'mincong.io'
var postId = activity-in-temporal; // {String} The id of the post
var opts = {
  'jekyllBlogPost':  // {JekyllBlogPost} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new BlogApi();
            var site = mincong.io;  // String | The domain of the website, e.g. 'mincong.io' (default to null)
            var postId = activity-in-temporal;  // String | The id of the post (default to null)
            var jekyllBlogPost = new JekyllBlogPost(); // JekyllBlogPost |  (optional) 

            try {
                // Create or update a blog post of a given website.
                AckResponse result = apiInstance.upsertBlogPost(site, postId, jekyllBlogPost);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling BlogApi.upsertBlogPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\BlogApi();
$site = mincong.io; // String | The domain of the website, e.g. 'mincong.io'
$postId = activity-in-temporal; // String | The id of the post
$jekyllBlogPost = ; // JekyllBlogPost | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::BlogApi->new();
my $site = mincong.io; # String | The domain of the website, e.g. 'mincong.io'
my $postId = activity-in-temporal; # String | The id of the post
my $jekyllBlogPost = WWW::OPenAPIClient::Object::JekyllBlogPost->new(); # JekyllBlogPost | 

eval {
    my $result = $api_instance->upsertBlogPost(site => $site, postId => $postId, jekyllBlogPost => $jekyllBlogPost);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling BlogApi->upsertBlogPost: $@\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.BlogApi()
site = mincong.io # String | The domain of the website, e.g. 'mincong.io' (default to null)
postId = activity-in-temporal # String | The id of the post (default to null)
jekyllBlogPost =  # JekyllBlogPost |  (optional)

try:
    # Create or update a blog post of a given website.
    api_response = api_instance.upsert_blog_post(site, postId, jekyllBlogPost=jekyllBlogPost)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BlogApi->upsertBlogPost: %s\n" % e)
extern crate BlogApi;

pub fn main() {
    let site = mincong.io; // String
    let postId = activity-in-temporal; // String
    let jekyllBlogPost = ; // JekyllBlogPost

    let mut context = BlogApi::Context::default();
    let result = client.upsertBlogPost(site, postId, jekyllBlogPost, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
site*
String
The domain of the website, e.g. 'mincong.io'
Required
postId*
String
The id of the post
Required
Body parameters
Name Description
jekyllBlogPost

Responses


Default

getServerInfo

Get information about the server.


/

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://search.jimidata.info/"
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();

        try {
            ServerInfoResponse result = apiInstance.getServerInfo();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getServerInfo");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();

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


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

// Get information about the server.
[apiInstance getServerInfoWithCompletionHandler: 
              ^(ServerInfoResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var JimiSearch = require('jimi_search');

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

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

            // Create an instance of the API class
            var apiInstance = new DefaultApi();

            try {
                // Get information about the server.
                ServerInfoResponse result = apiInstance.getServerInfo();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.getServerInfo: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

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

eval {
    my $result = $api_instance->getServerInfo();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->getServerInfo: $@\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()

try:
    # Get information about the server.
    api_response = api_instance.get_server_info()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->getServerInfo: %s\n" % e)
extern crate DefaultApi;

pub fn main() {

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

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

Scopes

Parameters

Responses


preflightServerInfo

Preflight request for CORS.


/

Usage and SDK Samples

curl -X OPTIONS \
 "https://search.jimidata.info/"
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();

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

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();

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


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

// Preflight request for CORS.
[apiInstance preflightServerInfoWithCompletionHandler: 
              ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var JimiSearch = require('jimi_search');

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

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

            // Create an instance of the API class
            var apiInstance = new DefaultApi();

            try {
                // Preflight request for CORS.
                apiInstance.preflightServerInfo();
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.preflightServerInfo: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

try {
    $api_instance->preflightServerInfo();
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->preflightServerInfo: ', $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();

eval {
    $api_instance->preflightServerInfo();
};
if ($@) {
    warn "Exception when calling DefaultApi->preflightServerInfo: $@\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()

try:
    # Preflight request for CORS.
    api_instance.preflight_server_info()
except ApiException as e:
    print("Exception when calling DefaultApi->preflightServerInfo: %s\n" % e)
extern crate DefaultApi;

pub fn main() {

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

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

Scopes

Parameters

Responses