Adds support for website APIs both complex and simple. This commit only supports GET requests to APIs. POST request support can be added on request. Client IDs and secrets are also supported. They can be added via source settings or automatically set by a website endpoint. Also fetch sources for scraping using the backgroundContext and remove some functions from using the main actor. Signed-off-by: kingbri <bdashore3@gmail.com>
23 lines
545 B
Swift
23 lines
545 B
Swift
//
|
|
// SourceComplexQuery+CoreDataProperties.swift
|
|
// Ferrite
|
|
//
|
|
// Created by Brian Dashore on 8/22/22.
|
|
//
|
|
//
|
|
|
|
import CoreData
|
|
import Foundation
|
|
|
|
public extension SourceComplexQuery {
|
|
@nonobjc class func fetchRequest() -> NSFetchRequest<SourceComplexQuery> {
|
|
NSFetchRequest<SourceComplexQuery>(entityName: "SourceComplexQuery")
|
|
}
|
|
|
|
@NSManaged var attribute: String
|
|
@NSManaged var discriminator: String?
|
|
@NSManaged var query: String
|
|
@NSManaged var regex: String?
|
|
}
|
|
|
|
extension SourceComplexQuery: Identifiable {}
|