Skip to content

Commit

Permalink
HATEOAS rel amend -> create-and-amend (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
Thepworth95 authored Sep 24, 2020
1 parent 3fe9c0b commit b103970
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/v1/models/hateoas/RelType.scala
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
package v1.models.hateoas

object RelType {
val AMEND_DISCLOSURES = "amend-disclosures"
val AMEND_DISCLOSURES = "create-and-amend-disclosures"
val DELETE_DISCLOSURES = "delete-disclosures"

val SELF = "self"
Expand Down
2 changes: 1 addition & 1 deletion it/v1/endpoints/AmendDisclosuresControllerISpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class AmendDisclosuresControllerISpec extends IntegrationBaseSpec {
| "links":[
| {
| "href":"/individuals/disclosures/$nino/$taxYear",
| "rel":"amend-disclosures",
| "rel":"create-and-amend-disclosures",
| "method":"PUT"
| },
| {
Expand Down
2 changes: 1 addition & 1 deletion test/v1/controllers/AmendDisclosuresControllerSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ class AmendDisclosuresControllerSpec
| "links":[
| {
| "href":"/baseUrl/$nino/$taxYear",
| "rel":"amend-disclosures",
| "rel":"create-and-amend-disclosures",
| "method":"PUT"
| },
| {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ object RetrieveDisclosuresControllerFixture {
| {
| "href":"/individuals/disclosures/$nino/$taxYear",
| "method":"PUT",
| "rel":"amend-disclosures"
| "rel":"create-and-amend-disclosures"
| },
| {
| "href":"/individuals/disclosures/$nino/$taxYear",
Expand Down

0 comments on commit b103970

Please sign in to comment.