ContentType
public class ContentType : Resource, FlatResource, Decodable, ResourceQueryable
extension ContentType: EndpointAccessible
A ContentType
represents your content model for entries in a Contentful space.
-
The
QueryType
forContentType
is aContentTypeQuery
.Declaration
Swift
public typealias QueryType = ContentTypeQuery
-
System fields.
Declaration
Swift
public let sys: Sys
-
The fields which are part of this content type.
Declaration
Swift
public let fields: [Field]
-
The name of this content type.
Declaration
Swift
public let name: String
-
The description of this content type.
Declaration
Swift
public let description: String?
-
Resource type (“ContentType”).
Declaration
Swift
public var type: String? { get }
-
Declaration
Swift
public required init(from decoder: Decoder) throws
-
The keys used when representing a resource in JSON. These can be used when constructing ContentTypeQuery instance to query against content types.
See moreDeclaration
Swift
public enum QueryableCodingKey : String, CodingKey
-
Declaration
Swift
public static let endpoint: Endpoint