Skip to content

Latest commit

 

History

History
452 lines (327 loc) · 31.6 KB

EducationOrganizationInterventionPrescriptionAssociationsApi.md

File metadata and controls

452 lines (327 loc) · 31.6 KB

edfi_resources_sdk.api.EducationOrganizationInterventionPrescriptionAssociationsApi

Load the API package

import 'package:edfi_resources_sdk/api.dart';

All URIs are relative to https://api.ed-fi.org:443/v7.3/api/data/v3

Method HTTP request Description
deleteEducationOrganizationInterventionPrescriptionAssociationById DELETE /ed-fi/educationOrganizationInterventionPrescriptionAssociations/{id} Deletes an existing resource using the resource identifier.
deletesEducationOrganizationInterventionPrescriptionAssociations GET /ed-fi/educationOrganizationInterventionPrescriptionAssociations/deletes Retrieves deleted resources based on change version.
getEducationOrganizationInterventionPrescriptionAssociations GET /ed-fi/educationOrganizationInterventionPrescriptionAssociations Retrieves specific resources using the resource's property values (using the "Get" pattern).
getEducationOrganizationInterventionPrescriptionAssociationsById GET /ed-fi/educationOrganizationInterventionPrescriptionAssociations/{id} Retrieves a specific resource using the resource's identifier (using the "Get By Id" pattern).
getEducationOrganizationInterventionPrescriptionAssociationsPartitions GET /ed-fi/educationOrganizationInterventionPrescriptionAssociations/partitions Retrieves a set of page tokens to be used for efficient client-side parallel processing.
keyChangesEducationOrganizationInterventionPrescriptionAssociations GET /ed-fi/educationOrganizationInterventionPrescriptionAssociations/keyChanges Retrieves resources key changes based on change version.
postEducationOrganizationInterventionPrescriptionAssociation POST /ed-fi/educationOrganizationInterventionPrescriptionAssociations Creates or updates resources based on the natural key values of the supplied resource.
putEducationOrganizationInterventionPrescriptionAssociation PUT /ed-fi/educationOrganizationInterventionPrescriptionAssociations/{id} Updates a resource based on the resource identifier.

deleteEducationOrganizationInterventionPrescriptionAssociationById

deleteEducationOrganizationInterventionPrescriptionAssociationById(id, ifMatch)

Deletes an existing resource using the resource identifier.

The DELETE operation is used to delete an existing resource by identifier. If the resource doesn't exist, an error will result (the resource will not be found).

Example

import 'package:edfi_resources_sdk/api.dart';
// TODO Configure OAuth2 access token for authorization: oauth2_client_credentials
//defaultApiClient.getAuthentication<OAuth>('oauth2_client_credentials').accessToken = 'YOUR_ACCESS_TOKEN';

final api_instance = EducationOrganizationInterventionPrescriptionAssociationsApi();
final id = id_example; // String | A resource identifier that uniquely identifies the resource.
final ifMatch = ifMatch_example; // String | The ETag header value used to prevent the DELETE from removing a resource modified by another consumer.

try {
    api_instance.deleteEducationOrganizationInterventionPrescriptionAssociationById(id, ifMatch);
} catch (e) {
    print('Exception when calling EducationOrganizationInterventionPrescriptionAssociationsApi->deleteEducationOrganizationInterventionPrescriptionAssociationById: $e\n');
}

Parameters

Name Type Description Notes
id String A resource identifier that uniquely identifies the resource.
ifMatch String The ETag header value used to prevent the DELETE from removing a resource modified by another consumer. [optional]

Return type

void (empty response body)

Authorization

oauth2_client_credentials

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

deletesEducationOrganizationInterventionPrescriptionAssociations

List deletesEducationOrganizationInterventionPrescriptionAssociations(offset, limit, minChangeVersion, maxChangeVersion, totalCount, useSnapshot)

Retrieves deleted resources based on change version.

This operation is used to retrieve identifying information about resources that have been deleted.

Example

import 'package:edfi_resources_sdk/api.dart';
// TODO Configure OAuth2 access token for authorization: oauth2_client_credentials
//defaultApiClient.getAuthentication<OAuth>('oauth2_client_credentials').accessToken = 'YOUR_ACCESS_TOKEN';

final api_instance = EducationOrganizationInterventionPrescriptionAssociationsApi();
final offset = 56; // int | Indicates how many items should be skipped before returning results.
final limit = 56; // int | Indicates the maximum number of items that should be returned in the results.
final minChangeVersion = 789; // int | Used in synchronization to set sequence minimum ChangeVersion
final maxChangeVersion = 789; // int | Used in synchronization to set sequence maximum ChangeVersion
final totalCount = true; // bool | Indicates if the total number of items available should be returned in the 'Total-Count' header of the response.  If set to false, 'Total-Count' header will not be provided. Must be false when using cursor paging (with pageToken).
final useSnapshot = true; // bool | Indicates if the configured Snapshot should be used.

try {
    final result = api_instance.deletesEducationOrganizationInterventionPrescriptionAssociations(offset, limit, minChangeVersion, maxChangeVersion, totalCount, useSnapshot);
    print(result);
} catch (e) {
    print('Exception when calling EducationOrganizationInterventionPrescriptionAssociationsApi->deletesEducationOrganizationInterventionPrescriptionAssociations: $e\n');
}

Parameters

Name Type Description Notes
offset int Indicates how many items should be skipped before returning results. [optional]
limit int Indicates the maximum number of items that should be returned in the results. [optional] [default to 25]
minChangeVersion int Used in synchronization to set sequence minimum ChangeVersion [optional]
maxChangeVersion int Used in synchronization to set sequence maximum ChangeVersion [optional]
totalCount bool Indicates if the total number of items available should be returned in the 'Total-Count' header of the response. If set to false, 'Total-Count' header will not be provided. Must be false when using cursor paging (with pageToken). [optional] [default to false]
useSnapshot bool Indicates if the configured Snapshot should be used. [optional] [default to false]

Return type

List

Authorization

oauth2_client_credentials

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

getEducationOrganizationInterventionPrescriptionAssociations

List getEducationOrganizationInterventionPrescriptionAssociations(offset, limit, pageToken, pageSize, minChangeVersion, maxChangeVersion, totalCount, educationOrganizationId, interventionPrescriptionEducationOrganizationId, interventionPrescriptionIdentificationCode, beginDate, endDate, id, useSnapshot)

Retrieves specific resources using the resource's property values (using the "Get" pattern).

This GET operation provides access to resources using the "Get" search pattern. The values of any properties of the resource that are specified will be used to return all matching results (if it exists).

Example

import 'package:edfi_resources_sdk/api.dart';
// TODO Configure OAuth2 access token for authorization: oauth2_client_credentials
//defaultApiClient.getAuthentication<OAuth>('oauth2_client_credentials').accessToken = 'YOUR_ACCESS_TOKEN';

final api_instance = EducationOrganizationInterventionPrescriptionAssociationsApi();
final offset = 56; // int | Indicates how many items should be skipped before returning results.
final limit = 56; // int | Indicates the maximum number of items that should be returned in the results.
final pageToken = pageToken_example; // String | The token of the page to retrieve, obtained either from the \"Next-Page-Token\" header of the previous request, or from the \"partitions\" endpoint for the resource. Cannot be used with limit/offset paging.
final pageSize = 56; // int | The maximum number of items to retrieve in the page. For use with pageToken (cursor paging) only.
final minChangeVersion = 789; // int | Used in synchronization to set sequence minimum ChangeVersion
final maxChangeVersion = 789; // int | Used in synchronization to set sequence maximum ChangeVersion
final totalCount = true; // bool | Indicates if the total number of items available should be returned in the 'Total-Count' header of the response.  If set to false, 'Total-Count' header will not be provided. Must be false when using cursor paging (with pageToken).
final educationOrganizationId = 789; // int | The identifier assigned to an education organization.
final interventionPrescriptionEducationOrganizationId = 789; // int | The identifier assigned to an education organization.
final interventionPrescriptionIdentificationCode = interventionPrescriptionIdentificationCode_example; // String | A unique number or alphanumeric code assigned to an intervention prescription.
final beginDate = 2013-10-20; // DateTime | The begin date of the period during which the intervention prescription is available.  Note: Date interpretation may vary. Ed-Fi recommends inclusive dates, but states may define dates as inclusive or exclusive. For calculations, align with local guidelines.
final endDate = 2013-10-20; // DateTime | The end date of the period during which the intervention prescription is available.  Note: Date interpretation may vary. Ed-Fi recommends inclusive dates, but states may define dates as inclusive or exclusive. For calculations, align with local guidelines.
final id = id_example; // String | 
final useSnapshot = true; // bool | Indicates if the configured Snapshot should be used.

try {
    final result = api_instance.getEducationOrganizationInterventionPrescriptionAssociations(offset, limit, pageToken, pageSize, minChangeVersion, maxChangeVersion, totalCount, educationOrganizationId, interventionPrescriptionEducationOrganizationId, interventionPrescriptionIdentificationCode, beginDate, endDate, id, useSnapshot);
    print(result);
} catch (e) {
    print('Exception when calling EducationOrganizationInterventionPrescriptionAssociationsApi->getEducationOrganizationInterventionPrescriptionAssociations: $e\n');
}

Parameters

Name Type Description Notes
offset int Indicates how many items should be skipped before returning results. [optional]
limit int Indicates the maximum number of items that should be returned in the results. [optional] [default to 25]
pageToken String The token of the page to retrieve, obtained either from the "Next-Page-Token" header of the previous request, or from the "partitions" endpoint for the resource. Cannot be used with limit/offset paging. [optional]
pageSize int The maximum number of items to retrieve in the page. For use with pageToken (cursor paging) only. [optional] [default to 25]
minChangeVersion int Used in synchronization to set sequence minimum ChangeVersion [optional]
maxChangeVersion int Used in synchronization to set sequence maximum ChangeVersion [optional]
totalCount bool Indicates if the total number of items available should be returned in the 'Total-Count' header of the response. If set to false, 'Total-Count' header will not be provided. Must be false when using cursor paging (with pageToken). [optional] [default to false]
educationOrganizationId int The identifier assigned to an education organization. [optional]
interventionPrescriptionEducationOrganizationId int The identifier assigned to an education organization. [optional]
interventionPrescriptionIdentificationCode String A unique number or alphanumeric code assigned to an intervention prescription. [optional]
beginDate DateTime The begin date of the period during which the intervention prescription is available. Note: Date interpretation may vary. Ed-Fi recommends inclusive dates, but states may define dates as inclusive or exclusive. For calculations, align with local guidelines. [optional]
endDate DateTime The end date of the period during which the intervention prescription is available. Note: Date interpretation may vary. Ed-Fi recommends inclusive dates, but states may define dates as inclusive or exclusive. For calculations, align with local guidelines. [optional]
id String [optional]
useSnapshot bool Indicates if the configured Snapshot should be used. [optional] [default to false]

Return type

List

Authorization

oauth2_client_credentials

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

getEducationOrganizationInterventionPrescriptionAssociationsById

EdFiEducationOrganizationInterventionPrescriptionAssociation getEducationOrganizationInterventionPrescriptionAssociationsById(id, ifNoneMatch, useSnapshot)

Retrieves a specific resource using the resource's identifier (using the "Get By Id" pattern).

This GET operation retrieves a resource by the specified resource identifier.

Example

import 'package:edfi_resources_sdk/api.dart';
// TODO Configure OAuth2 access token for authorization: oauth2_client_credentials
//defaultApiClient.getAuthentication<OAuth>('oauth2_client_credentials').accessToken = 'YOUR_ACCESS_TOKEN';

final api_instance = EducationOrganizationInterventionPrescriptionAssociationsApi();
final id = id_example; // String | A resource identifier that uniquely identifies the resource.
final ifNoneMatch = ifNoneMatch_example; // String | The previously returned ETag header value, used here to prevent the unnecessary data transfer of an unchanged resource.
final useSnapshot = true; // bool | Indicates if the configured Snapshot should be used.

try {
    final result = api_instance.getEducationOrganizationInterventionPrescriptionAssociationsById(id, ifNoneMatch, useSnapshot);
    print(result);
} catch (e) {
    print('Exception when calling EducationOrganizationInterventionPrescriptionAssociationsApi->getEducationOrganizationInterventionPrescriptionAssociationsById: $e\n');
}

Parameters

Name Type Description Notes
id String A resource identifier that uniquely identifies the resource.
ifNoneMatch String The previously returned ETag header value, used here to prevent the unnecessary data transfer of an unchanged resource. [optional]
useSnapshot bool Indicates if the configured Snapshot should be used. [optional] [default to false]

Return type

EdFiEducationOrganizationInterventionPrescriptionAssociation

Authorization

oauth2_client_credentials

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

getEducationOrganizationInterventionPrescriptionAssociationsPartitions

GetAcademicWeeksPartitions200Response getEducationOrganizationInterventionPrescriptionAssociationsPartitions(number, minChangeVersion, maxChangeVersion, educationOrganizationId, interventionPrescriptionEducationOrganizationId, interventionPrescriptionIdentificationCode, beginDate, endDate, id, useSnapshot)

Retrieves a set of page tokens to be used for efficient client-side parallel processing.

Computes an evenly distributed set of partitions over the accessible data and returns a set of page tokens, each representing the first page of one of the partitions.

Example

import 'package:edfi_resources_sdk/api.dart';
// TODO Configure OAuth2 access token for authorization: oauth2_client_credentials
//defaultApiClient.getAuthentication<OAuth>('oauth2_client_credentials').accessToken = 'YOUR_ACCESS_TOKEN';

final api_instance = EducationOrganizationInterventionPrescriptionAssociationsApi();
final number = 56; // int | The number of evenly distributed partitions to provide for client-side parallel processing. If unspecified, a reasonable set of partitions will be determined based on the total number of accessible items.
final minChangeVersion = 789; // int | Used in synchronization to set sequence minimum ChangeVersion
final maxChangeVersion = 789; // int | Used in synchronization to set sequence maximum ChangeVersion
final educationOrganizationId = 789; // int | The identifier assigned to an education organization.
final interventionPrescriptionEducationOrganizationId = 789; // int | The identifier assigned to an education organization.
final interventionPrescriptionIdentificationCode = interventionPrescriptionIdentificationCode_example; // String | A unique number or alphanumeric code assigned to an intervention prescription.
final beginDate = 2013-10-20; // DateTime | The begin date of the period during which the intervention prescription is available.  Note: Date interpretation may vary. Ed-Fi recommends inclusive dates, but states may define dates as inclusive or exclusive. For calculations, align with local guidelines.
final endDate = 2013-10-20; // DateTime | The end date of the period during which the intervention prescription is available.  Note: Date interpretation may vary. Ed-Fi recommends inclusive dates, but states may define dates as inclusive or exclusive. For calculations, align with local guidelines.
final id = id_example; // String | 
final useSnapshot = true; // bool | Indicates if the configured Snapshot should be used.

try {
    final result = api_instance.getEducationOrganizationInterventionPrescriptionAssociationsPartitions(number, minChangeVersion, maxChangeVersion, educationOrganizationId, interventionPrescriptionEducationOrganizationId, interventionPrescriptionIdentificationCode, beginDate, endDate, id, useSnapshot);
    print(result);
} catch (e) {
    print('Exception when calling EducationOrganizationInterventionPrescriptionAssociationsApi->getEducationOrganizationInterventionPrescriptionAssociationsPartitions: $e\n');
}

Parameters

Name Type Description Notes
number int The number of evenly distributed partitions to provide for client-side parallel processing. If unspecified, a reasonable set of partitions will be determined based on the total number of accessible items. [optional]
minChangeVersion int Used in synchronization to set sequence minimum ChangeVersion [optional]
maxChangeVersion int Used in synchronization to set sequence maximum ChangeVersion [optional]
educationOrganizationId int The identifier assigned to an education organization. [optional]
interventionPrescriptionEducationOrganizationId int The identifier assigned to an education organization. [optional]
interventionPrescriptionIdentificationCode String A unique number or alphanumeric code assigned to an intervention prescription. [optional]
beginDate DateTime The begin date of the period during which the intervention prescription is available. Note: Date interpretation may vary. Ed-Fi recommends inclusive dates, but states may define dates as inclusive or exclusive. For calculations, align with local guidelines. [optional]
endDate DateTime The end date of the period during which the intervention prescription is available. Note: Date interpretation may vary. Ed-Fi recommends inclusive dates, but states may define dates as inclusive or exclusive. For calculations, align with local guidelines. [optional]
id String [optional]
useSnapshot bool Indicates if the configured Snapshot should be used. [optional] [default to false]

Return type

GetAcademicWeeksPartitions200Response

Authorization

oauth2_client_credentials

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

keyChangesEducationOrganizationInterventionPrescriptionAssociations

List keyChangesEducationOrganizationInterventionPrescriptionAssociations(offset, limit, minChangeVersion, maxChangeVersion, totalCount, useSnapshot)

Retrieves resources key changes based on change version.

This operation is used to retrieve identifying information about resources whose key values have been changed.

Example

import 'package:edfi_resources_sdk/api.dart';
// TODO Configure OAuth2 access token for authorization: oauth2_client_credentials
//defaultApiClient.getAuthentication<OAuth>('oauth2_client_credentials').accessToken = 'YOUR_ACCESS_TOKEN';

final api_instance = EducationOrganizationInterventionPrescriptionAssociationsApi();
final offset = 56; // int | Indicates how many items should be skipped before returning results.
final limit = 56; // int | Indicates the maximum number of items that should be returned in the results.
final minChangeVersion = 789; // int | Used in synchronization to set sequence minimum ChangeVersion
final maxChangeVersion = 789; // int | Used in synchronization to set sequence maximum ChangeVersion
final totalCount = true; // bool | Indicates if the total number of items available should be returned in the 'Total-Count' header of the response.  If set to false, 'Total-Count' header will not be provided. Must be false when using cursor paging (with pageToken).
final useSnapshot = true; // bool | Indicates if the configured Snapshot should be used.

try {
    final result = api_instance.keyChangesEducationOrganizationInterventionPrescriptionAssociations(offset, limit, minChangeVersion, maxChangeVersion, totalCount, useSnapshot);
    print(result);
} catch (e) {
    print('Exception when calling EducationOrganizationInterventionPrescriptionAssociationsApi->keyChangesEducationOrganizationInterventionPrescriptionAssociations: $e\n');
}

Parameters

Name Type Description Notes
offset int Indicates how many items should be skipped before returning results. [optional]
limit int Indicates the maximum number of items that should be returned in the results. [optional] [default to 25]
minChangeVersion int Used in synchronization to set sequence minimum ChangeVersion [optional]
maxChangeVersion int Used in synchronization to set sequence maximum ChangeVersion [optional]
totalCount bool Indicates if the total number of items available should be returned in the 'Total-Count' header of the response. If set to false, 'Total-Count' header will not be provided. Must be false when using cursor paging (with pageToken). [optional] [default to false]
useSnapshot bool Indicates if the configured Snapshot should be used. [optional] [default to false]

Return type

List

Authorization

oauth2_client_credentials

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

postEducationOrganizationInterventionPrescriptionAssociation

postEducationOrganizationInterventionPrescriptionAssociation(edFiEducationOrganizationInterventionPrescriptionAssociation)

Creates or updates resources based on the natural key values of the supplied resource.

The POST operation can be used to create or update resources. In database terms, this is often referred to as an "upsert" operation (insert + update). Clients should NOT include the resource "id" in the JSON body because it will result in an error. The web service will identify whether the resource already exists based on the natural key values provided, and update or create the resource appropriately. It is recommended to use POST for both create and update except while updating natural key of a resource in which case PUT operation must be used.

Example

import 'package:edfi_resources_sdk/api.dart';
// TODO Configure OAuth2 access token for authorization: oauth2_client_credentials
//defaultApiClient.getAuthentication<OAuth>('oauth2_client_credentials').accessToken = 'YOUR_ACCESS_TOKEN';

final api_instance = EducationOrganizationInterventionPrescriptionAssociationsApi();
final edFiEducationOrganizationInterventionPrescriptionAssociation = EdFiEducationOrganizationInterventionPrescriptionAssociation(); // EdFiEducationOrganizationInterventionPrescriptionAssociation | The JSON representation of the \"educationOrganizationInterventionPrescriptionAssociation\" resource to be created or updated.

try {
    api_instance.postEducationOrganizationInterventionPrescriptionAssociation(edFiEducationOrganizationInterventionPrescriptionAssociation);
} catch (e) {
    print('Exception when calling EducationOrganizationInterventionPrescriptionAssociationsApi->postEducationOrganizationInterventionPrescriptionAssociation: $e\n');
}

Parameters

Name Type Description Notes
edFiEducationOrganizationInterventionPrescriptionAssociation EdFiEducationOrganizationInterventionPrescriptionAssociation The JSON representation of the "educationOrganizationInterventionPrescriptionAssociation" resource to be created or updated.

Return type

void (empty response body)

Authorization

oauth2_client_credentials

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

putEducationOrganizationInterventionPrescriptionAssociation

putEducationOrganizationInterventionPrescriptionAssociation(id, edFiEducationOrganizationInterventionPrescriptionAssociation, ifMatch)

Updates a resource based on the resource identifier.

The PUT operation is used to update a resource by identifier. If the resource identifier ("id") is provided in the JSON body, it will be ignored. Additionally, this API resource is not configured for cascading natural key updates. Natural key values for this resource cannot be changed using PUT operation, so the recommendation is to use POST as that supports upsert behavior.

Example

import 'package:edfi_resources_sdk/api.dart';
// TODO Configure OAuth2 access token for authorization: oauth2_client_credentials
//defaultApiClient.getAuthentication<OAuth>('oauth2_client_credentials').accessToken = 'YOUR_ACCESS_TOKEN';

final api_instance = EducationOrganizationInterventionPrescriptionAssociationsApi();
final id = id_example; // String | A resource identifier that uniquely identifies the resource.
final edFiEducationOrganizationInterventionPrescriptionAssociation = EdFiEducationOrganizationInterventionPrescriptionAssociation(); // EdFiEducationOrganizationInterventionPrescriptionAssociation | The JSON representation of the \"educationOrganizationInterventionPrescriptionAssociation\" resource to be created or updated.
final ifMatch = ifMatch_example; // String | The ETag header value used to prevent the PUT from updating a resource modified by another consumer.

try {
    api_instance.putEducationOrganizationInterventionPrescriptionAssociation(id, edFiEducationOrganizationInterventionPrescriptionAssociation, ifMatch);
} catch (e) {
    print('Exception when calling EducationOrganizationInterventionPrescriptionAssociationsApi->putEducationOrganizationInterventionPrescriptionAssociation: $e\n');
}

Parameters

Name Type Description Notes
id String A resource identifier that uniquely identifies the resource.
edFiEducationOrganizationInterventionPrescriptionAssociation EdFiEducationOrganizationInterventionPrescriptionAssociation The JSON representation of the "educationOrganizationInterventionPrescriptionAssociation" resource to be created or updated.
ifMatch String The ETag header value used to prevent the PUT from updating a resource modified by another consumer. [optional]

Return type

void (empty response body)

Authorization

oauth2_client_credentials

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]