Skip to content

Latest commit

 

History

History
75 lines (52 loc) · 2.18 KB

FacilityApi.md

File metadata and controls

75 lines (52 loc) · 2.18 KB

skyportal_client.FacilityApi

All URIs are relative to https://fritz.science

Method HTTP request Description
api_facility_post POST /api/facility

api_facility_post

Success api_facility_post()

Post a message from a remote facility

Example

import time
import skyportal_client
from skyportal_client.api import facility_api
from skyportal_client.model.unknownbasetype import UNKNOWNBASETYPE
from skyportal_client.model.error import Error
from skyportal_client.model.success import Success
from pprint import pprint
# Defining the host is optional and defaults to https://fritz.science
# See configuration.py for a list of all supported configuration parameters.
configuration = skyportal_client.Configuration(
    host = "https://fritz.science"
)


# Enter a context with an instance of the API client
with skyportal_client.ApiClient() as api_client:
    # Create an instance of the API class
    api_instance = facility_api.FacilityApi(api_client)
    unknown_base_type =  # UNKNOWN_BASE_TYPE |  (optional)

    # example passing only required values which don't have defaults set
    # and optional values
    try:
        api_response = api_instance.api_facility_post(unknown_base_type=unknown_base_type)
        pprint(api_response)
    except skyportal_client.ApiException as e:
        print("Exception when calling FacilityApi->api_facility_post: %s\n" % e)

Parameters

Name Type Description Notes
unknown_base_type UNKNOWN_BASE_TYPE [optional]

Return type

Success

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 -
400 -

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