-
Notifications
You must be signed in to change notification settings - Fork 15
Adding get and create DP docs [SA-20990] (develop) #208
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| description: | | ||
| Differentiation profile object. | ||
| content: | ||
| application/json: | ||
| schema: | ||
| type: object | ||
| properties: | ||
| adjustment_category: | ||
| type: array | ||
| nullable: true | ||
| description: Array of adjustment category ids | ||
| items: | ||
| type: object | ||
| properties: | ||
| id: | ||
| type: integer | ||
| example: 1 | ||
| adjustment_level: | ||
| type: array | ||
| nullable: true | ||
| description: Array of adjustment level ids | ||
| items: | ||
| type: object | ||
| properties: | ||
| id: | ||
| type: integer | ||
| example: | ||
| - id: 3 | ||
| - id: 4 | ||
| overview: | ||
| type: string | ||
| nullable: true | ||
| description: Overview of the differentiation profile (if applicable) | ||
| example: null | ||
| interests_strengths: | ||
| type: string | ||
| nullable: true | ||
| description: Interests and strengths (if applicable) | ||
| example: null | ||
| needs_challenges: | ||
| type: string | ||
| nullable: true | ||
| description: Needs and challenges (if applicable) | ||
| example: null | ||
| strategies_adjustments: | ||
| type: string | ||
| nullable: true | ||
| description: Strategies and adjustments (if applicable) | ||
| example: null | ||
| goals: | ||
| type: string | ||
| nullable: true | ||
| description: Goals for the student (if applicable) | ||
| example: 'Goal 1: Improve reading comprehension.' |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| description: A differentiation profile object. | ||
| content: | ||
| application/json: | ||
| schema: | ||
| $ref: "../schemas/differentiation.yaml" |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,143 @@ | ||
| title: A Differentiation Profile | ||
| description: A Differentiation Profile object | ||
| type: object | ||
| properties: | ||
| id: | ||
| $ref: ./id.yaml | ||
| status: | ||
| type: array | ||
| readOnly: true | ||
| description: Status flags for the differentiation profile | ||
| items: | ||
| type: string | ||
| enum: | ||
| - unpopulated | ||
| - expired | ||
| - out-of-date | ||
| example: [] | ||
| student: | ||
| type: object | ||
| description: The student associated with the differentiation profile | ||
| properties: | ||
| id: | ||
| type: integer | ||
| example: 69 | ||
| fullName: | ||
| type: string | ||
| example: "Eden Reed" | ||
| givenName: | ||
| type: string | ||
| example: "Eden" | ||
| lastName: | ||
| type: string | ||
| example: "Reed" | ||
| yearLevel: | ||
| type: object | ||
| properties: | ||
| id: | ||
| type: integer | ||
| example: 4 | ||
| name: | ||
| type: string | ||
| example: "3" | ||
| _links: | ||
| type: object | ||
| properties: | ||
| profile: | ||
| type: string | ||
| example: "/search/user/69" | ||
| adjustment_category: | ||
| type: array | ||
| nullable: true | ||
| description: Array of adjustment categories (if applicable) | ||
| items: | ||
| type: object | ||
| properties: | ||
| id: | ||
| type: integer | ||
| name: | ||
| type: string | ||
| example: | ||
| - id: 1 | ||
| name: "Physical" | ||
| - id: 2 | ||
| name: "Cognitive" | ||
| adjustment_level: | ||
| type: array | ||
| nullable: true | ||
| description: Array of adjustment levels (if applicable) | ||
| items: | ||
| type: object | ||
| properties: | ||
| id: | ||
| type: integer | ||
| name: | ||
| type: string | ||
| example: | ||
| - id: 1 | ||
| name: "Extensive" | ||
| overview: | ||
| type: string | ||
| nullable: true | ||
| description: Overview of the differentiation profile (if applicable) | ||
| example: null | ||
| interests_strengths: | ||
| type: string | ||
| nullable: true | ||
| description: Interests and strengths (if applicable) | ||
| example: null | ||
| needs_challenges: | ||
| type: string | ||
| nullable: true | ||
| description: Needs and challenges (if applicable) | ||
| example: null | ||
| strategies_adjustments: | ||
| type: string | ||
| nullable: true | ||
| description: Strategies and adjustments (if applicable) | ||
| example: null | ||
| goals: | ||
| type: string | ||
| nullable: true | ||
| description: Goals for the student (if applicable) | ||
| example: 'Goal 1: Improve reading comprehension.' | ||
| _routes: | ||
| type: object | ||
| description: Related routes for the differentiation profile | ||
| properties: | ||
| linkedRecords: | ||
| type: string | ||
| nullable: true | ||
| example: "/differentiation-profiles/linkedRecords/69" | ||
| create: | ||
| type: string | ||
| nullable: true | ||
| example: "/differentiation-profiles/create/69" | ||
| edit: | ||
| type: string | ||
| nullable: true | ||
| example: "/differentiation-profiles/edit/69" | ||
| created_at: | ||
| $ref: ./dateTimeString.yaml | ||
| created_by: | ||
| type: string | ||
| description: Who created the profile | ||
| example: "Mr John Smith" | ||
| updated_at: | ||
| $ref: ./dateTimeString.yaml | ||
| updated_by: | ||
| type: string | ||
| description: Who last updated the profile | ||
| example: "Mr John Smith" | ||
| deleted_at: | ||
| title: Datetime | ||
| type: string | ||
| nullable: true | ||
| description: When the profile was deleted (if applicable). The date as a RFC3339 string. | ||
| format: date-time | ||
| example: null | ||
|
|
||
| required: | ||
| - id | ||
| - status | ||
| - student | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| get: | ||
| operationId: getDifferentiationProfile | ||
| tags: [differentiation] | ||
| summary: Get a differentiation profile | ||
| description: | | ||
| Retrieve the differentiation profile for a specific student. | ||
| responses: | ||
| '200': | ||
| $ref: ../components/responses/differentiationProfile.yaml | ||
| default: | ||
| $ref: ../components/responses/problem.yaml | ||
|
|
||
| parameters: | ||
| - $ref: ../components/parameters/id.yaml | ||
|
Comment on lines
+13
to
+14
|
||
|
|
||
| post: | ||
| operationId: createDifferentiationProfile | ||
| tags: [differentiation] | ||
| summary: Create a differentiation profile | ||
| description: | | ||
| Create a new differentiation profile. | ||
tchiang0530 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| requestBody: | ||
| $ref: ../components/requestBodies/differentiation.yaml | ||
| responses: | ||
| '201': | ||
| $ref: ../components/responses/differentiationProfile.yaml | ||
| default: | ||
| $ref: ../components/responses/problem.yaml | ||
|
|
||
| put: | ||
| operationId: updateDifferentiationProfile | ||
| tags: [differentiation] | ||
| summary: Update a differentiation profile | ||
| description: | | ||
| Update an existing differentiation profile. | ||
tchiang0530 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| requestBody: | ||
| $ref: ../components/requestBodies/differentiation.yaml | ||
| responses: | ||
| '200': | ||
| $ref: ../components/responses/differentiationProfile.yaml | ||
| default: | ||
| $ref: ../components/responses/problem.yaml | ||
Uh oh!
There was an error while loading. Please reload this page.