You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 64 Next »


Premium Server allows you to implement content management, schedule management, device management, and other functions by calling Open API (v2.0). 

 To use Open API (v2.0), you will first need to go through an authentication process. Use a separate swagger page to test each API.

Authentication

When calling all Open API (v2.0) items, api_token must be included in the header. If this is not included, a "401 Unauthorized" error will be returned. 

An obtained token expires and becomes unavailable for use after a specified period of time. If this is the case, you should obtain a new token.

api_token can be obtained by calling the following api.

Service Name

API call

Call TypeDescription
authenticationRequest

/auth

POSTImports a token value for authentication using the user ID and password.
authenticationRequest

/auth/refresh

GETCreates a new token to extend the expire time. It is possible to call REST API without logging in again

OPEN API (v2.0)

Premium Server Open API (v2.0) provides a variety of functions. Configuration of each function is shown below. 

CategoryControllerDescription
Contentcontent-controllerContent file management
content-group-controllerContent group management
Playlistplaylist-controllerManaging Playlists
playlist-group-controllerPlaylist group management
Schedulecontent-schedule-controllerContent schedule management
content-schedule-group-controllerContent schedule group management
message-schedule-controllerManaging Message Schedules
message-schedule-group-controllerMessage schedule group management
Devicedevice-controllerDevice management
device-group-controllerDevice group management
Useruser-controllerUser management
user-group-controllerUser group management
Settingenvironment-controllerSetting

Content

Upload, approve, or delete content. Manage content lists. Content-related services are accessible to authenticated users with privileges to read, write, and manage content.

Available content management services are as follows:

Service Name

API call

Call TypeDescription
listAllContent

/restapi/v1.0/cms/contents

GETImports a list of uploaded content. Content thumbnails, names, file types, and other basic information are included in the list. Lists can be imported per page, using paging information.
listDashboardContentInfo

/restapi/v1.0/cms/contents/dashboard

GETImports general content information to be displayed on the dashboard.
listContent

/restapi/v1.0/cms/contents/filter

POSTImports a list of content filtered based on conditions. Lists can be imported per page, using paging information.
forceDeleteContent

/restapi/v1.0/cms/contents/force/{contentId}

DELETEDeletes content, whether or not the content is included in a playlist or schedule.
deleteContent

/restapi/v1.0/cms/contents/{contentId}

DELETEDeletes content after checking that the content is not included in a playlist or schedule. If attempting to delete content included in a playlist or schedule, the content will not be deleted and an error code will be returned.
getActiveContentInfo

/restapi/v1.0/cms/contents/{contentId}

GETImports details of an activated version of content. The version of content is updated each time the content is edited.
approveContents

/restapi/v1.0/cms/contents/{contentId}/approval

PUTApproves/rejects content. Approved content is moved to the general content list and can be used in playlists or schedules.
uploadContent

/restapi/v1.0/cms/contents/{groupId}

POSTUploads new content.

listDefaultGroup

/restapi/v1.0/cms/contents/groups

GETImports a list of default content groups.
getGroup

/restapi/v1.0/cms/contents/groups/{groupId}

GETImports details of the {groupId} group.
listChildGroup

/restapi/v1.0/cms/contents/groups/{groupId}/child

GETImports a list of sub-groups under the {groupId} group.

Playlist

Use content to create, edit, or delete playlists. Playlist-related services are accessible to authenticated users with privileges to read, write, and manage content.

Available playlist management services are as follows:

Service Name

API call

Call TypeDescription
listAllPlaylist

/restapi/v1.0/cms/playlists

GETImports a list of all playlists. Playlist names, main content thumbnails, playlist types, and other basic information are included in the list. Lists can be imported per page, using paging information.
createPlaylist

/restapi/v1.0/cms/playlists

POSTCreates a new playlist.

getDashboardPlaylistInfo

/restapi/v1.0/cms/playlists/dashboard

GETImports necessary playlist information from the dashboard.

listPlaylist

/restapi/v1.0/cms/playlists/filter

POSTImports a list of playlists filtered based on conditions. Lists can be imported per page, using paging information.

deletePlaylist

/restapi/v1.0/cms/playlists/{playlistId}

DELETEDeletes the selected playlist. If attempting to delete a playlist included in a schedule, the playlist will not be deleted and an error code will be returned.

getActivePlaylistInfo

/restapi/v1.0/cms/playlists/{playlistId}

GETImports details of an activated version of a playlist. The version of a playlist is updated each time the playlist is edited.

editPlaylist

/restapi/v1.0/cms/playlists/{playlistId}

PUTEdits the {playlistId} playlist. Editing a playlist updates the playlist version, and causes the device playing the playlist to automatically play the updated playlist.

copyPlaylist

/restapi/v1.0/cms/playlists/{playlistId}/copy

PUTCopies the {playlistId} playlist. A duplicate copy of the playlist is created.
listDefaultGroup

/restapi/v1.0/cms/playlists/groups

GETImports a list of default playlist groups.

getGroup

/restapi/v1.0/cms/playlists/groups/{groupId}

GETImports details of the {groupId} group.
listChildGroup/restapi/v1.0/cms/playlists/groups/{groupId}/childGET

Imports a list of sub-groups under the {groupId} group.

Schedule

Create new content or message schedules. Publish schedules to devices for playback. Edit or delete schedules.

Schedule-related services are accessible to authenticated users with privileges to read, write, and manage schedules.

Available schedule management services are as follows:

Service Name

API call

Call TypeDescription
listContentScheduleAll

/restapi/v1.0/dms/schedule/contents

GETImports a list of all content schedules. Content schedule names, dates of creation, device types, and other basic information are included in the list. Lists can be imported per page, using paging information.
createContentSchedule

/restapi/v1.0/dms/schedule/contents

POSTCreates a new content schedule. A content schedule may contain multiple channels and frames. Publish a schedule to devices and play the desired content or playlist at a specified time.
listDashboardScheduleInfo

/restapi/v1.0/dms/schedule/contents/dashboard

GETImports necessary content schedule information from the dashboard.
listContentScheduleByGroup

/restapi/v1.0/dms/schedule/contents/filter

POSTImports a list of content schedules filtered based on different conditions. Lists can be imported per page, using paging information.
deleteContentSchedule

/restapi/v1.0/dms/schedule/contents/{programId}

DELETEDeletes a content schedule. If deleting a schedule previously published to a device, the device automatically plays the default content.
getProgramInfo

/restapi/v1.0/dms/schedule/contents/{programId}

GETImports details of the selected schedule.
editContentSchedule

/restapi/v1.0/dms/schedule/contents/{programId}

PUTEdits a content schedule. If editing a schedule previously published to a device, the device automatically plays the edited schedule.
copyContentSchedule

/restapi/v1.0/dms/schedule/contents/{programId}/copy

PUTCopies the {programId} content schedule. A duplicate copy of the {programId} content schedule is created.
deployContentSchedule

/restapi/v1.0/dms/schedule/contents/{programId}/deploy

PUTPublishes a content schedule to a specific device group.
getPublishStatus

/restapi/v1.0/dms/schedule/contents/{programId}/publishStatus

GETImports real-time content schedule download status from a device.
getRootGroups

/restapi/v1.0/dms/schedule/contents/groups

GETImports a list of root groups for a content schedule.
listContentScheduleGroupInfo/restapi/v1.0/dms/schedule/contents/groups/{groupId}GETImports details of the {groupId} group.
listAllMessageSchedule

/restapi/v1.0/dms/schedule/messages

GETImports a list of all message schedules.
createMessageSchedule

/restapi/v1.0/dms/schedule/messages

POSTCreates a new message schedule.
listMessage

/restapi/v1.0/dms/schedule/messages/filter

POST 

Imports a list of message schedules filtered based on different conditions. Lists can be imported per page, using paging information.
deleteMessageSchedule

/restapi/v1.0/dms/schedule/messages/{messageId}

DELETEDeletes the selected message schedule. If deleting a message schedule previously published to a device, the change is automatically applied to the device.
getMessageInfo

/restapi/v1.0/dms/schedule/messages/{messageId}

GETImports details of the selected message schedule.
editMessageSchedule

/restapi/v1.0/dms/schedule/messages/{messageId}

PUTEdits the selected message schedule. If editing a message schedule previously published to a device, the change is automatically applied to the device.
copyMessageSchedule

/restapi/v1.0/dms/schedule/messages/{messageId}/copy

PUTCopies the selected message schedule. A duplicate copy of the message schedule is created.
deployMessageSchedule

/restapi/v1.0/dms/schedule/messages/{messageId}/deploy

PUTPublishes the selected message schedule to a device group.
getRootGroups

/restapi/v1.0/dms/schedule/messages/groups

GETImports a list of root groups for a content schedule.
listMessageScheduleGroupInfo

/restapi/v1.0/dms/schedule/messages/groups/{groupId}

GETImports details of the {groupId} group.
getChildGroups

/restapi/v1.0/dms/schedule/messages/groups/{groupId}/child

GETImports a list of sub-groups under a specific group.

Device

Control and manage devices. Device-related services are accessible to authenticated users with privileges to read, write, and manage devices.

Available device management services are as follows:

Service Name

API call

Call TypeDescription
listAllDevice

/restapi/v1.0/rms/devices

GETImports a list of all devices. Device power status, thumbnail info, device error status, and other basic information are included in the list. Lists can be imported per page, using paging information.
getDashboardDeviceInfo

/restapi/v1.0/rms/devices/dashboard

GETImports necessary device information from the dashboard.
filterDeviceList

/restapi/v1.0/rms/devices/filter

POSTImports a list of devices filtered based on different conditions. Lists can be imported per page, using paging information.
deleteDevice

/restapi/v1.0/rms/devices/{deviceId}

DELETEDeletes the selected device.
getDevice

/restapi/v1.0/rms/devices/{deviceId}

GETImports details of the selected device.
approveDevice

/restapi/v1.0/rms/devices/{deviceId}/approval

PUTApproves the selected device to a specific group.
getCabinetList

/restapi/v1.0/rms/devices/{deviceId}/cabinet

POSTImports information about cabinets connected to an LED device. The imported information is valid only when the cabinets are connected to an LED device.
updateCabinetInfo

/restapi/v1.0/rms/devices/{deviceId}/cabinet

PUTEdits information about cabinets connected to an LED device.
getDisplayControlInfo

/restapi/v1.0/rms/devices/{deviceId}/display

GETImports device display control information from the database. If control information is not present, an information request should be sent to the device.
updateDisplayInfo

/restapi/v1.0/rms/devices/{deviceId}/display

PUTSends edited display control information to a device. Only edited values in display information are sent as a protocol to the device.
getUpdatedDisplayInfoResult

/restapi/v1.0/rms/devices/{deviceId}/display/{requestId}

GETReceives edited display control information from a device. This API is executable after updateDisplayInfo API is executed.
getGeneralInfo

/restapi/v1.0/rms/devices/{deviceId}/general

GETImports general device information from the database. General device information is updated when the device connects to the server.
updateGeneralInfo

/restapi/v1.0/rms/devices/{deviceId}/general/info

PUTSends edited device information to a device. Only edited values in basic device information are sent as a protocol to the device.
getUpdatedGeneralInfoResult

/restapi/v1.0/rms/devices/{deviceId}/general/{requestId}

GETReceives edited device information from a device. This API is executable after updateGeneralInfo API is executed.
moveDevice

/restapi/v1.0/rms/devices/{deviceId}/move

PUTMoves a device to another group.
startRmServerVnc

/restapi/v1.0/rms/devices/{deviceId}/rmserver/start

GETSends an RM start protocol to a device. A device that received an RM start protocol sends information periodically via the RM server.
stopRmServerVnc

/restapi/v1.0/rms/devices/{deviceId}/rmserver/stop

GETSends an RM stop protocol to a device. A device that received a stop protocol stops the corresponding function immediately.
getSetupInfo

/restapi/v1.0/rms/devices/{deviceId}/setup

GETImports device settings. Device settings are updated when the device connects to the server.
updateSetupInfo

/restapi/v1.0/rms/devices/{deviceId}/setup

PUTSends edited device settings to a device. Only edited values in settings are sent as a protocol to the device.
getUpdatedSetupInfoResult

/restapi/v1.0/rms/devices/{deviceId}/setup/{requestId}

GETReceives edited device settings from a device. This API is executable after updateSetupInfo API is executed.
getCurrentStatusDisplay

/restapi/v1.0/rms/devices/{deviceId}/status/display

GETSends a current display control information request to a device. If calling this API, requestId is returned as the response value.
getCurrentStatusDisplay

/restapi/v1.0/rms/devices/{deviceId}/status/display/{requestId}

GETImports display control information sent from a device. This option is used for two actions: sending a request for information to a device and receiving actual device information.
getCurrentStatusTime

/restapi/v1.0/rms/devices/{deviceId}/status/time

GETSends a current time information request to a device.If calling this API, requestId is returned as the response value.
getCurrentStatusTime

/restapi/v1.0/rms/devices/{deviceId}/status/time/{requestId}

GETImports time information sent from a device. This option is used for two actions: sending a request for information to a device and receiving actual device information.
getTimeInfo

/restapi/v1.0/rms/devices/{deviceId}/time

GETImports device time information from the database. If control information is not present, an information request should be sent to the device.
updateTimeInfo

/restapi/v1.0/rms/devices/{deviceId}/time

PUTSends edited time information to a device. Only edited values in time information are sent as a protocol to the device.
getUpdatedTimeInfoResult

/restapi/v1.0/rms/devices/{deviceId}/time/{requestId}

GET

Receives edited device time information from a device. This API executable after getUpdatedTimeInfoResult API is executed.

listDeviceGroupOrgan

/restapi/v1.0/rms/devices/groups

GETImports a list of organizations.
listDeviceGroupInfo

/restapi/v1.0/rms/devices/groups/{groupId}

GETImports details of the {groupId} group.
listDeviceGroupChild

/restapi/v1.0/rms/devices/groups/{groupId}/child

GETImports information about sub-groups under {groupId}.

User

Add users and manage user information. User-related services are accessible to authenticated users with privileges to read, write, and manage user information.

Available user management services are as follows:

Service Name

API call

Call TypeDescription
createUser/restapi/v1.0/ums/usersPOSTAdds a user.
listDashboardUserInfo

/restapi/v1.0/ums/users/dashboard

GETImports necessary user information from the dashboard.
updateMyInfo

/restapi/v1.0/ums/users/me

PUTEdits user information.
listUserOrgan

/restapi/v1.0/ums/users/organization

GETImports a list of organizations. This option can be used to configure a group tree.
listUserGroupOrgan

/restapi/v1.0/ums/users/groups

GETImports a list of organizations.
listUserGroupInfo

/restapi/v1.0/ums/users/groups/{groupId}

GETImports details of the {groupId} group.
listUserGroupChild

/restapi/v1.0/ums/users/groups/{groupId}/child

GETImports a list of sub-groups under the {groupId} group.

Setting

In addition to main functions, you can use many other functions to create and manage tags and categories, and edit the dashboard.

Service Name

API call

Call TypeDescription
getCategoryInfo

/restapi/v1.0/ems/category/{categoryId}

GETImports a list of categories.
deleteDashboard

/restapi/v1.0/ems/dashboard

DELETEDeletes specific dashboard information.
listDashboardInfo

/restapi/v1.0/ems/dashboard

GETImports content to be displayed on the customized dashboard. It is possible to display only specific information on the dashboard.
updateDashboardPriority

/restapi/v1.0/ems/dashboard

PUTChanges the order of items displayed on the dashboard.
createDashboard

/restapi/v1.0/ems/dashboard/create

GETActivates an idle dashboard.

listDashboardLoginInfo

/restapi/v1.0/ems/dashboard/login

GETImports login information to be displayed on the dashboard.
listDashboardNoticeInfo

/restapi/v1.0/ems/dashboard/notice

GETImports bulletin board information to be displayed on the dashboard.
deleteNoticeInfo

/restapi/v1.0/ems/dashboard/notice/edit

DELETEDeletes a post from the bulletin board.
listEditNoticeInfo

/restapi/v1.0/ems/dashboard/notice/edit

GETImports details of the selected post.
createNoticeInfo

/restapi/v1.0/ems/dashboard/notice/edit

POSTAdds posts to the bulletin board.
updateNoticeInfo

/restapi/v1.0/ems/dashboard/notice/edit

PUTEdits the selected post on the bulletin board.
listDashboardStorageInfo

/restapi/v1.0/ems/dashboard/storage

GETImports storage information to be displayed on the dashboard.

listLicense

/restapi/v1.0/ems/license

GETImports a list of licenses registered on the server.
getServerSetupInfo

/restapi/v1.0/ems/setup

GETImports server settings. Server setting items include options that can turn on or off different functions on the server.
getTagListInfo

/restapi/v1.0/ems/tag

POSTImports a list of tags registered on the server.


Open API Details (swagger UI)

http://184.169.167.38:7001/MagicInfo/swagger-ui.html