Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Service Operation: Get EPPN
Name/eppn/eppn-mappings/{EPPN}
DescriptionLookup the mapping for a single EPPN
HTTP MethodGET
Preconditions

Caller must have have a valid OpenID token

Caller clientId must match the domain of the requested EPPN. (ie. If the eppn is jdoe@santarosa.edu, the clientId for the caller must be "santarosa.edu")


Post-conditions
Message Exchange Pattern

Request is received

EPPN mapping is looked up

Mapping is returned

Input


Parameters
EPPNDescriptionThe College EPPN to lookup
TypePath Parameter
RequiredYes
DefaultN/A



Output
DescriptionEPPN Mapping JSON
Data Type


Code Block
languagejs
{
  "authSource": "string",
  "cccId": "string",
  "createTime": "2017-03-24T22:47:08.089Z",
  "downloaded": boolean,
  "eppn": "string"
}


Faults


Faults
UnauthorizedDescriptionCalling service has not been authenticated
Http Status Code401
Additional Information
ForbiddenDescriptionCalling service has been authenticated, but does not have permissions to make this request
HTTP Status Code403
Additional Information


...

Service Operation: Get Mappings Created Since
Name/eppn/eppn-mappings/since/{DATE}
Description

Lookup all mappings that have an authsource matching the clientId of the caller that have been entered since DATE.

HTTP MethodGET
Preconditions

Caller must have have a valid OpenID token

DATE Must be in YYYY-MM-DD format


Post-conditions
Message Exchange Pattern

Request is received

EPPN mappings are looked up

List of mappings is returned

Input


Parameters
DATEDescriptionLookup all EPPN mappings for the given college since DATE (inclusive). Date must be in YYYY-MM-DD format.
TypePath Parameter
RequiredYes
DefaultN/A
pageSizeDescriptionMaximum number of mappings to return per request
TypeQuery Parameter
RequiredNo
Default1000
pageNumberDescription0 based index of the page of records to retrieve
TypeQuery Parameter
RequiredNo
Default0


Output
DescriptionA page of EPPN mappings
Data Type


Code Block
languagejs
{
  "data": [
    {
      "authSource": "string",
      "cccId": "string",
      "createTime": "2017-03-24T22:58:08.904Z",
      "downloaded": boolean,
      "eppn": "string"
    }
  ],
  "pageNumber": integer,
  "pageSize": integer,
  "totalElements": integer
}


Faults


Faults
UnauthorizedDescriptionCalling service has not been authenticated
Http Status Code401
Additional Information
ForbiddenDescriptionCalling service has been authenticated, but does not have permissions to make this request
HTTP Status Code403
Additional Information


...

Service Operation: Get New Mappings
Name/eppn/eppn-mappings/new-mappings
Description

Lookup all mappings that have an authsource matching the clientId of the caller that have not previously been marked as downloaded (See: Service Operation: Mark downloaded)

HTTP MethodGET
Preconditions

Caller must have have a valid OpenID token

Post-conditions
Message Exchange Pattern

Request is received

EPPN mappings are looked up

List of mappings is returned

Input


Parameters
pageSizeDescriptionMaximum number of mappings to return per request
TypeQuery Parameter
RequiredNo
Default1000
pageNumberDescription0 based index of the page of records to retrieve
TypeQuery Parameter
RequiredNo
Default0


Output

DescriptionA page of EPPN mappings
Data Type


Code Block
languagejs
{
  "data": [
    {
      "authSource": "string",
      "cccId": "string",
      "createTime": "2017-03-24T22:58:08.904Z",
      "downloaded": boolean,
      "eppn": "string"
    }
  ],
  "pageNumber": integer,
  "pageSize": integer,
  "totalElements": integer
}


Faults


Faults
UnauthorizedDescriptionCalling service has not been authenticated
Http Status Code401
Additional Information
ForbiddenDescriptionCalling service has been authenticated, but does not have permissions to make this request
HTTP Status Code403
Additional Information


...

Service Operation: Mark Downloaded
Name/eppn/eppn-mappings/batch/downloaded
Description

Mark a set of EPPN mappings as downloaded. This operation affects the data returned from the /eppn/eppn-mappings/new-mappings request.

HTTP MethodPOST
Preconditions

Caller must have have a valid OpenID token

Post-conditions
Message Exchange Pattern

Request is received

EPPN mappings are looked up

List of mappings is returned

Input


Parameters
eppnValsDescriptionAn array of EPPN mappings to mark as having been downloaded.
TypeBody Content
RequiredYes
DefaultN/A
Example["jdoe1@santarosa.edu", "jdoe2@santarosa.com"]


Output
DescriptionAn array of status objects. The array will consist of a single record for each EPPN listed in the request. The "status" field be set to either "Updated" or "Error"
Data Type


Code Block
[
  {
    "entityId": "string" // eppn value
    "status": "string"   // will be either "Updated" or "Error"
  }
]


Faults


Faults
UnauthorizedDescriptionCalling service has not been authenticated
Http Status Code401
Additional Information
ForbiddenDescriptionCalling service has been authenticated, but does not have permissions to make this request
HTTP Status Code403
Additional Information


...