Hi Theodor,
Il 19/06/2019 21:34, Theodor Tolstoy ha scritto:
> Hi Zeno!
> The format of the JSON depends on the end goal. What endpoint do you
> intend to hit?
in fact now I'm thinking on a generic way, I need to do a data migration
from a previous ILS.
So I'm seeking a general way to format JSON files with many records.
For example I have to migrate 200,000 user.
I clearly can't create 200,000 files, I'm thinking to create 4 different
files with 50,000 records inside.
An example of my structure inside files for manual blocks,
see https://github.com/jemiller0/Folio/blob/master/FolioLibrary/Block.json:
[{
"type" : "Manual",
"desc" : "Blocco globale che deriva da sospensione UOL",
"expirationDate" : "9999-12-31T23:59:00Z",
"borrowing" : true,
"renewals" : true,
"requests" : true,
"metadata" : {
"createdDate" : "2019-06-19T21:19:43Z",
"reatedByUserId" : "c4b5e97a-0a99-4db9-97df-4fdf406ec74c",
"createdByUsernamee" : "importer",
"updatedDate" : "2019-06-19T21:19:43Z",
"updatedByUserId" : "c4b5e97a-0a99-4db9-97df-4fdf406ec74c",
"updatedByUsername" : "importer"
},
"userId" : "117a078b-de9e-452d-bca5-29ea6da700fd",
"id" : "2863639e-3a07-4854-a048-82aa595749d6"
}, {
....
}, {
"type" : "Manual",
"desc" : "Blocco globale che deriva da sospensione UOL",
"staffInformation" : "rest rit",
"expirationDate" : "2019-05-16T23:59:00Z",
"borrowing" : true,
"renewals" : true,
"requests" : true,
"metadata" : {
"createdDate" : "2019-06-19T21:19:43Z",
"reatedByUserId" : "c4b5e97a-0a99-4db9-97df-4fdf406ec74c",
"createdByUsernamee" : "importer",
"updatedDate" : "2019-06-19T21:19:43Z",
"updatedByUserId" : "c4b5e97a-0a99-4db9-97df-4fdf406ec74c",
"updatedByUsername" : "importer"
},
"userId" : "b5bdd5d1-1a74-47b4-94a8-ba640f69b051",
"id" : "6c68b5d2-67e1-4ec3-ad7f-4a58decc3605"
}]
Is it correct ?
Or is better something like:
{
"manualblocks": [
{
....
}, {
...
}
],
"totalRecords": 2
}
as you can see from here:
https://github.com/folio-org/mod-feesfines/blob/master/ramls/examples/manualblock_collection.sample
Bye
Zeno Tajoli
--
Zeno Tajoli
System Librarian
@CULT Srl
Via Quintino Sella, 33 - 00187 Roma
Tel +39 06 89873504 - Fax +39 06 89873496
zeno.tajoli@atcult.it
www.atcult.it
Questo messaggio è destinato alle sole persone indicate e può contenere
informazioni riservate.
Ogni altro uso del messaggio è vietato. Se avete ricevuto questa e-mail
per errore, siete pregati
di cancellare l'originale e comunicarcelo immediatamente via e-mail
all'indirizzo info@atcult.it
------------------------------------------------------
You received this message because you are subscribed to OLE Mailing List
"sysops-sig".
To unsubscribe from this list and stop receiving emails from it, follow
this link: http://www.simplelists.com/confirm.php?u=bgv2YVoyMpb9D89f2mzNI9NI2aBKg46q.
To post to this group, send email to
sysops-sig@ole-lists.openlibraryfoundation.org
<mailto:sysops-sig@ole-lists.openlibraryfoundation.org>.
Visit this group at
https://ole-lists.openlibraryfoundation.org<https://ole-lists.openlibraryfoundation.org>
.