swagger: '2.0'
info:
version: v2
title: Students Basic Student Info
description:
Basic Student information from the Office of the Registrar. This endpoint is meant to return name, email address,
and some relatively static registration information.
The BasicAuth header is a base64-encoded(ucsbNetId:password) combination. The ucsbNetId/password
combination should be of a service account registered with the Campus Identity systems (ETS, the Campus LDAP).
This ucsbNetId needs to be supplied to the Office of the Registrar as part of the approval process.
host: api.ucsb.edu
basePath: /students
schemes:
- https
securityDefinitions:
ucsb-api-key:
name: ucsb-api-key
in: header
type: apiKey
BasicAuth:
type: basic
security:
- ucsb-api-key: []
- BasicAuth: []
paths:
'/students/v2/students/{perm}':
get:
tags:
- Students
operationId: '/students/v2/students/{perm}'
consumes: []
produces:
- application/json
- text/json
parameters:
- name: perm
in: path
description: Students perm identifier
required: true
type: string
- name: ucsb-user-jwt
in: header
description: Used when an application is required to provide an End User Token. Only the data for the student indicated by the End User Token will be retrieved.
required: false
type: string
- name: ucsb-api-version
in: header
description: Specific api version to use.
required: false
type: string
default: '2.0'
responses:
'200':
description: 'A basic student information object is returned. With appropriate approval, an extended student information object is returned.'
schema:
$ref: '#/definitions/StudentExtended'
'400':
description: Bad or malformed request. See response body for details.
schema:
$ref: '#/definitions/WebApiInvalidModel'
'401':
description: Unauthorized. See response body for details.
schema:
$ref: '#/definitions/SimpleMessageModel'
'404':
description: Resource cannot be found. See response body for details.
schema:
$ref: '#/definitions/SimpleMessageModel'
description:
Retrieve basic student information for an individual student.
This endpoint is meant to return name, email address,
and some relatively static registration information.
/students/v2/students/current:
get:
tags:
- Students
operationId: /students/v2/students/current
consumes: []
produces:
- application/json
- text/json
parameters:
- name: ucsb-user-jwt
in: header
description: Used when an application is required to provide an End User Token. Only the data for the student indicated by the End User Token will be retrieved.
required: true
type: string
- name: ucsb-api-version
in: header
description: Specific api version to use.
required: false
type: string
default: '2.0'
responses:
'200':
description: 'A basic student information object is returned. With appropriate approval, an extended student information object is returned.'
schema:
$ref: '#/definitions/StudentMinimal'
'400':
description: Bad or malformed request. See response body for details.
schema:
$ref: '#/definitions/WebApiInvalidModel'
'401':
description: Unauthorized. See response body for details.
schema:
$ref: '#/definitions/SimpleMessageModel'
'404':
description: Resource cannot be found. See response body for details.
schema:
$ref: '#/definitions/SimpleMessageModel'
description:
Retrieve basic student information about the individual who is currently calling
this endpoint. This endpoint is specifically designed to be used with applications
or services that have a student log into them using a Campus Identity Provider
(ie. Google OAuth). The end users identity must be passed across as a JWT token
within the header 'ucsb-user-jwt'. The call will also need to send authentication
information for the application that is calling on the students behalf.
Please see https://developer.ucsb.edu for more information.
This endpoint is meant to return name, email address,
and some relatively static registration information.
definitions:
StudentExtended:
type: object
properties:
firstNameLegal:
description: The legal first name (as opposed to the preffered first name). (Extended Data Only)
type: string
middleName:
description: The middle name. (Extended Data Only)
type: string
gender:
description: '''M'' = Male, ''F'' = Female, NULL = No value provided (Extended Data Only)'
type: string
birthDate:
description: The birthdate in 8 character code (YYYYMMDD)
type: string
nfr:
description: "Not For Release - This indicates if the students record has a Not For Release flag associated with it. If true,\r\nthen the Registrar's Office should be consulted before releasing any of the students information to anyone\r\nbesides the student."
type: boolean
internationalStudentCode:
description: '''F'' = Foreign, ''R'' = Resident Alien, NULL = Domestic'
type: string
firstCensusQuarter:
description: The first quarter the student was registered and included in the UCOP extract.
type: string
lastCensusQuarter:
description: The latest quarter the student was registered and included in the UCOP extract.
type: string
lastRegisteredQuarter:
description: The latest quarter that the student was registered with a status of Registered (R) or EAP (E).
type: string
admitLevel:
description: '''FR'' = Freshman Undergraduate Admit, ''TR'' = Transfer Undergraduate Admit, Empty = No data or not an undergraduate admit.'
type: string
admitQuarter:
description: Quarter the student was admitted as an undergraduate.
type: string
pronounCode:
description: Pronoun code for the student.
type: string
perm:
description: The 7-digit perm number
type: string
firstName:
description: The preferred first name
type: string
lastName:
description: The last name
type: string
suffix:
description: 'The name suffix (JR, SR, etc)'
type: string
email:
description: The email address (umail.ucsb.edu)
type: string
WebApiInvalidModel:
type: object
properties:
message:
type: string
modelState:
type: object
additionalProperties:
type: array
items:
type: string
SimpleMessageModel:
type: object
properties:
message:
type: string
StudentMinimal:
type: object
properties:
perm:
description: The 7-digit perm number
type: string
firstName:
description: The preferred first name
type: string
lastName:
description: The last name
type: string
suffix:
description: 'The name suffix (JR, SR, etc)'
type: string
email:
description: The email address (umail.ucsb.edu)
type: string