Skip to content

Study Abroad Schema#320

Open
NathanP9000 wants to merge 9 commits intoUTDNebula:developfrom
NathanP9000:develop
Open

Study Abroad Schema#320
NathanP9000 wants to merge 9 commits intoUTDNebula:developfrom
NathanP9000:develop

Conversation

@NathanP9000
Copy link
Contributor

I made a schema based on the response of the following API endpoint:
https://utdallas-ea.terradotta.com/models/services/REST/index.cfm?endpoint=/v3/program/10064/brochure.

My goal was to capture most of the variables.

A few points:

  1. I saw there are typically two program types. The difference between the two are the structures. I focused on making a schema for the non OIE programs. However, the OIE programs are a subset of this type is what I determined at first glance. I will go back to double check.

  2. It will be easiest to see how to adjust the schema while implementing the scraper.

@mikehquan19
Copy link
Contributor

mikehquan19 commented Jan 23, 2026

@NathanP9000 , I put some review in your schema. In general, it's good overall it'd be better if you could somehow condense all of those variables into less fields but still maintain the information to our end users.

You don't need to aim to capture almost all the fields from the API you found, because I think it's too nested & complicated that only the people working with that API understands what each field is about.

@NathanP9000
Copy link
Contributor Author

Ok, I will do my best to condense further.

@NathanP9000
Copy link
Contributor Author

@mikehquan19 I have made it more concise.


// Program Schema
type Program struct {
Id int `json:"programId"`
Copy link
Contributor

@mikehquan19 mikehquan19 Jan 28, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Id here should be Mongo-generated. We wouldn't use the id given by the 3rd party API, which means we should use primitive.ObjectID.

}

type BrochureSection struct {
Id int `json:"sectionId"`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same thing for ID here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants