Item] def startAuction(id: UUID): ServiceCall[NotUsed, Done] def getItem(id: UUID): ServiceCall[NotUsed, Item] def getItemsForUser(id: UUID, status: ItemStatus.Status, limit: Option[Int], offset: Option[Int]): ServiceCall[NotUsed, PaginatedSequence[ItemSummary]] final override def descriptor = { import Service._ named("item").withCalls( pathCall("/api/item", createItem), restCall(Method.POST, "/api/item/:id/start", startAuction _), pathCall("/api/item/:id", getItem _), pathCall("/api/item?userId&status&limit&offset", getItemsForUser _) )