From f256b471bef725af4b324a5777c5af102f03d4f8 Mon Sep 17 00:00:00 2001 From: Mystikfluu Date: Fri, 24 Jun 2022 21:57:57 +0200 Subject: [PATCH] update api documentation --- views/api/documentation/index.html | 1013 +++++++++++++++++++++++++++- 1 file changed, 993 insertions(+), 20 deletions(-) diff --git a/views/api/documentation/index.html b/views/api/documentation/index.html index 2c293f2..2bb82bc 100644 --- a/views/api/documentation/index.html +++ b/views/api/documentation/index.html @@ -726,6 +726,10 @@ "pass" : { "type" : "string", "example" : "Password_Of_TestUser123" + }, + "reply_id" : { + "type" : "number", + "example" : 1 } } }; @@ -795,6 +799,28 @@ } }; defs["inline_response_200_2"] = { + "required" : [ "avatar", "bio", "publicKey", "username" ], + "type" : "object", + "properties" : { + "username" : { + "type" : "string", + "example" : "Code002Lover" + }, + "bio" : { + "type" : "string", + "example" : "wow such empty" + }, + "avatar" : { + "type" : "string", + "example" : "_By2Se7gPTk_KfPQYx3QYy2Rc5nTk_LaJQKgQWr9IcLB3sUn_Bn_C8eNKMXFzTj_OOQJjRd6jSe7hQYy1Sf9cMAAWE8KJkSg" + }, + "publicKey" : { + "type" : "string", + "example" : "-----BEGIN PUBLIC KEY-----\n MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAo6LMtHoh7jkd/nR6ESqS\n TY/UwXCEdhfvBAPMH1MxJ17jYGfRM90GrtBumtYoSDIttejsF6oxtI0aKK6e2DKU\n ayT3nRdx14TrjZ4NYvRW6Z/gPdQz3H4Gxx/A8CjtiYcHTfzuosu5TbJOB1RoiP09\n /NjxyUB7g1xIr+5cvY9UygTeiNNHZzDyJNUUzqL77vO48l8ArdfqPMj/6Ie4bV9W\n 92pfObcNGH5gdwF2xPSLh0hHvcMXv5wOtS1fPtfe+zAKuh43dUEwXea0sqjG6wy/\n ZK+AA4MEjuEAnU2xm8wZcft9KXHqkED6EBZxo1moFVL27Eahb8nYTYudW3DEDeqL\n h2FydoXCfr+YEaqdeAhsRLRdPcnFefeGPi1chxNwYKBI3JMYVycihXXxKU3krTiF\n 2TwWfagA+WH1+hh0F84taDiy8lWay3vLH6SJiYSIas4b7UoICh5l11TiVu6d/pAq\n fA5R04viZhzeACt736eJm1BCV0wWYSZ1w20tdsPHYhRpkz8EI29EzrIg8ZR0zw6/\n abKh9dp7wv44jAGuOn9qLt8X3oS3/FYe4ZZsJdM7MlOkCRNsAtFTF8g2rvGillZK\n P+d/+bDDMYq8qkrUeqpVaD0hxhzf5hIp+1oYiAY7c5iGchwHS8bn5hPWUB2Yfp64\n HtJoNwwxs0NrfJoc7K9kVWkCAwEAAQ==\n -----END PUBLIC KEY-----\n" + } + } +}; + defs["inline_response_200_3"] = { "type" : "object", "properties" : { "post_user_name" : { @@ -813,9 +839,21 @@ "type" : "string", "example" : "First post" }, + "post_receiver_name" : { + "type" : "string", + "example" : "everyone" + }, + "post_from_bot" : { + "type" : "boolean", + "example" : false + }, "post_id" : { "type" : "number", "example" : 1 + }, + "post_reply_id" : { + "type" : "number", + "example" : 1 } } }; @@ -863,10 +901,20 @@ --> + +
  • + getPost +
  • +
  • + getotheruser +
  • changePW
  • +
  • + getPost +
  • getPosts
  • @@ -910,6 +958,623 @@
    +
    +

    CORS

    +
    +
    +
    +

    getPost

    +

    returns post with the given id

    +
    +
    +
    +

    +

    returns information about the post + +username and post text are URI Encoded +

    +

    +
    +
    /api/getPost
    +

    +

    Usage and SDK Samples

    +

    + + +
    +
    +
    curl -X GET\
    +-H "Accept: application/json"\
    +"https://ipost.tk/api/getPost?id="
    +
    +
    +
    import io.swagger.client.*;
    +import io.swagger.client.auth.*;
    +import io.swagger.client.model.*;
    +import io.swagger.client.api.CORSApi;
    +
    +import java.io.File;
    +import java.util.*;
    +
    +public class CORSApiExample {
    +
    +    public static void main(String[] args) {
    +        
    +        CORSApi apiInstance = new CORSApi();
    +        BigDecimal id = 1.2; // BigDecimal | the id of the post
    +        try {
    +            inline_response_200_3 result = apiInstance.getPost(id);
    +            System.out.println(result);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling CORSApi#getPost");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    import io.swagger.client.api.CORSApi;
    +
    +public class CORSApiExample {
    +
    +    public static void main(String[] args) {
    +        CORSApi apiInstance = new CORSApi();
    +        BigDecimal id = 1.2; // BigDecimal | the id of the post
    +        try {
    +            inline_response_200_3 result = apiInstance.getPost(id);
    +            System.out.println(result);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling CORSApi#getPost");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    BigDecimal *id = 1.2; // the id of the post
    +
    +CORSApi *apiInstance = [[CORSApi alloc] init];
    +
    +// returns post with the given id
    +[apiInstance getPostWith:id
    +              completionHandler: ^(inline_response_200_3 output, NSError* error) {
    +                            if (output) {
    +                                NSLog(@"%@", output);
    +                            }
    +                            if (error) {
    +                                NSLog(@"Error: %@", error);
    +                            }
    +                        }];
    +
    +
    + +
    +
    var SimplePostsaccountApi = require('simple_postsaccount_api');
    +
    +var api = new SimplePostsaccountApi.CORSApi()
    +var id = 1.2; // {{BigDecimal}} the id of the post
    +
    +var callback = function(error, data, response) {
    +  if (error) {
    +    console.error(error);
    +  } else {
    +    console.log('API called successfully. Returned data: ' + data);
    +  }
    +};
    +api.getPost(id, callback);
    +
    +
    + + +
    +
    using System;
    +using System.Diagnostics;
    +using IO.Swagger.Api;
    +using IO.Swagger.Client;
    +using IO.Swagger.Model;
    +
    +namespace Example
    +{
    +    public class getPostExample
    +    {
    +        public void main()
    +        {
    +
    +            var apiInstance = new CORSApi();
    +            var id = 1.2;  // BigDecimal | the id of the post
    +
    +            try
    +            {
    +                // returns post with the given id
    +                inline_response_200_3 result = apiInstance.getPost(id);
    +                Debug.WriteLine(result);
    +            }
    +            catch (Exception e)
    +            {
    +                Debug.Print("Exception when calling CORSApi.getPost: " + e.Message );
    +            }
    +        }
    +    }
    +}
    +
    +
    + +
    +
    <?php
    +require_once(__DIR__ . '/vendor/autoload.php');
    +
    +$api_instance = new Swagger\Client\ApiCORSApi();
    +$id = 1.2; // BigDecimal | the id of the post
    +
    +try {
    +    $result = $api_instance->getPost($id);
    +    print_r($result);
    +} catch (Exception $e) {
    +    echo 'Exception when calling CORSApi->getPost: ', $e->getMessage(), PHP_EOL;
    +}
    +?>
    +
    + +
    +
    use Data::Dumper;
    +use WWW::SwaggerClient::Configuration;
    +use WWW::SwaggerClient::CORSApi;
    +
    +my $api_instance = WWW::SwaggerClient::CORSApi->new();
    +my $id = 1.2; # BigDecimal | the id of the post
    +
    +eval { 
    +    my $result = $api_instance->getPost(id => $id);
    +    print Dumper($result);
    +};
    +if ($@) {
    +    warn "Exception when calling CORSApi->getPost: $@\n";
    +}
    +
    + +
    +
    from __future__ import print_statement
    +import time
    +import swagger_client
    +from swagger_client.rest import ApiException
    +from pprint import pprint
    +
    +# create an instance of the API class
    +api_instance = swagger_client.CORSApi()
    +id = 1.2 # BigDecimal | the id of the post
    +
    +try: 
    +    # returns post with the given id
    +    api_response = api_instance.get_post(id)
    +    pprint(api_response)
    +except ApiException as e:
    +    print("Exception when calling CORSApi->getPost: %s\n" % e)
    +
    +
    + +

    Parameters

    + + + + + +
    Query parameters
    + + + + + + + + +
    NameDescription
    id* + + +
    +
    +
    + + BigDecimal + + +
    + the id of the post +
    +
    +
    + Required +
    +
    +
    +
    + +

    Responses

    +

    Status: 200 - successfully got information +

    + + + +
    +
    +
    + +
    + +
    +
    + +

    Status: 400 - no or bad login cookie

    + + + +
    +
    + +
    +
    +
    +
    +
    +
    +

    getotheruser

    +

    returns information about any user

    +
    +
    +
    +

    +

    returns information about any user +

    +

    +
    +
    /api/getotheruser
    +

    +

    Usage and SDK Samples

    +

    + + +
    +
    +
    curl -X GET\
    +-H "Accept: application/json"\
    +"https://ipost.tk/api/getotheruser?user="
    +
    +
    +
    import io.swagger.client.*;
    +import io.swagger.client.auth.*;
    +import io.swagger.client.model.*;
    +import io.swagger.client.api.CORSApi;
    +
    +import java.io.File;
    +import java.util.*;
    +
    +public class CORSApiExample {
    +
    +    public static void main(String[] args) {
    +        
    +        CORSApi apiInstance = new CORSApi();
    +        String user = user_example; // String | pass the username of the user you want to get information on
    +        try {
    +            inline_response_200_2 result = apiInstance.getotheruser(user);
    +            System.out.println(result);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling CORSApi#getotheruser");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    import io.swagger.client.api.CORSApi;
    +
    +public class CORSApiExample {
    +
    +    public static void main(String[] args) {
    +        CORSApi apiInstance = new CORSApi();
    +        String user = user_example; // String | pass the username of the user you want to get information on
    +        try {
    +            inline_response_200_2 result = apiInstance.getotheruser(user);
    +            System.out.println(result);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling CORSApi#getotheruser");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    String *user = user_example; // pass the username of the user you want to get information on
    +
    +CORSApi *apiInstance = [[CORSApi alloc] init];
    +
    +// returns information about any user
    +[apiInstance getotheruserWith:user
    +              completionHandler: ^(inline_response_200_2 output, NSError* error) {
    +                            if (output) {
    +                                NSLog(@"%@", output);
    +                            }
    +                            if (error) {
    +                                NSLog(@"Error: %@", error);
    +                            }
    +                        }];
    +
    +
    + +
    +
    var SimplePostsaccountApi = require('simple_postsaccount_api');
    +
    +var api = new SimplePostsaccountApi.CORSApi()
    +var user = user_example; // {{String}} pass the username of the user you want to get information on
    +
    +var callback = function(error, data, response) {
    +  if (error) {
    +    console.error(error);
    +  } else {
    +    console.log('API called successfully. Returned data: ' + data);
    +  }
    +};
    +api.getotheruser(user, callback);
    +
    +
    + + +
    +
    using System;
    +using System.Diagnostics;
    +using IO.Swagger.Api;
    +using IO.Swagger.Client;
    +using IO.Swagger.Model;
    +
    +namespace Example
    +{
    +    public class getotheruserExample
    +    {
    +        public void main()
    +        {
    +
    +            var apiInstance = new CORSApi();
    +            var user = user_example;  // String | pass the username of the user you want to get information on
    +
    +            try
    +            {
    +                // returns information about any user
    +                inline_response_200_2 result = apiInstance.getotheruser(user);
    +                Debug.WriteLine(result);
    +            }
    +            catch (Exception e)
    +            {
    +                Debug.Print("Exception when calling CORSApi.getotheruser: " + e.Message );
    +            }
    +        }
    +    }
    +}
    +
    +
    + +
    +
    <?php
    +require_once(__DIR__ . '/vendor/autoload.php');
    +
    +$api_instance = new Swagger\Client\ApiCORSApi();
    +$user = user_example; // String | pass the username of the user you want to get information on
    +
    +try {
    +    $result = $api_instance->getotheruser($user);
    +    print_r($result);
    +} catch (Exception $e) {
    +    echo 'Exception when calling CORSApi->getotheruser: ', $e->getMessage(), PHP_EOL;
    +}
    +?>
    +
    + +
    +
    use Data::Dumper;
    +use WWW::SwaggerClient::Configuration;
    +use WWW::SwaggerClient::CORSApi;
    +
    +my $api_instance = WWW::SwaggerClient::CORSApi->new();
    +my $user = user_example; # String | pass the username of the user you want to get information on
    +
    +eval { 
    +    my $result = $api_instance->getotheruser(user => $user);
    +    print Dumper($result);
    +};
    +if ($@) {
    +    warn "Exception when calling CORSApi->getotheruser: $@\n";
    +}
    +
    + +
    +
    from __future__ import print_statement
    +import time
    +import swagger_client
    +from swagger_client.rest import ApiException
    +from pprint import pprint
    +
    +# create an instance of the API class
    +api_instance = swagger_client.CORSApi()
    +user = user_example # String | pass the username of the user you want to get information on
    +
    +try: 
    +    # returns information about any user
    +    api_response = api_instance.getotheruser(user)
    +    pprint(api_response)
    +except ApiException as e:
    +    print("Exception when calling CORSApi->getotheruser: %s\n" % e)
    +
    +
    + +

    Parameters

    + + + + + +
    Query parameters
    + + + + + + + + +
    NameDescription
    user* + + +
    +
    +
    + + String + + +
    + pass the username of the user you want to get information on +
    +
    +
    + Required +
    +
    +
    +
    + +

    Responses

    +

    Status: 200 - successfully got information +

    + + + +
    +
    +
    + +
    + +
    +
    + +

    Status: 400 - no or bad login cookie

    + + + +
    +
    + +
    +
    +
    +

    Everyone

    @@ -948,7 +1613,7 @@ also sets the AUTH_COOKIE cookie to the new one
    curl -X POST\
     -H "Content-Type: application/json"\
    -"https://ws.zerotwohub.tk:25566/api/changePW"
    +"https://ipost.tk/api/changePW"
    import io.swagger.client.*;
    @@ -1184,6 +1849,314 @@ except ApiException as e:
                             
                           

    +
    +
    +
    +

    getPost

    +

    returns post with the given id

    +
    +
    +
    +

    +

    returns information about the post + +username and post text are URI Encoded +

    +

    +
    +
    /api/getPost
    +

    +

    Usage and SDK Samples

    +

    + + +
    +
    +
    curl -X GET\
    +-H "Accept: application/json"\
    +"https://ipost.tk/api/getPost?id="
    +
    +
    +
    import io.swagger.client.*;
    +import io.swagger.client.auth.*;
    +import io.swagger.client.model.*;
    +import io.swagger.client.api.EveryoneApi;
    +
    +import java.io.File;
    +import java.util.*;
    +
    +public class EveryoneApiExample {
    +
    +    public static void main(String[] args) {
    +        
    +        EveryoneApi apiInstance = new EveryoneApi();
    +        BigDecimal id = 1.2; // BigDecimal | the id of the post
    +        try {
    +            inline_response_200_3 result = apiInstance.getPost(id);
    +            System.out.println(result);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling EveryoneApi#getPost");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    import io.swagger.client.api.EveryoneApi;
    +
    +public class EveryoneApiExample {
    +
    +    public static void main(String[] args) {
    +        EveryoneApi apiInstance = new EveryoneApi();
    +        BigDecimal id = 1.2; // BigDecimal | the id of the post
    +        try {
    +            inline_response_200_3 result = apiInstance.getPost(id);
    +            System.out.println(result);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling EveryoneApi#getPost");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    BigDecimal *id = 1.2; // the id of the post
    +
    +EveryoneApi *apiInstance = [[EveryoneApi alloc] init];
    +
    +// returns post with the given id
    +[apiInstance getPostWith:id
    +              completionHandler: ^(inline_response_200_3 output, NSError* error) {
    +                            if (output) {
    +                                NSLog(@"%@", output);
    +                            }
    +                            if (error) {
    +                                NSLog(@"Error: %@", error);
    +                            }
    +                        }];
    +
    +
    + +
    +
    var SimplePostsaccountApi = require('simple_postsaccount_api');
    +
    +var api = new SimplePostsaccountApi.EveryoneApi()
    +var id = 1.2; // {{BigDecimal}} the id of the post
    +
    +var callback = function(error, data, response) {
    +  if (error) {
    +    console.error(error);
    +  } else {
    +    console.log('API called successfully. Returned data: ' + data);
    +  }
    +};
    +api.getPost(id, callback);
    +
    +
    + + +
    +
    using System;
    +using System.Diagnostics;
    +using IO.Swagger.Api;
    +using IO.Swagger.Client;
    +using IO.Swagger.Model;
    +
    +namespace Example
    +{
    +    public class getPostExample
    +    {
    +        public void main()
    +        {
    +
    +            var apiInstance = new EveryoneApi();
    +            var id = 1.2;  // BigDecimal | the id of the post
    +
    +            try
    +            {
    +                // returns post with the given id
    +                inline_response_200_3 result = apiInstance.getPost(id);
    +                Debug.WriteLine(result);
    +            }
    +            catch (Exception e)
    +            {
    +                Debug.Print("Exception when calling EveryoneApi.getPost: " + e.Message );
    +            }
    +        }
    +    }
    +}
    +
    +
    + +
    +
    <?php
    +require_once(__DIR__ . '/vendor/autoload.php');
    +
    +$api_instance = new Swagger\Client\ApiEveryoneApi();
    +$id = 1.2; // BigDecimal | the id of the post
    +
    +try {
    +    $result = $api_instance->getPost($id);
    +    print_r($result);
    +} catch (Exception $e) {
    +    echo 'Exception when calling EveryoneApi->getPost: ', $e->getMessage(), PHP_EOL;
    +}
    +?>
    +
    + +
    +
    use Data::Dumper;
    +use WWW::SwaggerClient::Configuration;
    +use WWW::SwaggerClient::EveryoneApi;
    +
    +my $api_instance = WWW::SwaggerClient::EveryoneApi->new();
    +my $id = 1.2; # BigDecimal | the id of the post
    +
    +eval { 
    +    my $result = $api_instance->getPost(id => $id);
    +    print Dumper($result);
    +};
    +if ($@) {
    +    warn "Exception when calling EveryoneApi->getPost: $@\n";
    +}
    +
    + +
    +
    from __future__ import print_statement
    +import time
    +import swagger_client
    +from swagger_client.rest import ApiException
    +from pprint import pprint
    +
    +# create an instance of the API class
    +api_instance = swagger_client.EveryoneApi()
    +id = 1.2 # BigDecimal | the id of the post
    +
    +try: 
    +    # returns post with the given id
    +    api_response = api_instance.get_post(id)
    +    pprint(api_response)
    +except ApiException as e:
    +    print("Exception when calling EveryoneApi->getPost: %s\n" % e)
    +
    +
    + +

    Parameters

    + + + + + +
    Query parameters
    + + + + + + + + +
    NameDescription
    id* + + +
    +
    +
    + + BigDecimal + + +
    + the id of the post +
    +
    +
    + Required +
    +
    +
    +
    + +

    Responses

    +

    Status: 200 - successfully got information +

    + + + +
    +
    +
    + +
    + +
    +
    + +

    Status: 400 - no or bad login cookie

    + + + +
    +
    + +
    +
    +
    @@ -1221,7 +2194,7 @@ username and post text are URI Encoded
    curl -X GET\
     -H "Accept: application/json"\
    -"https://ws.zerotwohub.tk:25566/api/getPosts"
    +"https://ipost.tk/api/getPosts"
    import io.swagger.client.*;
    @@ -1238,7 +2211,7 @@ public class EveryoneApiExample {
             
             EveryoneApi apiInstance = new EveryoneApi();
             try {
    -            array[inline_response_200_2] result = apiInstance.getPosts();
    +            array[inline_response_200_3] result = apiInstance.getPosts();
                 System.out.println(result);
             } catch (ApiException e) {
                 System.err.println("Exception when calling EveryoneApi#getPosts");
    @@ -1256,7 +2229,7 @@ public class EveryoneApiExample {
         public static void main(String[] args) {
             EveryoneApi apiInstance = new EveryoneApi();
             try {
    -            array[inline_response_200_2] result = apiInstance.getPosts();
    +            array[inline_response_200_3] result = apiInstance.getPosts();
                 System.out.println(result);
             } catch (ApiException e) {
                 System.err.println("Exception when calling EveryoneApi#getPosts");
    @@ -1275,7 +2248,7 @@ EveryoneApi *apiInstance = [[EveryoneApi alloc] init];
     
     // returns all posts
     [apiInstance getPostsWithCompletionHandler: 
    -              ^(array[inline_response_200_2] output, NSError* error) {
    +              ^(array[inline_response_200_3] output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -1323,7 +2296,7 @@ namespace Example
                 try
                 {
                     // returns all posts
    -                array[inline_response_200_2] result = apiInstance.getPosts();
    +                array[inline_response_200_3] result = apiInstance.getPosts();
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
    @@ -1416,7 +2389,7 @@ except ApiException as e:
           "schema" : {
             "type" : "array",
             "items" : {
    -          "$ref" : "#/components/schemas/inline_response_200_2"
    +          "$ref" : "#/components/schemas/inline_response_200_3"
             },
             "x-content-type" : "application/json"
           }
    @@ -1493,7 +2466,7 @@ except ApiException as e:
                               
    curl -X GET\
     -H "Accept: application/json"\
    -"https://ws.zerotwohub.tk:25566/api/getotheruser?user="
    +"https://ipost.tk/api/getotheruser?user="
    import io.swagger.client.*;
    @@ -1511,7 +2484,7 @@ public class EveryoneApiExample {
             EveryoneApi apiInstance = new EveryoneApi();
             String user = user_example; // String | pass the username of the user you want to get information on
             try {
    -            inline_response_200_1 result = apiInstance.getotheruser(user);
    +            inline_response_200_2 result = apiInstance.getotheruser(user);
                 System.out.println(result);
             } catch (ApiException e) {
                 System.err.println("Exception when calling EveryoneApi#getotheruser");
    @@ -1530,7 +2503,7 @@ public class EveryoneApiExample {
             EveryoneApi apiInstance = new EveryoneApi();
             String user = user_example; // String | pass the username of the user you want to get information on
             try {
    -            inline_response_200_1 result = apiInstance.getotheruser(user);
    +            inline_response_200_2 result = apiInstance.getotheruser(user);
                 System.out.println(result);
             } catch (ApiException e) {
                 System.err.println("Exception when calling EveryoneApi#getotheruser");
    @@ -1550,7 +2523,7 @@ EveryoneApi *apiInstance = [[EveryoneApi alloc] init];
     
     // returns information about any user
     [apiInstance getotheruserWith:user
    -              completionHandler: ^(inline_response_200_1 output, NSError* error) {
    +              completionHandler: ^(inline_response_200_2 output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -1601,7 +2574,7 @@ namespace Example
                 try
                 {
                     // returns information about any user
    -                inline_response_200_1 result = apiInstance.getotheruser(user);
    +                inline_response_200_2 result = apiInstance.getotheruser(user);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
    @@ -1724,7 +2697,7 @@ except ApiException as e:
       "content" : {
         "application/json" : {
           "schema" : {
    -        "$ref" : "#/components/schemas/inline_response_200_1"
    +        "$ref" : "#/components/schemas/inline_response_200_2"
           }
         }
       }
    @@ -1773,7 +2746,7 @@ except ApiException as e:
                             

    -

    When a valid cookie is set, the API will return information about the current user +

    When a valid information is set, the API will return information about the current user


    @@ -1799,7 +2772,7 @@ except ApiException as e:
    curl -X GET\
     -H "Accept: application/json"\
    -"https://ws.zerotwohub.tk:25566/api/getuser"
    +"https://ipost.tk/api/getuser"
    import io.swagger.client.*;
    @@ -2065,7 +3038,7 @@ except ApiException as e:
                               
    curl -X POST\
     -H "Content-Type: application/json"\
    -"https://ws.zerotwohub.tk:25566/login"
    +"https://ipost.tk/login"
    import io.swagger.client.*;
    @@ -2336,7 +3309,7 @@ has to be logged in either by cookie or given user and password
                               
    curl -X POST\
     -H "Content-Type: application/json"\
    -"https://ws.zerotwohub.tk:25566/api/post"
    +"https://ipost.tk/api/post"
    import io.swagger.client.*;
    @@ -2606,7 +3579,7 @@ except ApiException as e:
                               
    curl -X POST\
     -H "Content-Type: application/json"\
    -"https://ws.zerotwohub.tk:25566/register"
    +"https://ipost.tk/register"
    import io.swagger.client.*;
    @@ -2876,7 +3849,7 @@ except ApiException as e:
                               
    curl -X GET\
     -H "Accept: application/json"\
    -"https://ws.zerotwohub.tk:25566/api/search?type=&selector="
    +"https://ipost.tk/api/search?type=&selector="
    import io.swagger.client.*;
    @@ -3215,7 +4188,7 @@ except ApiException as e:
                               
    curl -X POST\
     -H "Content-Type: application/json"\
    -"https://ws.zerotwohub.tk:25566/api/setBio"
    +"https://ipost.tk/api/setBio"
    import io.swagger.client.*;