Open
Conversation
mikehquan19
reviewed
Jan 23, 2026
mikehquan19
reviewed
Jan 23, 2026
mikehquan19
reviewed
Jan 23, 2026
mikehquan19
reviewed
Jan 23, 2026
Contributor
|
@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. |
Contributor
Author
|
Ok, I will do my best to condense further. |
…o develop Retrieving latest develop branch to resolve any merge conflicts and stay up to date.
Contributor
Author
|
@mikehquan19 I have made it more concise. |
mikehquan19
reviewed
Jan 28, 2026
|
|
||
| // Program Schema | ||
| type Program struct { | ||
| Id int `json:"programId"` |
Contributor
There was a problem hiding this comment.
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.
mikehquan19
reviewed
Jan 28, 2026
| } | ||
|
|
||
| type BrochureSection struct { | ||
| Id int `json:"sectionId"` |
Contributor
There was a problem hiding this comment.
Same thing for ID here
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
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.
It will be easiest to see how to adjust the schema while implementing the scraper.