regis

<back to all web services

StudentGraduationRequest

Requires Authentication
Required role:REGISUserRole
The following routes are available for this service:
POST/StudentGraduation/{uuid}/{year}
import Foundation
import ServiceStack

public class StudentGraduationRequest : Codable
{
    public var uuid:String
    public var year:Int

    required public init(){}
}

public class StudentGraduationResponse : Codable
{
    public var responseStatus:ResponseStatus
    public var regent_id:Int
    public var uuid:String
    public var first_name:String
    public var preferred_name:String
    public var middle_name:String
    public var last_name:String
    public var email:String
    public var phonetic_first_name:String
    public var phonetic_middle_name:String
    public var phonetic_last_name:String
    public var placement:String
    public var placement_other:String
    public var addr1:String
    public var addr2:String
    public var city:String
    public var state:String
    public var country:String
    public var code:String
    public var citizenship:String
    public var citizenship_other:String
    public var permanent_resident:String
    public var previous_degrees:String
    public var gown_size:Int?
    public var project_title:String
    public var supervisor:String
    public var is_attending:Bool
    public var is_hood_requested:Bool
    public var is_hood_paid:Bool
    public var is_paid:Bool
    public var is_late:Bool
    public var year:Int?
    public var comments:String
    public var current_status:String
    public var current_status_date:Date?
    public var added_date:Date?
    public var applied_programs:[StudentGraduationProgramResponse] = []

    required public init(){}
}

public class StudentGraduationProgramResponse : Codable
{
    public var program_code:String
    public var concentration_code:String
    public var program_details:String
    public var comments:String

    required public init(){}
}


Swift StudentGraduationRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /StudentGraduation/{uuid}/{year} HTTP/1.1 
Host: data.regent-college.edu 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"uuid":"String","year":0}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}},"regent_id":0,"uuid":"String","first_name":"String","preferred_name":"String","middle_name":"String","last_name":"String","email":"String","phonetic_first_name":"String","phonetic_middle_name":"String","phonetic_last_name":"String","placement":"String","placement_other":"String","addr1":"String","addr2":"String","city":"String","state":"String","country":"String","code":"String","citizenship":"String","citizenship_other":"String","permanent_resident":"String","previous_degrees":"String","gown_size":0,"project_title":"String","supervisor":"String","is_attending":false,"is_hood_requested":false,"is_hood_paid":false,"is_paid":false,"is_late":false,"year":0,"comments":"String","current_status":"String","current_status_date":"0001-01-01T00:00:00.0000000","added_date":"0001-01-01T00:00:00.0000000","applied_programs":[{"program_code":"String","concentration_code":"String","program_details":"String","comments":"String"}]}