Skip to content

Commit

Permalink
Update templates
Browse files Browse the repository at this point in the history
  • Loading branch information
belezad committed Jan 10, 2020
1 parent 4be7fbc commit fad3ee4
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
16 changes: 8 additions & 8 deletions src/main/resources/MinderaSwift4/APIs.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,19 @@
import Foundation

open class {{projectName}}API {
open static var basePath = "{{{basePath}}}"
open static var credential: URLCredential?
open static var customHeaders: [String:String] = [:]
open static var requestBuilderFactory: RequestBuilderFactory = AlamofireRequestBuilderFactory()
public static var basePath = "{{{basePath}}}"
public static var credential: URLCredential?
public static var customHeaders: [String:String] = [:]
public static var requestBuilderFactory: RequestBuilderFactory = AlamofireRequestBuilderFactory()
}

open class RequestBuilder<T> {
open var credential: URLCredential?
open var headers: [String:String]
open let parameters: [String:Any]?
open let isBody: Bool
open let method: String
open let URLString: String
public let parameters: [String:Any]?
public let isBody: Bool
public let method: String
public let URLString: String
/// Optional block to obtain a reference to the request's progress instance when available.
public var onProgressReady: ((Progress) -> ())?
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/MinderaSwift4/Configuration.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ open class Configuration {
// These values are used to configure date formatters that are used to serialize dates into JSON format.
// You must set it prior to encoding any dates, and it will only be read once.
open static var dateTimeFormat = "yyyy-MM-dd'T'HH:mm:ss.SSSXXXXX"
open static var dateFormat = "yyyy-MM-dd"
public static var dateTimeFormat = "yyyy-MM-dd'T'HH:mm:ss.SSSXXXXX"
public static var dateFormat = "yyyy-MM-dd"
static var iso8601DateTimeFormatter: DateFormatter = {
let formatter = DateFormatter()
Expand Down
6 changes: 3 additions & 3 deletions src/main/resources/MinderaSwift4/Models.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ public enum ErrorResponse : Error {
}

open class Response<T> {
open let statusCode: Int
open let header: [String: String]
open let body: T?
public let statusCode: Int
public let header: [String: String]
public let body: T?
public init(statusCode: Int, header: [String: String], body: T?) {
self.statusCode = statusCode
Expand Down

0 comments on commit fad3ee4

Please sign in to comment.