FORCE Bridge API (v2)

Download OpenAPI specification:Download

This is the online documentation of FORCE Bridge API. It lists all resources and the related access methods provided by FORCE Bridge API, including call parameters, request and response messages.

Authentication

oauth2schema

Security scheme type: OAuth2
clientCredentials OAuth Flow
Token URL: http://fctestfactory04.northeurope.cloudapp.azure.com:24080/ffwebservices/oauth/token
Scopes:
  • write -

    writeAccess

  • read -

    readAccess

Device

Retrieve all devices.

Authorizations:
oauth2schema (read)
query Parameters
deviceName
string

The name of the device (e.g. S7 1212C DC), which could also be an abstract device (e.g. Welding 247)

limit
integer <int32> [ 1 .. 100 ]
Default: 100

Size of the requested page

offset
integer <int32> >= 0
Default: 0

Offset used for pagination

physicalQuantity
string

The physical quantity that is measured at a device

Responses

200

Collection of devices found.

400

Collection of devices not found.

401

No or an invalid request token was returned

403

Request requires higher privileges than provided by the access token

500

Internal server error

502

Received subservice error.

get /devices
null//fctestfactory04.northeurope.cloudapp.azure.com:24080/ffwebservices/api/v2/devices

Response samples

Copy
Expand all Collapse all
{
  • "_embedded":
    {
    },
  • "_links": "HAL link objects",
  • "pagination":
    {
    }
}

Retrieve an individual device.

Authorizations:
oauth2schema (read)
path Parameters
deviceId
required
string

UUID of a device

Responses

200

Device found.

401

No or an invalid request token was returned

403

Request requires higher privileges than provided by the access token

404

Unable to find the device for the given deviceId parameter.

500

Internal server error

502

Received subservice error.

get /devices/{deviceId}
null//fctestfactory04.northeurope.cloudapp.azure.com:24080/ffwebservices/api/v2/devices/{deviceId}

Response samples

Copy
Expand all Collapse all
{
  • "_embedded": "HAL embedded objects",
  • "_links": "HAL link objects",
  • "properties":
    {
    }
}

Retrieve the location of a device.

Authorizations:
oauth2schema (read)
path Parameters
deviceId
required
string

UUID of a device

Responses

200

Device location found.

400

If no location could be found for the given device id. | Workplace not found for the given device.

401

No or an invalid request token was returned

403

Request requires higher privileges than provided by the access token

404

Unable to find the device for the given deviceId parameter.

500

Internal server error

502

Received subservice error.

get /devices/{deviceId}/location
null//fctestfactory04.northeurope.cloudapp.azure.com:24080/ffwebservices/api/v2/devices/{deviceId}/location

Response samples

Copy
Expand all Collapse all
{
  • "_embedded": "HAL embedded objects",
  • "_links": "HAL link objects",
  • "properties":
    {
    }
}

Retrieve the recorded time series of a device.

A filtered list of recorded time series is returned. Call parameters allow filtering according to a specific time period. If the device is the programmable logic controller of a machine or a virtual device that combines several programmable logic controllers of a machine, the time series represent the recorded process parameters. In this case, it is also possible to filter according to a specific operation that was executed on the machine.

Authorizations:
oauth2schema (read)
path Parameters
deviceId
required
string

UUID of a device

query Parameters
endDate
string <date-time>

The end date of the considered period

limit
integer <int32> [ 1 .. 100 ]
Default: 100

Size of the requested page

materialNumber
string

Unique Material number of a material produced. To use the filter, the device must be assigned to a workplace and an operation must have produced the material at this workplace within the considered time period

operationNumber
string

Unique Operation number of an executed operation. To use the filter, the device must be assigned to a workplace and the specified operation must have been executed at this workplace within the considered time period

paginationDirection
string
Default: "NEXT"
Enum:"NEXT" "PREVIOUS"

Direction on how to navigate through the response pages

paginationTimestamp
string <date-time>

Timestamp used for pagination

productionOrderNumber
string

Unique Production Order number of an executed production order. To use the filter, the device must be assigned to a workplace and an operation of the specified production order must have been executed at this workplace within the considered period

startDate
string <date-time>
Default: "Beginning of the current week"

The start date of the considered period

tag
required
integer <int64>

Tag for a specific variable or process parameter

workplaceId
string

UUID of the workplace.

Responses

200

Recorded time series of a device, found.

400

Unable to find the device time series for the given deviceId parameter.

401

No or an invalid request token was returned

403

Request requires higher privileges than provided by the access token

500

Internal server error

502

Received subservice error.

get /devices/{deviceId}/recordedTimeSeries
null//fctestfactory04.northeurope.cloudapp.azure.com:24080/ffwebservices/api/v2/devices/{deviceId}/recordedTimeSeries

Response samples

Copy
Expand all Collapse all
{
  • "_embedded": "HAL embedded objects",
  • "_links": "HAL link objects",
  • "pagination":
    {
    },
  • "properties":
    {
    }
}

Document

Request file repository details

Request details for the file repository.

Authorizations:
oauth2schema (read)

Responses

200

File repository found.

401

No or an invalid request token was returned

403

Request requires higher privileges than provided by the access token

500

Internal server error

get /fileRepository
null//fctestfactory04.northeurope.cloudapp.azure.com:24080/ffwebservices/api/v2/fileRepository

Response samples

application/hal+json;charset=UTF-8
Copy
Expand all Collapse all
{
  • "_embedded": "HAL embedded objects",
  • "_links": "HAL link objects"
}

Retrieve the collection of documents.

A filtered collection of documents is returned. Call parameters allow for filtering by search terms.

Authorizations:
oauth2schema (read)
query Parameters
embed
Array of string

Names of embeddable resources to be embedded

limit
integer <int32> [ 1 .. 100 ]
Default: 100

Size of the requested page

paginationDirection
string
Default: "NEXT"
Enum:"NEXT" "PREVIOUS"

Direction on how to navigate through the response pages

paginationTimestamp
string <date-time>

Timestamp used for pagination

Responses

200

Documents found.

401

No or an invalid request token was returned

403

Request requires higher privileges than provided by the access token

500

Internal server error

get /fileRepository/documents
null//fctestfactory04.northeurope.cloudapp.azure.com:24080/ffwebservices/api/v2/fileRepository/documents

Response samples

Copy
Expand all Collapse all
{
  • "_embedded":
    {
    },
  • "_links": "HAL link objects",
  • "pagination":
    {
    }
}

Retrieve a document.

Documents can be, for example, setting parameters, assembly instructions or assembly sketches. In the case of production with NC machines, documents are NC programs that must be transferred to the machine in order to execute an operation. The transmission of the NC programs to the machines is done by the distributed numerical control (DNC) function of the IoT Platform. Every transfer to the machine and every return transfer from the machine is documented. An NC program optimized on the machine is also automatically versioned.

Authorizations:
oauth2schema (read)
path Parameters
documentId
required
string

UUID of a document

query Parameters
embed
Array of string

Names of embeddable resources to be embedded

Responses

200

Document found.

401

No or an invalid request token was returned

403

Request requires higher privileges than provided by the access token

404

Unable to find the document for the given documentId parameter.

500

Internal server error

get /fileRepository/documents/{documentId}
null//fctestfactory04.northeurope.cloudapp.azure.com:24080/ffwebservices/api/v2/fileRepository/documents/{documentId}

Response samples

Copy
Expand all Collapse all
{
  • "_embedded": "HAL embedded objects",
  • "_links": "HAL link objects",
  • "properties":
    {
    }
}

Delete a document.

Authorizations:
oauth2schema (write)
path Parameters
documentId
required
string

UUID of a document

Responses

200

Document deleted.

401

No or an invalid request token was returned

403

Request requires higher privileges than provided by the access token

404

Unable to find the document for the given documentId parameter.

500

Internal server error

delete /fileRepository/documents/{documentId}
null//fctestfactory04.northeurope.cloudapp.azure.com:24080/ffwebservices/api/v2/fileRepository/documents/{documentId}

Retrieve the file containing the contents of the document.

Authorizations:
oauth2schema (read)
path Parameters
documentId
required
string

UUID of a document

Responses

200

File found.

401

No or an invalid request token was returned

403

Request requires higher privileges than provided by the access token

404

Unable to find the document for the given documentId parameter.

500

Internal server error

get /fileRepository/documents/{documentId}/file
null//fctestfactory04.northeurope.cloudapp.azure.com:24080/ffwebservices/api/v2/fileRepository/documents/{documentId}/file

Response samples

No sample

Upload the file containing the contents of the document.

Upload the file belonging to a newly created document or update an existing document by uploading a modified file. The document is automatically versioned.

Authorizations:
oauth2schema (write)
path Parameters
documentId
required
string

UUID of a document

query Parameters
editor
required
string

Name of the editor

fileName
required
string

Document name in the repository

Request Body schema: multipart/form-data
file
required
string <binary>

File to upload

Responses

200

Document uploaded.

400

Malformed request

401

No or an invalid request token was returned

403

Request requires higher privileges than provided by the access token

404

Unable to find the document for the given documentId parameter.

500

Internal server error

put /fileRepository/documents/{documentId}/file
null//fctestfactory04.northeurope.cloudapp.azure.com:24080/ffwebservices/api/v2/fileRepository/documents/{documentId}/file

Response samples

Copy
Expand all Collapse all
{
  • "_embedded": "HAL embedded objects",
  • "_links": "HAL link objects",
  • "properties":
    {
    }
}

Retrieve the collection of folders.

A filtered collection of folders is returned. Call parameters allow for filtering by keywords, such as material numbers and operation numbers, in order to find the production folder belonging to an operation.

Authorizations:
oauth2schema (read)
query Parameters
embed
Array of string

Names of embeddable resources to be embedded

limit
integer <int32> [ 1 .. 100 ]
Default: 100

Size of the requested page

materialNumber
string

If the folder is a production folder that contains the documents for the production of a particular material, you can specify this material here

name
string

Name of the production folder

paginationDirection
string
Default: "NEXT"
Enum:"NEXT" "PREVIOUS"

Direction on how to navigate through the response pages

paginationTimestamp
string <date-time>

Timestamp used for pagination

workplaceNumber
string

If the folder is a production folder, and the production documents only apply to a specific workplace, you can specify this workplace here

Responses

200

Folder found.

401

No or an invalid request token was returned

403

Request requires higher privileges than provided by the access token

500

Internal server error

get /fileRepository/folders
null//fctestfactory04.northeurope.cloudapp.azure.com:24080/ffwebservices/api/v2/fileRepository/folders

Response samples

Copy
Expand all Collapse all
{
  • "_embedded":
    {
    },
  • "_links": "HAL link objects",
  • "pagination":
    {
    }
}

Create a folder.

The file storage can be used for any documents; typically the production folders with documents from the Product Lifecycle Management system (PLM system) are stored there.

Authorizations:
oauth2schema (write)
Request Body schema: application/json
name
string

Name of the folder

creator
string

Person or application that created the folder

workplaceId
string

UUID of the associated workplace

materialNumber
string

Number of the associated material

Responses

201

Folder created.

400

Malformed request

401

No or an invalid request token was returned

403

Request requires higher privileges than provided by the access token

500

Internal server error

post /fileRepository/folders
null//fctestfactory04.northeurope.cloudapp.azure.com:24080/ffwebservices/api/v2/fileRepository/folders

Request samples

application/json
Copy
Expand all Collapse all
{
  • "name": "string",
  • "creator": "string",
  • "workplaceId": "string",
  • "materialNumber": "string"
}

Response samples

Copy
Expand all Collapse all
{
  • "_embedded": "HAL embedded objects",
  • "_links": "HAL link objects",
  • "properties":
    {
    }
}

Retrieve a folder.

A folder is used to group together several documents that belong together. Usually, these are production folders that contain all the documents that are required to execute an operation.

Authorizations:
oauth2schema (read)
path Parameters
folderId
required
string

UUID of a folder

query Parameters
embed
Array of string

Names of embeddable resources to be embedded

Responses

200

Folder found.

401

No or an invalid request token was returned

403

Request requires higher privileges than provided by the access token

404

Unable to find the folder for the given folderId parameter.

500

Internal server error

get /fileRepository/folders/{folderId}
null//fctestfactory04.northeurope.cloudapp.azure.com:24080/ffwebservices/api/v2/fileRepository/folders/{folderId}

Response samples

Copy
Expand all Collapse all
{
  • "_embedded": "HAL embedded objects",
  • "_links": "HAL link objects",
  • "properties":
    {
    }
}

Delete a folder.

Authorizations:
oauth2schema (write)
path Parameters
folderId
required
string

UUID of a folder

Responses

200

Folder deleted.

401

No or an invalid request token was returned

403

Request requires higher privileges than provided by the access token

404

Unable to find the folder for the given folderId parameter.

500

Internal server error

delete /fileRepository/folders/{folderId}
null//fctestfactory04.northeurope.cloudapp.azure.com:24080/ffwebservices/api/v2/fileRepository/folders/{folderId}

Response samples

Copy
Expand all Collapse all
{
  • "code": "string",
  • "message": "string",
  • "status": 0
}

Retrieve the documents contained in a folder.

Authorizations:
oauth2schema (read)
path Parameters
folderId
required
string

UUID of a folder

query Parameters
embed
Array of string

Names of embeddable resources to be embedded

limit
integer <int32> [ 1 .. 100 ]
Default: 100

Size of the requested page

paginationDirection
string
Default: "NEXT"
Enum:"NEXT" "PREVIOUS"

Direction on how to navigate through the response pages

paginationTimestamp
string <date-time>

Timestamp used for pagination

Responses

200

Documents found

401

No or an invalid request token was returned

403

Request requires higher privileges than provided by the access token

404

Unable to find folder for the given folderId parameter.

500

Internal server error

get /fileRepository/folders/{folderId}/documents
null//fctestfactory04.northeurope.cloudapp.azure.com:24080/ffwebservices/api/v2/fileRepository/folders/{folderId}/documents

Response samples

Copy
Expand all Collapse all
{
  • "_embedded":
    {