Handles the result of an Ingestion process

$ curl 'http://platform.wim.tv:8080/rest/ingestion/ingestionResults' -i -X POST \
    -H 'Accept: application/json' \
    -H 'Content-Type: application/json' \
    -d '{
  "urlOriginal" : "fakeobject",
  "urlTranscoded" : "fakeobject",
  "contentId" : "bfea9eb9-1f90-46d7-85b0-fd6f51fee556",
  "srcType" : "S3",
  "result" : "SUCCESSFULLY_TRANSCODED"
}'

Request headers

Name Description

Content-Type

application/json

* Required.

Accept

application/json

* Required.

Request fields

Path Type Description

result

Result

Status of the Ingestion process.

* Required.
* Must not be null.

srcType

Repository type

Repository type.

* Required.
* Must not be null.

contentId

String

The resource identifier.

* Required.
* Must not be blank.

errorMsg

String

Error message.

* Optional.

urlOriginal

String

Original S3 object

* Required.

urlTranscoded

String

Transcoded S3 object

* Required.

Response

HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 26

{
  "result" : "SUCCESS"
}

Response fields

Path Type Description

result

Result

Result sent back to Ingestion service.

error

Object

Error information. May be not provided.

Error fields

Path Type Description

message

String

Error message.

field

String

Name of the field on which the error is detected. May be not provided.

Handles the result of an FFmpeg process

$ curl 'http://platform.wim.tv:8080/rest/ffmpeg/result' -i -X POST \
    -H 'Accept: application/json' \
    -H 'Content-Type: application/json' \
    -d '{
  "contentId" : "urn:wim:tv:content:b9a7957f-0828-4afe-ad19-bb42b2ebaa71",
  "resourceId" : "d847ac72-dd7a-40fa-a43e-fe90bb3aa94a",
  "thumbnailName" : "thumbnail.png",
  "srcType" : "S3",
  "duration" : 600000
}'

Request headers

Name Description

Content-Type

application/json

* Required.

Accept

application/json

* Required.

Request fields

Path Type Description

srcType

Repository type

Repository type.

* Required.
* Must not be null.

contentId

String

The content identifier.

* Required.

resourceId

String

The resource identifier.

* Required.
* Must not be blank.

thumbnailName

String

The thumbnail name.

* Optional.

duration

Number

The duration of the video (millisecs).

* Optional.

Response

HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 26

{
  "result" : "SUCCESS"
}

Response fields

Path Type Description

result

Result

Result sent back to FFmpeg service.

error

Object

Error information. May be not provided.

Error fields

Path Type Description

message

String

Error message.

field

String

Name of the field on which the error is detected. May be not provided.

Authentication

The WimTV-Ingestion integration APIs require BASIC authentication.

Custom types

Ingestion repository types

Value Description

LOCAL

Local file system.

S3

AWS S3 bucket.

Status of an Ingestion process

Value Description

SUCCESSFULLY_TRANSCODED

Success.

TRANSCODING_FAILED

Failure.

Result sent back to the service

Value Description

SUCCESS

Success.

FAILURE

Failure.