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

  • my-machines-dept-controller : My Machines Dept Controller

  • my-machines-line-controller : My Machines Line Controller

  • my-machines-unit-controller : My Machines Unit Controller

2. Resources

2.1. My-machines-controller

My Machines Controller

2.1.1. updateUserPreferences

POST /myMachines/v1/preferences
Parameters
Type Name Description Schema

Body

preferredMachines
required

preferredMachines

PreferredMachines

Responses
HTTP Code Description Schema

200

OK

object

Consumes
  • application/json;charset=UTF-8

Produces
  • application/json;charset=UTF-8

Security
Type Name Scopes

oauth2

oauth

default

2.2. My-machines-dept-controller

My Machines Dept Controller

2.2.1. getDepts

GET /myMachines/v1/departments/authorized-depts
Parameters
Type Name Description Schema Default

Query

expandLines
optional

expandLines

boolean

"false"

Query

expandUnits
optional

expandUnits

boolean

"false"

Responses
HTTP Code Description Schema

200

OK

object

Produces
  • application/json;charset=UTF-8

Security
Type Name Scopes

oauth2

oauth

default

2.2.2. getPreferredDepts

GET /myMachines/v1/departments/preferred-depts
Parameters
Type Name Description Schema Default

Query

expandLines
optional

expandLines

boolean

"false"

Query

expandUnits
optional

expandUnits

boolean

"false"

Query

previousPreferences
optional

previousPreferences

integer (int32)

0

Query

retrieveChildren
optional

retrieveChildren

boolean

"false"

Responses
HTTP Code Description Schema

200

OK

object

Produces
  • application/json;charset=UTF-8

Security
Type Name Scopes

oauth2

oauth

default

2.3. My-machines-line-controller

My Machines Line Controller

2.3.1. getLines

GET /myMachines/v1/lines/authorized-lines
Parameters
Type Name Description Schema Default

Query

departmentId
optional

departmentId

integer (int64)

Query

expandUnits
optional

expandUnits

boolean

"false"

Responses
HTTP Code Description Schema

200

OK

object

Produces
  • application/json;charset=UTF-8

Security
Type Name Scopes

oauth2

oauth

default

2.3.2. getPreferredLines

GET /myMachines/v1/lines/preferred-lines
Parameters
Type Name Description Schema Default

Query

departmentId
optional

departmentId

integer (int64)

Query

expandUnits
optional

expandUnits

boolean

"false"

Query

previousPreferences
optional

previousPreferences

integer (int32)

0

Query

retrieveChildren
optional

retrieveChildren

boolean

"false"

Responses
HTTP Code Description Schema

200

OK

object

Produces
  • application/json;charset=UTF-8

Security
Type Name Scopes

oauth2

oauth

default

2.4. My-machines-unit-controller

My Machines Unit Controller

2.4.1. getUnits

GET /myMachines/v1/units/authorized-units
Parameters
Type Name Description Schema

Query

lineId
optional

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.4.2. getPreferredUnits

GET /myMachines/v1/units/preferred-units
Parameters
Type Name Description Schema Default

Query

lineId
optional

lineId

integer (int64)

Query

previousPreferences
optional

previousPreferences

integer (int32)

0

Query

retrieveChildren
optional

retrieveChildren

boolean

"false"

Responses
HTTP Code Description Schema

200

OK

object

Produces
  • application/json;charset=UTF-8

Security
Type Name Scopes

oauth2

oauth

default

3. Definitions

3.1. PreferredMachines

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.