From 12e706a8fe16ee9e434ff0ccb33e6f7c20484e97 Mon Sep 17 00:00:00 2001 From: dankinsoid <30962149+dankinsoid@users.noreply.github.com> Date: Fri, 29 Mar 2024 02:10:47 +0400 Subject: [PATCH] Update PetStore.swift --- Example/Sources/PetStoreWithMacros/PetStore.swift | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Example/Sources/PetStoreWithMacros/PetStore.swift b/Example/Sources/PetStoreWithMacros/PetStore.swift index 77d9dc5..c426b3f 100644 --- a/Example/Sources/PetStoreWithMacros/PetStore.swift +++ b/Example/Sources/PetStoreWithMacros/PetStore.swift @@ -36,8 +36,8 @@ public extension PetStore { @Path("{id}") public struct PetByID { - @GET("/") public func get() -> PetModel {} - @DELETE("/") public func delete() {} + @GET("/") public func get() -> PetModel {} + @DELETE("/") public func delete() {} @POST("/") public func update(@Query name: String?, @Query status: PetStatus?) -> PetModel {} @POST public func uploadImage(_ body: Data, @Query additionalMetadata: String? = nil) {} } @@ -61,8 +61,8 @@ public extension PetStore { @Path("order", "{id}") public struct Order { - @GET("/") public func get() -> OrderModel {} - @DELETE("/") public func delete() {} + @GET("/") public func get() -> OrderModel {} + @DELETE("/") public func delete() {} } } } @@ -88,9 +88,9 @@ extension PetStore { @Path("{username}") public struct UserByUsername { - - @GET("/") public func get() -> UserModel {} - @DELETE("/") public func delete() {} + + @GET("/") public func get() -> UserModel {} + @DELETE("/") public func delete() {} @PUT("/") public func update(_ body: UserModel) -> UserModel {} } }