Bugfix/spelling error #16
No files matched your search
@@ -16,7 +16,7 @@ MarcSyncClient.bekommeVersion = function(self:typeof(MarcSyncClient), clientId:
|
|||||||
return result["version"]
|
return result["version"]
|
||||||
end
|
end
|
||||||
|
|
||||||
MarcSyncClient.erzeugeSammlung = function(self:typeof(MarcSyncClient), collectionName: string):typeof(require(script.Parent.Objects.Sammlung).new())
|
MarcSyncClient.erzeugeSammlung = function(self:typeof(MarcSyncClient), collectionName: string):typeof(require(script.Parent.Objects.Sammlung).neu())
|
||||||
if not self._accessToken then error("[MarkSynchronisation] Bitte legen Sie ein Token fest, bevor Sie MarcSync verwenden.") end
|
if not self._accessToken then error("[MarkSynchronisation] Bitte legen Sie ein Token fest, bevor Sie MarcSync verwenden.") end
|
||||||
if not collectionName then error("Kein CollectionName angegeben") end
|
if not collectionName then error("Kein CollectionName angegeben") end
|
||||||
local result = Utils.macheHypertexttransferprotokollAnfrage("collection", "POST", "https://api.marcsync.dev/v0/collection/"..collectionName, {}, self._accessToken);
|
local result = Utils.macheHypertexttransferprotokollAnfrage("collection", "POST", "https://api.marcsync.dev/v0/collection/"..collectionName, {}, self._accessToken);
|
||||||
@@ -26,7 +26,7 @@ MarcSyncClient.erzeugeSammlung = function(self:typeof(MarcSyncClient), collectio
|
|||||||
|
|
||||||
return result
|
return result
|
||||||
end
|
end
|
||||||
MarcSyncClient.bringeSammlung = function(self:typeof(MarcSyncClient), collectionName: string):typeof(require(script.Parent.Objects.Sammlung).new())
|
MarcSyncClient.bringeSammlung = function(self:typeof(MarcSyncClient), collectionName: string):typeof(require(script.Parent.Objects.Sammlung).neu())
|
||||||
self:_checkInstallation()
|
self:_checkInstallation()
|
||||||
if not collectionName then error("Kein CollectionName angegeben") end
|
if not collectionName then error("Kein CollectionName angegeben") end
|
||||||
local result = Utils.macheHypertexttransferprotokollAnfrage("collection", "GET", "https://api.marcsync.dev/v0/collection/"..collectionName, {}, self._accessToken);
|
local result = Utils.macheHypertexttransferprotokollAnfrage("collection", "GET", "https://api.marcsync.dev/v0/collection/"..collectionName, {}, self._accessToken);
|
||||||
@@ -36,7 +36,7 @@ MarcSyncClient.bringeSammlung = function(self:typeof(MarcSyncClient), collection
|
|||||||
|
|
||||||
return result
|
return result
|
||||||
end
|
end
|
||||||
MarcSyncClient.bekommeSammlung = function(self:typeof(MarcSyncClient), collectionName: string):typeof(require(script.Parent.Objects.Sammlung).new())
|
MarcSyncClient.bekommeSammlung = function(self:typeof(MarcSyncClient), collectionName: string):typeof(require(script.Parent.Objects.Sammlung).neu())
|
||||||
if typeof(self) ~= "table" then error("Bitte verwenden Sie : anstelle von .") end
|
if typeof(self) ~= "table" then error("Bitte verwenden Sie : anstelle von .") end
|
||||||
self:_checkInstallation()
|
self:_checkInstallation()
|
||||||
if not collectionName then error("Kein CollectionName angegeben") end
|
if not collectionName then error("Kein CollectionName angegeben") end
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
local Utils = require(script.Parent.Parent.Dienstprogramme)
|
local Utils = require(script.Parent.Parent.Dienstprogramme)
|
||||||
|
|
||||||
local types = {
|
local types = {
|
||||||
EntryData = require(script.Parent.Parent.Types.EntryData).bekommeRassenindentifikationsspezifizierunginstanztextaufzaehlbar()
|
EntryData = require(script.Parent.Parent.Types.EintragsDaten).bekommeRassenindentifikationsspezifizierunginstanztextaufzaehlbar()
|
||||||
}
|
}
|
||||||
|
|
||||||
local Entry = {}
|
local Entry = {}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
local Utils = require(script.Parent.Parent.Dienstprogramme)
|
local Utils = require(script.Parent.Parent.Dienstprogramme)
|
||||||
local Entry = require(script.Parent.Eintrag)
|
local Entry = require(script.Parent.Entrag)
|
||||||
|
|
||||||
local types = {
|
local types = {
|
||||||
EntryData = require(script.Parent.Parent.Types.EintragsDaten).bekommeRassenindentifikationsspezifizierunginstanztextaufzaehlbar()
|
EntryData = require(script.Parent.Parent.Types.EintragsDaten).bekommeRassenindentifikationsspezifizierunginstanztextaufzaehlbar()
|
||||||
@@ -29,7 +29,7 @@ Collection.aktualisiereEintrag = function(self:typeof(Collection), filters:typeo
|
|||||||
return result["modifiedEntries"]
|
return result["modifiedEntries"]
|
||||||
end
|
end
|
||||||
|
|
||||||
Collection.bekommeEintraege = function(self:typeof(Collection), filters:typeof(types.EntryData)):{[number]:typeof(Entry.new())}
|
Collection.bekommeEintraege = function(self:typeof(Collection), filters:typeof(types.EntryData)):{[number]:typeof(Entry.neu())}
|
||||||
if not self._collectionName then error("[MarkSynchronisation: Sammlung] Ungültiges Objekt erstellt oder versucht, auf ein zerstörtes Objekt zuzugreifen.") end
|
if not self._collectionName then error("[MarkSynchronisation: Sammlung] Ungültiges Objekt erstellt oder versucht, auf ein zerstörtes Objekt zuzugreifen.") end
|
||||||
if not filters then filters = {} end
|
if not filters then filters = {} end
|
||||||
local result = Utils.macheHypertexttransferprotokollAnfrage("eintrag", "DELETE", "https://api.marcsync.dev/v0/entries/"..self._collectionName.."?isQuery=true", {["filters"]=filters}, self._accessToken);
|
local result = Utils.macheHypertexttransferprotokollAnfrage("eintrag", "DELETE", "https://api.marcsync.dev/v0/entries/"..self._collectionName.."?isQuery=true", {["filters"]=filters}, self._accessToken);
|
||||||
|
|||||||
Reference in new issue
Block a user