Skip to content

Commit

Permalink
Move assiciation example to an own page
Browse files Browse the repository at this point in the history
  • Loading branch information
phavekes committed Nov 7, 2024
1 parent 799eae6 commit 70e60ac
Show file tree
Hide file tree
Showing 2 changed files with 83 additions and 80 deletions.
82 changes: 82 additions & 0 deletions assiciationexample.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
# Associations example

An example for the body of the `POST /associations/external/me` call:

```json
{
"role": "student",
"state": "associated", // The desired state the Host would like the Home institution to reach.
"remoteState": "associated", // The initial state the Host has reached so far. Could also be pending or queued.
"offering": {
"primaryCode": {
"codeType": "identifier",
"code": "1234qwe12"
},
"offeringType": "course",
"name": [
{
"language": "en-GB",
"value": "Introduction to Bio-Informatics - fall 2024"
}
],
"abbreviation": "INTROBIOINF2024",
"description": [
{
"language": "en-GB",
"value": "Intro text"
}
],
"teachingLanguage": "eng",
"resultExpected": true,
"resultValueType": "1-10",
"link": "https://institution.tld/courses/bioinf/2024",
"startDate": "2024-10-15",
"endDate": "2024-11-16",
"enrollStartDate": "2024-01-24",
"enrollEndDate": "2024-08-29",
"course": {
"courseId": "123e4567-e89b-12d3-a456-426614174000",
"primaryCode": {
"codeType": "identifier",
"code": "1234qwe12"
},
"name": [
{
"language": "en-GB",
"value": "Introduction to Bio-Informatics"
}
],
"abbreviation": "INTROBIOINF",
"studyLoad": {
"studyLoadUnit": "ects",
"value": 3
},
"description": [
{
"language": "en-GB",
"value": "Description text"
}
],
"teachingLanguage": "eng",
"level": "master",
"link": "https://institution.tld/courses/bioinf"
}
},
"issuer": { // The issuer should be an Organization of type root. It represents the institution that is offering the course (offering).
"primaryCode": {
"codeType": "identifier",
"code": "1234qwe12"
},
"organizationType": "root",
"name": [
{
"language": "en-GB",
"value": "The University"
}
],
"shortName": "UNI",
"link": "https://institution.tld",
"logo": "https://institution.tld/logo.svg"
}
}
```
81 changes: 1 addition & 80 deletions index.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,86 +47,7 @@ Once the Host instutution has done the initial processing after the Enrollment R
- An expanded course attribute in the offering
- An issuer, e.g. information about the Host Institution

An example for the body of this request:

```json
{
"role": "student",
"state": "associated", // The desired state the Host would like the Home institution to reach.
"remoteState": "associated", // The initial state the Host has reached so far. Could also be pending or queued.
"offering": {
"primaryCode": {
"codeType": "identifier",
"code": "1234qwe12"
},
"offeringType": "course",
"name": [
{
"language": "en-GB",
"value": "Introduction to Bio-Informatics - fall 2024"
}
],
"abbreviation": "INTROBIOINF2024",
"description": [
{
"language": "en-GB",
"value": "Intro text"
}
],
"teachingLanguage": "eng",
"resultExpected": true,
"resultValueType": "1-10",
"link": "https://institution.tld/courses/bioinf/2024",
"startDate": "2024-10-15",
"endDate": "2024-11-16",
"enrollStartDate": "2024-01-24",
"enrollEndDate": "2024-08-29",
"course": {
"courseId": "123e4567-e89b-12d3-a456-426614174000",
"primaryCode": {
"codeType": "identifier",
"code": "1234qwe12"
},
"name": [
{
"language": "en-GB",
"value": "Introduction to Bio-Informatics"
}
],
"abbreviation": "INTROBIOINF",
"studyLoad": {
"studyLoadUnit": "ects",
"value": 3
},
"description": [
{
"language": "en-GB",
"value": "Description text"
}
],
"teachingLanguage": "eng",
"level": "master",
"link": "https://institution.tld/courses/bioinf"
}
},
"issuer": { // The issuer should be an Organization of type root. It represents the institution that is offering the course (offering).
"primaryCode": {
"codeType": "identifier",
"code": "1234qwe12"
},
"organizationType": "root",
"name": [
{
"language": "en-GB",
"value": "The University"
}
],
"shortName": "UNI",
"link": "https://institution.tld",
"logo": "https://institution.tld/logo.svg"
}
}
```
[An example for the body of this request](./assiciationexample.md)

## About the enrollment receiver

Expand Down

0 comments on commit 70e60ac

Please sign in to comment.