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 {