Skip to content

Commit

Permalink
Updated application.raml to be more explicit about EmpRefs
Browse files Browse the repository at this point in the history
  • Loading branch information
flashingpumpkin committed Jul 10, 2017
1 parent aedf507 commit 2377050
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions resources/public/api/conf/1.0/application.raml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ types:
pattern: "[a-zA-Z0-9]+"
EmpRef:
pattern: "[a-zA-Z0-9]{3}/[a-zA-Z0-9]{7}"
TaxOfficeNumber:
pattern: "[a-zA-Z0-9]{3}"
TaxOfficeReference:
pattern: "[a-zA-Z0-9]{7}"

/paye-for-employers:
/:
Expand Down Expand Up @@ -57,12 +61,16 @@ types:
"code" : "INSUFFICIENT_ENROLMENTS",
"message" : "You are not currently enrolled for ePAYE"
}
/{empRef}/total:
/{taxOfficeNumber}/{taxOfficeReference}/total:
uriParameters:
empRef:
description: A unique identifier made up of tax office number and tax office reference.
taxOfficeNumber:
description: A unique identifier made up of tax office number
type: string
example: 111/A222222
example: "001"
taxOfficeReference:
description: A unique identifier made up of the tax office reference
type: string
example: "A000001"
get:
is: [ headers.acceptHeader ]
displayName: Get ePAYE total balance
Expand Down

0 comments on commit 2377050

Please sign in to comment.