Skip to content
Merged

4 #10

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
4985892
Start working on 4 upgrade
twof Nov 17, 2019
219c58f
removed parameter errors
twof Nov 17, 2019
2b217da
Remove modifiable pivot
twof Nov 17, 2019
a46e6d8
indexall gets its req back
twof Nov 17, 2019
2eb19c5
Starting to deal with siblings
twof Nov 17, 2019
a1add9d
Some tests passing
twof Nov 18, 2019
49d6a33
Update to Vapor-beta.3 / Fluent-beta.2
simonedelmann Dec 21, 2019
caa7f26
Third test passing
simonedelmann Dec 25, 2019
d1799ab
stashing testing changes
twof Dec 29, 2019
eb7e711
Merge pull request #9 from simonedelmann/4
twof Dec 29, 2019
52c91d6
add package resolved to ignore
twof Dec 29, 2019
5239565
remote swiftpm folder
twof Dec 29, 2019
3e44c8d
remove swiftpm folder
twof Dec 29, 2019
a34e8ef
fix merge
twof Dec 29, 2019
5049f91
base test working with XCTVapor
twof Dec 30, 2019
7b071f3
child test passing. Suite is failing due to setup being run more than…
twof Dec 30, 2019
c31560a
get siblings test succeeding
twof Dec 30, 2019
a278b2c
renamed
twof Dec 30, 2019
0c8e0b4
add post tests file. Tests not passing
twof Jan 5, 2020
5f1b88b
Post children and base succeeding
twof Jan 5, 2020
55dbf1b
post tests passing
twof Jan 12, 2020
220842d
start of put tests
twof Jan 12, 2020
dcbc1ec
first method upgraded to async await
twof Nov 21, 2021
43d845f
crudcontrollerprotocol updated to async
twof Nov 21, 2021
7291a12
move children controller to async
twof Nov 21, 2021
d5a793d
tests build, but there are still issues
twof Nov 21, 2021
a557d3a
new tests added, not all passing
twof Nov 22, 2021
67f72d1
crud parent route creation tests
twof Nov 22, 2021
87df819
siblings produce correct route sets
twof Nov 22, 2021
a20db72
parent put test passing
twof Nov 22, 2021
0693518
siblings put test passing
twof Nov 22, 2021
b61f37c
all tests now run. Working on recursive routers
twof Nov 22, 2021
a6d7db8
some naming refactors for readability
twof Nov 22, 2021
baa561e
cleanup. Project not building
twof Nov 22, 2021
3c87805
using the origintype naming convention
twof Nov 22, 2021
0c39516
formatting
twof Nov 22, 2021
739a4e4
tests passing
twof Nov 25, 2021
c7c36c2
cleanup
twof Nov 26, 2021
483db8b
return responses with the correct status codes
twof Nov 26, 2021
bf7509b
documented and cleaned up
twof Nov 27, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
/.build
/Packages
/*.xcodeproj
Package.resolved
.swiftpm/
175 changes: 92 additions & 83 deletions Package.resolved

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

40 changes: 18 additions & 22 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,33 +1,29 @@
// swift-tools-version:4.2
// The swift-tools-version declares the minimum version of Swift required to build this package.

// swift-tools-version:5.5
import PackageDescription

let package = Package(
name: "CrudRouter",
platforms: [
.macOS(.v12)
],
products: [
// Products define the executables and libraries produced by a package, and make them visible to other packages.
.library(
name: "CrudRouter",
targets: ["CrudRouter"]),
.library(name: "CrudRouter", targets: ["CrudRouter"]),
],
dependencies: [
// Dependencies declare other packages that this package depends on.
// .package(url: /* package url */, from: "1.0.0"),
// 💧 A server-side Swift web framework.,
.package(url: "https://github.com/vapor/vapor.git", .upToNextMajor(from: "3.0.0")),

// 🔵 Swift ORM (queries, models, relations, etc) built on SQLite 3.
.package(url: "https://github.com/vapor/fluent-sqlite.git", .upToNextMajor(from: "3.0.0")),
.package(url: "https://github.com/vapor/vapor.git", from: "4.53.0"),
.package(url: "https://github.com/vapor/fluent.git", from: "4.4.0"),
.package(url: "https://github.com/vapor/fluent-sqlite-driver.git", from: "4.1.0"),
],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
// Targets can depend on other targets in this package, and on products in packages which this package depends on.
.target(
name: "CrudRouter",
dependencies: ["FluentSQLite", "Vapor"]),
.testTarget(
name: "CrudRouterTests",
dependencies: ["CrudRouter", "FluentSQLite"]),
.target(name: "CrudRouter", dependencies: [
.product(name: "Vapor", package: "vapor"),
.product(name: "Fluent", package: "fluent"),
.product(name: "FluentSQLiteDriver", package: "fluent-sqlite-driver")
]),
.testTarget(name: "CrudRouterIntegrationTests", dependencies: [
.target(name: "CrudRouter"),
.product(name: "FluentSQLiteDriver", package: "fluent-sqlite-driver"),
.product(name: "XCTVapor", package: "vapor")
]),
]
)
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ GET /todo/:id/tag/:id
### Future features
- query parameter support
- PATCH support
- more fine grained response statuses
- automatically expose relations (blocked by lack of Swift reflection support)
- documentation for all public functions
- generate models and rest routes via console command
Expand Down
Loading