Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialJulieta Dalla Pozza
4,337 PointsFake Rest API
Hello dear community. I am applying to get my first internship. The company sent me a challenge that for me is quite difficult to understand how to start it. Could i ask for any leads or hints? Thank you in advance
Here it goes the challenge description.
From a REST-Api we want to query airlines and passengers to display them later in the frontend. in the frontend. A json API and its documentation can be found here: https://instantwebtools.net/fake-rest-api Please split your code into services, entities and/or other needed files.
- functionality The main page of the application should show an overview of airlines (name, logo). Each airline should to a detail page, where all other attributes of the airline and a list of passengers are displayed. passengers are displayed. All passengers should be loaded paginated with a page size of 25.
2 Answers
Steven Parker
231,269 PointsIs that an exact copy and paste of the instructions? They made some serious grammar issues there! No wonder it's confusing. I'm guessing what they meant to say was:
- Functionality: The main page of the application should show an overview of airlines (name, logo). Each airline should link to a detail page, where all other attributes of the airline and a list of passengers are displayed. All passengers should be loaded in by pages, and paginated with a page size of 25.
Were there more instructions not shown here? The reference to "display them later in the frontend" seems to imply this is server code, and the reference to "services, entities" suggests C#, but it's not completely clear.
If you're not already familiar with using API's in a web app, you might begin with the short Introduction to REST APIs course. From there, several of the languages have their own API courses, such as Building Services with ASP.NET Web API (for C#).
They seem to be demanding a lot for just an internship, I hope this is a pretty prestigious employer!
Julieta Dalla Pozza
4,337 PointsThank you for your answers. I will use JS with Reacts. Already watched all the tutorials but still dont know how to start with the challenge. Could i ask you for any hints? Thank you
Steven Parker
231,269 PointsI'm not quite sure what you're looking for at this point, would this MSDN tutorial help? And you might try looking at the other API-related courses here, or perhaps find a generic web app example online.
Julieta Dalla Pozza
4,337 PointsJulieta Dalla Pozza
4,337 PointsHello Steven, yes it has grammar issues because the original instructions are in german. I will do the task with React, but i dont know how to start. Could i ask you for a hint? or a tutorial i should watch? Thank you
This is the full instruction
so, do you think they are asking to write it in c#?
Translated with www.DeepL.com/Translator (free version)
Steven Parker
231,269 PointsSteven Parker
231,269 PointsIt seems odd that they wouldn't specify their language expectations, are you sure they didn't indicate it somewhere? But those 2 tutorials I suggested are still probably the most relevant.