我正在使用工具,比如SuperTest和NodeJS,并寻找相关的等价物来支持Vapor3和服务器端swift的测试。我看到了一种使用making a testable application with Vapor3来测试端点的模式,例如https://github.com/raywenderlich/vapor-til/blob/master/Tests/AppTests
我正在使用Vapor3、Swift 5.1、PostgreSQL 12和Postico 1.5.10作为我的后端。在PostgreSQL数据库中,有一个名为eventDate的字段,类型为timestamp without time zone。请看截图: ? 在Vapor中,有一个模型: import Vapor
final class TestModel: P
我提出一个请求,POST /vapor/signed-storage-url,我得到: "message": "This action is unauthorized.bool public function uploadFiles(User $user): bool return true;}
但我一直在找