From e4562f8c2cb20bbbeb486c4f93b2e0329050b280 Mon Sep 17 00:00:00 2001 From: RandyDeo Date: Mon, 14 Feb 2022 12:57:36 -0400 Subject: [PATCH] feature:WEOS-1327 - Merged Dev and did some changes (gormdb) --- api.yaml | 6 ++++++ end2end_test.go | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/api.yaml b/api.yaml index 09525f85..87bf46c1 100755 --- a/api.yaml +++ b/api.yaml @@ -295,6 +295,12 @@ paths: application/json: schema: $ref: "#/components/schemas/Blog" + application/x-www-form-urlencoded: + schema: + $ref: "#/components/schemas/Blog" + multipart/form-data: + schema: + $ref: "#/components/schemas/Blog" responses: 200: description: Update Blog diff --git a/end2end_test.go b/end2end_test.go index 31a0d40f..a4ab171f 100644 --- a/end2end_test.go +++ b/end2end_test.go @@ -1114,7 +1114,7 @@ func sojournerDeletesTheTable(tableName string) error { if err != nil { return fmt.Errorf("unexpected error getting projection: %s", err) } - apiProjection1 := apiProjection.(*projections.GORMProjection) + apiProjection1 := apiProjection.(*projections.GORMDB) result := apiProjection1.DB().Migrator().DropTable(strings.Title(tableName)) if result != nil { @@ -1139,7 +1139,7 @@ func theTableShouldBePopulatedWith(contentType string, details *godog.Table) err if err != nil { return fmt.Errorf("unexpected error getting projection: %s", err) } - apiProjection1 := apiProjection.(*projections.GORMProjection) + apiProjection1 := apiProjection.(*projections.GORMDB) result = apiProjection1.DB().Table(strings.Title(contentType)).Find(&contentEntity, "weos_ID = ?", compare["weos_id"]) if contentEntity == nil {