Skip to content

Latest commit

 

History

History
116 lines (68 loc) · 2.76 KB

LibraryApi.md

File metadata and controls

116 lines (68 loc) · 2.76 KB

photoprism_client.LibraryApi

All URIs are relative to http://demo.photoprism.app

Method HTTP request Description
api_v1_import_path_post POST /api/v1/import/{path}
api_v1_index_post POST /api/v1/index

api_v1_import_path_post

api_v1_import_path_post()

Example

import photoprism_client
from photoprism_client.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://demo.photoprism.app
# See configuration.py for a list of all supported configuration parameters.
configuration = photoprism_client.Configuration(
    host = "http://demo.photoprism.app"
)


# Enter a context with an instance of the API client
with photoprism_client.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = photoprism_client.LibraryApi(api_client)

    try:
        api_instance.api_v1_import_path_post()
    except Exception as e:
        print("Exception when calling LibraryApi->api_v1_import_path_post: %s\n" % e)

Parameters

This endpoint does not need any parameter.

Return type

void (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

api_v1_index_post

api_v1_index_post()

Example

import photoprism_client
from photoprism_client.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://demo.photoprism.app
# See configuration.py for a list of all supported configuration parameters.
configuration = photoprism_client.Configuration(
    host = "http://demo.photoprism.app"
)


# Enter a context with an instance of the API client
with photoprism_client.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = photoprism_client.LibraryApi(api_client)

    try:
        api_instance.api_v1_index_post()
    except Exception as e:
        print("Exception when calling LibraryApi->api_v1_index_post: %s\n" % e)

Parameters

This endpoint does not need any parameter.

Return type

void (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]