Skip to content

Commit

Permalink
Update PetStore.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
dankinsoid authored Mar 28, 2024
1 parent 5728a93 commit 12e706a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Example/Sources/PetStoreWithMacros/PetStore.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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) {}
}
Expand All @@ -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() {}
}
}
}
Expand All @@ -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 {}
}
}
Expand Down

0 comments on commit 12e706a

Please sign in to comment.