Skip to content

Latest commit

 

History

History
96 lines (65 loc) · 2.86 KB

AnnouncementApi.md

File metadata and controls

96 lines (65 loc) · 2.86 KB

swagger_client.AnnouncementApi

All URIs are relative to https://localhost/api/v1

Method HTTP request Description
announcement_get GET /announcement Get site announcements.
announcement_get_urgent GET /announcement/urgent Get urgent (banner) announcements.

announcement_get

list[Announcement] announcement_get(columns=columns)

Get site announcements.

Example

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.AnnouncementApi()
columns = 'columns_example' # str | Array of column names to fetch. If omitted, will return all columns. (optional)

try: 
    # Get site announcements.
    api_response = api_instance.announcement_get(columns=columns)
    pprint(api_response)
except ApiException as e:
    print "Exception when calling AnnouncementApi->announcement_get: %s\n" % e

Parameters

Name Type Description Notes
columns str Array of column names to fetch. If omitted, will return all columns. [optional]

Return type

list[Announcement]

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json, application/x-www-form-urlencoded
  • Accept: application/json, application/xml, text/xml, application/javascript, text/javascript

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

announcement_get_urgent

list[Announcement] announcement_get_urgent()

Get urgent (banner) announcements.

Example

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.AnnouncementApi()

try: 
    # Get urgent (banner) announcements.
    api_response = api_instance.announcement_get_urgent()
    pprint(api_response)
except ApiException as e:
    print "Exception when calling AnnouncementApi->announcement_get_urgent: %s\n" % e

Parameters

This endpoint does not need any parameter.

Return type

list[Announcement]

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json, application/x-www-form-urlencoded
  • Accept: application/json, application/xml, text/xml, application/javascript, text/javascript

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