https://github.com/crisfeim/backend-sandbox-swift-rest
🏖️ Sandbox on how to build a lightweight dynamic minimal REST API server in Swift for learning purposes.
https://github.com/crisfeim/backend-sandbox-swift-rest
reinventing-the-wheel-for-learning-purposes server-side-swift
Last synced: 9 months ago
JSON representation
🏖️ Sandbox on how to build a lightweight dynamic minimal REST API server in Swift for learning purposes.
- Host: GitHub
- URL: https://github.com/crisfeim/backend-sandbox-swift-rest
- Owner: crisfeim
- Created: 2025-05-07T17:03:14.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-05-09T12:35:24.000Z (about 1 year ago)
- Last Synced: 2025-08-10T06:19:58.919Z (10 months ago)
- Topics: reinventing-the-wheel-for-learning-purposes, server-side-swift
- Language: Swift
- Homepage:
- Size: 20.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simple Swift REST-API Server
Exploration on how to build a lightweight dynamic minimal **REST API server** in Swift for learning purposes.
## Desired API
A simple but extensible API surface for declaring endpoints, inspired by declarative patterns.
```swift
let cd = CoreDataProvider()
let fs = FileSystemDataProvider()
let recipes = Endpoint(
path: "recipes",
dataProvider: fs,
auth: .bearAuth
)
let todos = Endpoint(
path: "todos",
dataProvider: cd
)
let users = Endpoint(path: "users", provider: fs)
Server(endpoits: [recipes, todos, users])
```