Portal

<back to all web services

DeleteContractFileComment

The following routes are available for this service:
DELETE/user/{supplieruserid}/contract/{contractid}/contractversion/{contractversionid}/file/{contractfileid}
import Foundation
import ServiceStack

public class DeleteContractFileComment : ContractVersionBase, IDelete
{
    public var contractFileId:Int

    required public init(){ super.init() }

    private enum CodingKeys : String, CodingKey {
        case contractFileId
    }

    required public init(from decoder: Decoder) throws {
        try super.init(from: decoder)
        let container = try decoder.container(keyedBy: CodingKeys.self)
        contractFileId = try container.decodeIfPresent(Int.self, forKey: .contractFileId)
    }

    public override func encode(to encoder: Encoder) throws {
        try super.encode(to: encoder)
        var container = encoder.container(keyedBy: CodingKeys.self)
        if contractFileId != nil { try container.encode(contractFileId, forKey: .contractFileId) }
    }
}

public class ContractVersionBase : ContractBase
{
    public var contractVersionId:Int

    required public init(){ super.init() }

    private enum CodingKeys : String, CodingKey {
        case contractVersionId
    }

    required public init(from decoder: Decoder) throws {
        try super.init(from: decoder)
        let container = try decoder.container(keyedBy: CodingKeys.self)
        contractVersionId = try container.decodeIfPresent(Int.self, forKey: .contractVersionId)
    }

    public override func encode(to encoder: Encoder) throws {
        try super.encode(to: encoder)
        var container = encoder.container(keyedBy: CodingKeys.self)
        if contractVersionId != nil { try container.encode(contractVersionId, forKey: .contractVersionId) }
    }
}

public class ContractBase : Codable
{
    public var supplierUserId:Int
    public var contractId:Int

    required public init(){}
}

public class ModifyEntityResponse : ResponseBase
{
    public var id:Int

    required public init(){ super.init() }

    private enum CodingKeys : String, CodingKey {
        case id
    }

    required public init(from decoder: Decoder) throws {
        try super.init(from: decoder)
        let container = try decoder.container(keyedBy: CodingKeys.self)
        id = try container.decodeIfPresent(Int.self, forKey: .id)
    }

    public override func encode(to encoder: Encoder) throws {
        try super.encode(to: encoder)
        var container = encoder.container(keyedBy: CodingKeys.self)
        if id != nil { try container.encode(id, forKey: .id) }
    }
}

public class ResponseBase : Codable
{
    public var responseStatus:ResponseStatus

    required public init(){}
}


Swift DeleteContractFileComment DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

DELETE /user/{supplieruserid}/contract/{contractid}/contractversion/{contractversionid}/file/{contractfileid} HTTP/1.1 
Host: szallitoiportal-be.veolia.hu 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"Id":0,"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}