AT - PersonActivity - eksempel
Introduksjon
Eksempelet hvis en respons på en person som har medlemsskap i 2 stk idrettslag.
Forretningsregler
Basert på tilgangen som er gitt kan du få kun medlemsskap knyttet opp til ett spesifikk særforbund, eller ett spesifikt idrettslag.
Eksempler
JSON Request
BuypassID
eller
PersonID med et ekstra nivå på URL /pid/
JSON Response
Merk: ActivityId og Sportid i responsen her er det samme som du finner her: 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
[
{
"orgId": 512430,
"orgName": "Testklubb IR",
"orgTypeId": 5,
"functionTypeIds": [
40000004
],
"organisationNumber": "995518384",
"sports": []
},
{
"orgId": 563529,
"orgName": "Soon Cykleklubb ",
"orgTypeId": 5,
"functionTypeIds": [
10000000
],
"organisationNumber": "993547794",
"sports": [
{
"sportId": 13,
"sportName": "Sykkel",
"activities": [
{
"activityId": 80,
"sportName": "Landevei",
"orgId": 726787
}
],
"parentSfId": 362,
"parentSfName": "Norges Cykleforbund",
"parentRegionId": 735019,
"parentRegionName": "NCF Region Øst",
"parentSFConfederationId": null,
"parentSFConfederationName": null,
"orgId": 563536
}
]
},
{
"orgId": 889079,
"orgName": "NIF Digital BIL",
"orgTypeId": 15,
"functionTypeIds": [
10000000
],
"organisationNumber": "920962017",
"sports": []
},
{
"orgId": 381,
"orgName": "Norges Skiforbund",
"orgTypeId": 2,
"functionTypeIds": [
202413
],
"organisationNumber": "821596572",
"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": 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": "Rulleski",
"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
},
{
"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": "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": 381,
"parentSfName": "Norges Skiforbund",
"parentRegionId": null,
"parentRegionName": null,
"parentSFConfederationId": 684,
"parentSFConfederationName": "Akershus Skikrets",
"orgId": 0
},
{
"sportId": 391,
"sportName": "Skicross",
"activities": null,
"parentSfId": 381,
"parentSfName": "Norges 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
}
]
}
]