...
Eksempelet hvis en respons på en person som har medlemsksap medlemsskap i 2 stk idrettslag.
Forretningsregler
...
JSON Response
Merk: ActivityId og Sportid i responsen her er det samme som du finner her: Liste over sportsgrener Sportsgrener med ID (SportID)
Siste organisasjonsobjektet i eksempelet er et særforbund. Her er det utlistinger av alle grener/sports som er tilknyttet forbundet. Dette er ikke organisasjoner, men opptrer som organisasjoner i responsen. Objektene har derfor null/0 på orgids. Men, parentid linker tilbake til særforbundet. Dette gjelder også særkrets. Skille på dette ser du på orgtypeid. Se mer om organisasjoner her: Organisasjonstyper og organisasjonskart
Code Block | ||
---|---|---|
| ||
[ { "orgId": 512430, "orgName": "Testklubb IR", "orgTypeId": 5, "functionTypeIds": [ 40000004 ], "organisationNumber": "995518384", "sports": [] }, { "orgId": 19902563529, "orgName": "Soon Cykleklubb Tennisklubb", "orgTypeId": 5, "functionTypeIds": [ 10000000 ], "organisationNumber": "884955882993547794", "sports": [ { "sportId": 3613, "sportName": "TennisSykkel", "activities": [ { "activityId": 21980, "sportName": "Landevei", "TennisorgId": 726787 } ], "parentSfId": 385362, "parentSfName": "Norges TennisforbundCykleforbund", "parentRegionId": 610598735019, "parentRegionName": "TennisregionNCF ØstlandRegion Øst", "parentSFConfederationId": null, "parentSFConfederationName": null, "orgId": 563536 } ] }, { "orgId": 563529889079, "orgName": "SoonNIF Digital CykleklubbBIL", "orgTypeId": 515, "functionTypeIds": [ 10000000 ], "organisationNumber": "920962017", "sports": [] }, { "orgId": 381, "orgName": "Norges Skiforbund", "orgTypeId": 2, "functionTypeIds": [ 202413 ], "organisationNumber": "993547794821596572", "sports": [ { "sportId": 32, "sportName": "Ski", "activities": null, "parentSfId": 381, "parentSfName": "Norges Skiforbund", "parentRegionId": null, "parentRegionName": null, "parentSFConfederationId": null, "parentSFConfederationName": null, "orgId": 0 }, { "sportId": 129, "sportName": "Hopp", "activities": null, "parentSfId": 381, "parentSfName": "Norges Skiforbund", "parentRegionId": null, "parentRegionName": null, "parentSFConfederationId": 13 null, "parentSFConfederationName": null, "orgId": 0 }, { "sportId": 130, "sportName": "Langrenn", "activities": null, "parentSfId": 381, "parentSfName": "Norges Skiforbund", "parentRegionId": null, "parentRegionName": null, "parentSFConfederationId": null, "parentSFConfederationName": null, "orgId": 0 }, { "sportId": 131, "sportName": "Kombinert", "activities": null, "parentSfId": 381, "parentSfName": "Norges Skiforbund", "parentRegionId": null, "parentRegionName": null, "parentSFConfederationId": null, "parentSFConfederationName": null, "orgId": 0 }, { "sportId": 132, "sportName": "Alpint", "activities": null, "parentSfId": 381, "parentSfName": "Norges Skiforbund", "parentRegionId": null, "parentRegionName": null, "parentSFConfederationId": null, "parentSFConfederationName": null, "orgId": 0 }, { "sportId": 133, "sportName": "Telemark", "activities": null, "parentSfId": 381, "parentSfName": "Norges Skiforbund", "parentRegionId": null, "parentRegionName": null, "parentSFConfederationId": null, "parentSFConfederationName": null, "orgId": 0 }, { "sportId": 134, "sportName": "Freestyle", "activities": null, "parentSfId": 381, "parentSfName": "Norges Skiforbund", "parentRegionId": null, "parentRegionName": null, "parentSFConfederationId": null, "parentSFConfederationName": null, "orgId": 0 }, { "sportId": 250, "sportName": "Turrenn", "activities": null, "parentSfId": 381, "parentSfName": "Norges Skiforbund", "parentRegionId": null, "parentRegionName": null, "parentSFConfederationId": null, "parentSFConfederationName": null, "orgId": 0 }, { "sportId": 389, "sportName": "Randonee", "activities": null, "parentSfId": 381, "parentSfName": "Norges Skiforbund", "parentRegionId": null, "parentRegionName": null, "parentSFConfederationId": null, "parentSFConfederationName": null, "orgId": 0 }, { "sportId": 390, "sportName": "Kulekjøring", "activities": null, "parentSfId": 381, "parentSfName": "Norges Skiforbund", "parentRegionId": null, "parentRegionName": null, "parentSFConfederationId": null, "parentSFConfederationName": null, "orgId": 0 }, { "sportId": 391, "sportName": "Skicross", "activities": null, "parentSfId": 381, "parentSfName": "Norges Skiforbund", "parentRegionId": null, "parentRegionName": null, "parentSFConfederationId": null, "parentSFConfederationName": null, "orgId": 0 }, { "sportId": 392, "sportName": "Freeski", "activities": null, "parentSfId": 381, "parentSfName": "Norges Skiforbund", "parentRegionId": null, "parentRegionName": null, "parentSFConfederationId": null, "parentSFConfederationName": null, "orgId": 0 }, { "sportId": 446, "sportName": "SykkelRulleski", "activities": null, "parentSfId": 381, "parentSfName": "Norges Skiforbund", "parentRegionId": null, "parentRegionName": null, "parentSFConfederationId": null, "parentSFConfederationName": null, "orgId": 0 } ] }, { "orgId": 684, "orgName": "Akershus Skikrets", "orgTypeId": 4, "functionTypeIds": [ 40000001 ], "organisationNumber": "984559461", "sports": [ { "sportId": 32, "sportName": "Ski", "activities": null, "parentSfId": 381, "parentSfName": "Norges Skiforbund", "parentRegionId": null, "parentRegionName": null, "parentSFConfederationId": 684, "parentSFConfederationName": "Akershus Skikrets", "orgId": 0 }, { "sportId": 129, "sportName": "Hopp", "activities": null, "parentSfId": 381, "parentSfName": "Norges Skiforbund", "parentRegionId": null, "parentRegionName": null, "parentSFConfederationId": 684, "parentSFConfederationName": "Akershus Skikrets", "orgId": 0 }, { "sportId": 130, "sportName": "Langrenn", "activities": null, "parentSfId": 381, "parentSfName": "Norges Skiforbund", "parentRegionId": null, "parentRegionName": null, "parentSFConfederationId": 684, "parentSFConfederationName": "Akershus Skikrets", "orgId": 0 }, { "sportId": 131, "sportName": "Kombinert", "activities": null, "parentSfId": 381, "parentSfName": "Norges Skiforbund", "parentRegionId": null, "parentRegionName": null, "parentSFConfederationId": 684, "parentSFConfederationName": "Akershus Skikrets", "orgId": 0 }, { "sportId": 132, "sportName": "Alpint", "activities": null, "parentSfId": 381, "parentSfName": "Norges Skiforbund", "parentRegionId": null, "parentRegionName": null, "parentSFConfederationId": 684, "parentSFConfederationName": "Akershus Skikrets", "orgId": 0 }, { "sportId": 133, "sportName": "Telemark", "activities": null, "parentSfId": 381, "parentSfName": "Norges Skiforbund", "parentRegionId": null, "parentRegionName": null, "parentSFConfederationId": 684, "parentSFConfederationName": "Akershus Skikrets", "orgId": 0 }, { "sportId": 134, "sportName": "Freestyle", "activities": null, "parentSfId": 381, "parentSfName": "Norges Skiforbund", "parentRegionId": null, "parentRegionName": null, "parentSFConfederationId": 684, "parentSFConfederationName": "Akershus Skikrets", "orgId": 0 }, { "activityId": 80, "sportId": 250, "sportName": "Turrenn", "activities": null, "parentSfId": 381, "parentSfName": "Norges Skiforbund", "parentRegionId": null, "parentRegionName": null, "parentSFConfederationId": 684, "parentSFConfederationName": "Akershus Skikrets", "orgId": 0 }, { "sportId": 389, "sportName": "Landevei" ": "Randonee", "activities": null, "parentSfId": 381, "parentSfName": "Norges Skiforbund", "parentRegionId": null, "parentRegionName": null, "parentSFConfederationId": 684, "parentSFConfederationName": "Akershus Skikrets", "orgId": 0 }, { "sportId": 390, "sportName": ]"Kulekjøring", "activities": null, "parentSfId": 362381, "parentSfName": "Norges CykleforbundSkiforbund", "parentRegionId": 735019null, "parentRegionName": null, "parentSFConfederationId": 684, "parentSFConfederationName": "Akershus Skikrets", "orgId": 0 }, { "sportId": 391, "sportName": "Skicross", "activities": null, "parentSfId": 381, "parentSfName": "Norges "NCF Region Øst"Skiforbund", "parentRegionId": null, "parentRegionName": null, "parentSFConfederationId": 684, "parentSFConfederationName": "Akershus Skikrets", "orgId": 0 }, { "sportId": 392, "sportName": "Freeski", "activities": null, "parentSfId": 381, "parentSfName": "Norges Skiforbund", "parentRegionId": null, "parentRegionName": null, "parentSFConfederationId": 684, "parentSFConfederationName": "Akershus Skikrets", "orgId": 0 }, { "sportId": 446, "sportName": "Rulleski", "activities": null, "parentSfId": 381, "parentSfName": "Norges Skiforbund", "parentRegionId": null, "parentRegionName": null, "parentSFConfederationId": 684, "parentSFConfederationName": "Akershus Skikrets", "orgId": 0 } ] } ] |