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
|