GithubHelp home page GithubHelp logo

ember-example's Introduction

Ember-example

This is a Example App to do an integration with an example API:

  • Host: http://ec2-52-45-26-25.compute-1.amazonaws.com:5050
  • Namespace: dev
  • Endpoint: hotels/:hotel_id/rooms/:rate_token

Example of request: http://ec2-52-45-26-25.compute-1.amazonaws.com:5050/dev/hotels/36124539/rooms/PGhvdDpyYXRlVG9rZW4geG1sbnM6aG90PSJodHRwOi8vY3ZjLmNvbS5ici9tb2RlbC9ob3RlbHMiIHBsYT0iMzYiIGNtaT0iMzYiIGNtYz0iMzYwMDEiIHJ0az0iZDM5MWEyNzktMzlkNC00MDAxLThjYzctMjMzZmEzM2ZmOWFlLTUwMDMiIHJ0cD0iNDgyMDQwIiBydGM9IjIwNDc3ODc1NSIgY2hhPSI3NzUuNjAiIG5hZD0iMSIgYmV0PSIxMyIgY3VyPSJCUkwiIGl6bz0iMzM4MzAiIGFncz0iVyIgYnJjPSIxMDAwIiBsYW49InB0X0JSIiBkaW49IjIwMTYtMTAtMjgiIGRvdT0iMjAxNi0xMC0yOSIgcGtnPSJWSEkiIHB4cz0iMzAiLz4=

Headers

The request should send the headers:

  • Gtw-Sec-User-Token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjcmVkZW50aWFsIjp7InBlcnNvbklkIjo3NjI3ODY1LCJ1c2VySWQiOjk2NzExLCJuYW1lIjoiVElNRSIsImNwZiI6IjQxMDUyOTY0ODUwIiwiYnJhbmNoSWQiOjEwMDAsImFnZW50U2lnbiI6IlciLCJ1c2VyIjoiTVRaQ1BENjAwIn0sInN5c3RlbXMiOlt7InN5c3RlbUNvZGUiOjEsImNsaWVudElEIjo3MTEyOTk0NDY3Mzg4NTkwLCJleHBpcmVzT24iOiIyMDE2LTA3LTA2VDIwOjU4OjQ4LjAwMC0wMzowMCIsImFjdGl2ZSI6IlMgIn0seyJzeXN0ZW1Db2RlIjozLCJjbGllbnRJRCI6NzExMjk5NDQ2NzM4ODU5MSwiZXhwaXJlc09uIjoiMjAxNi0wNy0wNlQyMDoxMzo0OC4wMDAtMDM6MDAiLCJhY3RpdmUiOiJTICJ9XSwiaWF0IjoxNDY3ODQ1OTI2fQ.UJ-ijCm_fjTgSwoTQ4JgVn4hyQrQYWQfFIWzJZUwCT0
  • Gtw-Transaction-Id: 1234567890

The Test

  1. Fork this project, configure the adapter os application, setup the model and routes to do a GET on our API.

  2. What we want to see done is a way to trigger the get by user for the provided endpoint. The user should have a way to specify both hotel_id and rate_token.

  3. Please take into account that this is just a single endpoint in a very big application with many other endpoints present and the api address, specifically http://ec2-52-45-26-25.compute-1.amazonaws.com:5050 would be changed in the future. Try to take this into account when implementing the test-task.

  4. The room model primary key is rateToken inside the rates array. Please assume that for every room the related rateToken which is primary key is the first one in the array. Implement the adapter/serializer/model in such way that the primary key for room is set correctly on data fetch.

After that, commit in a public repository. Send the link to us.

Good lucky!

ember-example's People

Contributors

ember-tomster avatar georgeleao avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.