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 trial

JavaScript

Julieta Dalla Pozza
Julieta Dalla Pozza
4,337 Points

Fake 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.

  1. 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
Steven Parker
231,269 Points

Is 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:

  1. 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
Julieta Dalla Pozza
4,337 Points

Hello 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#?

  1. service/models 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.
  2. 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.
  3. styling All pages and components of the application should be styled in a simple, functional and responsive way. please use a current css framework for that

Translated with www.DeepL.com/Translator (free version)

Steven Parker
Steven Parker
231,269 Points

It 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.

Julieta Dalla Pozza
Julieta Dalla Pozza
4,337 Points

Thank 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
Steven Parker
231,269 Points

I'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.