https://github.com/fwcd/swift-mensa
Library for querying meal plans from German university canteens
https://github.com/fwcd/swift-mensa
canteen mensa openmensa swift
Last synced: 2 months ago
JSON representation
Library for querying meal plans from German university canteens
- Host: GitHub
- URL: https://github.com/fwcd/swift-mensa
- Owner: fwcd
- License: mit
- Created: 2022-11-07T15:10:38.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-16T01:56:20.000Z (8 months ago)
- Last Synced: 2025-04-09T19:09:12.289Z (2 months ago)
- Topics: canteen, mensa, openmensa, swift
- Language: Swift
- Homepage: https://fwcd.github.io/swift-mensa/documentation/mensa
- Size: 31.3 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Swift Mensa
[](https://github.com/fwcd/swift-mensa/actions/workflows/build.yml)
[](https://fwcd.github.io/swift-mensa/documentation/mensa)Library for querying meal plans from German university canteens. Uses the [OpenMensa API](https://docs.openmensa.org/).
## Example
```swift
import Mensalet client = MensaClient()
let canteens: [Canteen] = try await client.canteens()
let todaysMeals: [Meal] = try await client.meals(for: canteens[0].id)
```See [the `Snippets` folder](Snippets) for more examples.