1. Overview

Microservice containing the business logic for managing mymachineservice.

1.1. URI scheme

Host : localhost
BasePath : /

1.2. Tags

  • my-machines-controller : My Machines Controller

2. Resources

2.1. My-machines-controller

My Machines Controller

2.1.1. getMyMachinesEditorState

GET /mymachines-viewer
Parameters
Type Name Description Schema Default

Query

eventId
optional

eventId

integer (int64)

2

Query

expandLines
optional

expandLines

boolean

"true"

Query

expandUnits
optional

expandUnits

boolean

"true"

Query

previousPreferences
optional

previousPreferences

integer (int32)

0

Responses
HTTP Code Description Schema

200

OK

object

Produces
  • application/json;charset=UTF-8

Security
Type Name Scopes

oauth2

oauth

default

2.1.2. getmymachineEditorStateLines

GET /mymachines-viewer/departments/{deptId}/lines
Parameters
Type Name Description Schema

Path

deptId
required

deptId

integer (int64)

Responses
HTTP Code Description Schema

200

OK

object

Produces
  • application/json;charset=UTF-8

Security
Type Name Scopes

oauth2

oauth

default

2.1.3. getmymachineEditorStateUnits

GET /mymachines-viewer/lines/{lineId}/units
Parameters
Type Name Description Schema

Path

lineId
required

lineId

integer (int64)

Responses
HTTP Code Description Schema

200

OK

object

Produces
  • application/json;charset=UTF-8

Security
Type Name Scopes

oauth2

oauth

default

2.1.4. updatePreferences

POST /mymachines-viewer/preferences
Parameters
Type Name Description Schema

Body

preferredMachinesUpdates
required

preferredMachinesUpdates

PreferredMachinesDTO

Responses
HTTP Code Description Schema

200

OK

object

Consumes
  • application/json

Produces
  • application/json;charset=UTF-8

Security
Type Name Scopes

oauth2

oauth

default

3. Definitions

3.1. PreferredMachinesDTO

Name Schema

units
optional

< PreferredMachinesInfo > array

userId
optional

integer (int64)

3.2. PreferredMachinesInfo

Name Schema

eventId
optional

integer (int64)

id
optional

integer (int64)

transactiontype
optional

integer (int32)

unitName
optional

string

4. Security

4.1. oauth

Type : oauth2
Flow : accessCode
Token URL : https://localhost:8443/uaa/oauth/authorize
Token URL : https://localhost:8443/uaa/oauth/token

Name Description

default

Default oauth2 scope.