Swiftpack.co - childrens-village/ChildrensVillageApiClient as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by childrens-village.
childrens-village/ChildrensVillageApiClient 2.0.0
Swift client package for Children's Village LoopBack 4 API (work in progress)
⭐️ 0
🕓 6 weeks ago
iOS
.package(url: "https://github.com/childrens-village/ChildrensVillageApiClient.git", from: "2.0.0")

ChildrensVillageApiClient

A collection of requests intended to be used by the Children's Village Facilitator Area iOS app.

API

protocol ChildrensVillageApiCompatible {
  func requestToken(
    _ username: String,
    _ password: String
  ) async throws -> TokenResponse

  func requestPupilsRegister(
    _ token: String,
    _ branchId: Int,
    _ date: Date
  ) async throws -> [Pupil]

  func requestFacilitatorsRegister(
    _ token: String,
    _ date: Date
  ) async throws -> [Parent]

  func clockOnPupil(
    _ token: String,
    _ pupilId: String,
    _ branchId: Int,
    _ date: Date?
  ) async throws -> ClockOnResponse

  func clockOnFacilitator(
    _ token: String,
    _ facilitatorId: String,
    _ branchId: Int,
    _ date: Date?
  ) async throws -> ClockOnResponse

  func revertPupilClockOn(
    _ token: String,
    _ attendanceId: Int
  ) async throws

  func revertFacilitatorClockOn(
    _ token: String,
    _ attendanceId: Int
  ) async throws
}

GitHub

link
Stars: 0
Last commit: 1 week ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics