{"action":"created","comment":{"url":"https://api.github.com/repos/FiwareULPGC/tutorials.TourGuide-App/pulls/comments/69097184","id":69097184,"diff_hunk":"@@ -0,0 +1,1031 @@\n+'use strict';\n+/*\n+ * drawModule.js\n+ * Copyright(c) 2016 Universidad de Las Palmas de Gran Canaria\n+ * Authors:\n+ *   Jaisiel Santana <jaisiel@gmail.com>\n+ *   Alejandro Sánchez <alemagox@gmail.com>\n+ *   Pablo Fernández <pablo.fernandez@ulpgc.es>\n+ * MIT Licensed\n+\n+  This module contains the procedures to render\n+  the restaurants and their information\n+\n+*/\n+\n+/*exported drawModule */\n+var map; //map instance\n+var connectionsAPI;\n+var utils;\n+var drawModule = (function() {\n+\n+  var maxRating = 5;\n+  var alreadyPartySizeInit = false;\n+  var minTime = {\n+    hours: 12,\n+    minutes: 30\n+  };\n+  var maxTime = {\n+    hours: 22,\n+    minutes: 30\n+  };\n+\n+  //actions do nothing by default\n+  var viewReservationAction = function() {};\n+  var viewRestaurantReviewsAction = function() {};\n+  var createNewReviewAction = function() {};\n+  var createNewReservationAction = function() {};\n+  var getReservationsByDateAction = function() {};\n+  var viewReviewAction = function() {};\n+  var deleteReviewAction = function() {};\n+  var showEditReviewAction = function() {};\n+  var updateReviewAction = function() {};\n+  var cancelReservationAction = function() {};\n+\n+\n+  //functions to set up actions\n+  function setViewReservationAction(action) {\n+    viewReservationAction = action;\n+  }\n+\n+  function setViewRestaurantReviewsAction(action) {\n+    viewRestaurantReviewsAction = action;\n+  }\n+\n+  function setCreateNewReviewAction(action) {\n+    createNewReviewAction = action;\n+  }\n+\n+  function setCreateNewReservationAction(action) {\n+    createNewReservationAction = action;\n+  }\n+\n+  function setViewReviewAction(action) {\n+    viewReviewAction = action;\n+  }\n+\n+  function setDeleteReviewAction(action) {\n+    deleteReviewAction = action;\n+  }\n+\n+  function setGetReservationsByDateAction(action) {\n+    getReservationsByDateAction = action;\n+  }\n+\n+  function setShowEditReviewAction(action) {\n+    showEditReviewAction = action;\n+  }\n+\n+  function setUpdateReviewAction(action) {\n+    updateReviewAction = action;\n+  }\n+\n+  function setCancelReservationAction(action) {\n+    cancelReservationAction = action;\n+  }\n+\n+  /*this functions add the restaurants to the leaflet map */\n+  function addRestaurantstoMap(restaurants) {\n+\n+    /* add marks with clustering approach */\n+    var markerClusters = L.markerClusterGroup({showCoverageOnHover: true});\n+    restaurants.forEach(function(currentMark) {\n+      addRestaurantMark(currentMark, markerClusters);\n+    });\n+\n+    map.addLayer(markerClusters);\n+  }\n+\n+\n+  //create a restaurant mark and add it to the cluster.\n+  function addRestaurantMark(currentMark, markerCluster) {\n+\n+    //add mark to map\n+    currentMark.mark = L.marker(currentMark.coords);\n+\n+    var popHTML = generateMarkPopup(currentMark);\n+    currentMark.mark.bindPopup(popHTML);\n+\n+    //reference all mark info to be used from leaflet\n+    currentMark.mark.extraInfo = currentMark;\n+\n+    markerCluster.addLayer(currentMark.mark);\n+  }\n+\n+  //set title for modal window\n+  function setPopupTitle(title) {\n+    document.getElementById('popTitle').textContent = title;\n+  }\n+\n+  //set content for modal window\n+  function setPopupContent(contentDiv) {\n+  //remove previous content\n+    var content = document.getElementById('popContent');\n+    content.innerHTML = '';\n+    content.appendChild(contentDiv);\n+  }\n+\n+  //generate a restaurant popup from a restaurant mark.\n+  function generateMarkPopup(mark) {\n+    var popHTML = document.createElement('DIV');\n+    popHTML.className = 'markPopUp';\n+\n+    var restaurantName = document.createElement('B');\n+    restaurantName.textContent = mark.name;\n+    popHTML.appendChild(restaurantName);\n+\n+    var ratingP = document.createElement('P');\n+    ratingP.textContent = 'Rating: ' + mark.ratingValue;\n+    popHTML.appendChild(ratingP);\n+\n+    var addressP = document.createElement('P');\n+    addressP.textContent = 'Address: ' + mark.address;\n+    popHTML.appendChild(addressP);\n+\n+    var phoneP = document.createElement('P');\n+    phoneP.textContent = 'Phone: ' + mark.telephone;\n+    popHTML.appendChild(phoneP);\n+\n+    var showReviews = document.createElement('A');\n+    showReviews.textContent = 'Show reviews';\n+    showReviews.onclick = function() {\n+      viewRestaurantReviewsAction(mark.name);\n+    };\n+\n+    popHTML.appendChild(showReviews);\n+    popHTML.appendChild(document.createElement('BR'));\n+\n+    var showReservations = document.createElement('A');\n+    showReservations.textContent = 'Show reservations';\n+    showReservations.onclick = function() {\n+      viewReservationAction(mark.name);\n+    };\n+\n+    popHTML.appendChild(showReservations);\n+    popHTML.appendChild(document.createElement('BR'));\n+\n+\n+    var createReview = addCreateReviewLink(mark.name);\n+    if (null != createReview) {\n+      popHTML.appendChild(createReview);\n+      popHTML.appendChild(document.createElement('BR'));\n+    }\n+\n+    var createReservation = addCreateReservationLink(mark.name);\n+    if (null != createReservation) {\n+      popHTML.appendChild(createReservation);\n+    }\n+\n+    return popHTML;\n+  }\n+\n+  /*show restaurant reviews from a API response */\n+  /* At this moment, show all reviews without pagination */\n+  function createReviewsDiv(reviewsResponse) {\n+    reviewsResponse = JSON.parse(reviewsResponse);\n+\n+\n+    if (reviewsResponse.length < 1) {\n+      var error = document.createElement('H2');\n+      error.textContent = 'No reviews are available';\n+      return error;\n+    }\n+\n+    var reviewList = document.createElement('DIV');\n+    reviewList.className = 'reviewList';\n+\n+    for (var j = 0, lim = reviewsResponse.length; j < lim; j++) {\n+      var reviewElement = document.createElement('DIV');\n+      reviewElement.className = 'reviewElement';\n+\n+      //top container\n+      var top = document.createElement('DIV');\n+      top.className = 'review-top';\n+\n+      //rating\n+      var rating = document.createElement('DIV');\n+      rating.className = 'rating-div';\n+\n+      var ratingLabel = document.createElement('SPAN');\n+      ratingLabel.className = 'ratingLabel';\n+      ratingLabel.textContent = 'Rating: ';\n+\n+      var ratingValue = document.createElement('SPAN');\n+      ratingValue.className = 'ratingValue';\n+      ratingValue.textContent = reviewsResponse[j].reviewRating.ratingValue;\n+\n+      rating.appendChild(ratingLabel);\n+      rating.appendChild(ratingValue);\n+\n+      top.appendChild(rating);\n+\n+      //author\n+      var author = document.createElement('DIV');\n+      author.className = 'author-div';\n+\n+      var authorLabel = document.createElement('SPAN');\n+      authorLabel.className = 'authorLabel';\n+      authorLabel.textContent = 'Author: ';\n+\n+      var authorValue = document.createElement('SPAN');\n+      authorValue.className = 'authorValue';\n+      authorValue.textContent = reviewsResponse[j].author.name;\n+\n+      author.appendChild(authorLabel);\n+      author.appendChild(authorValue);\n+\n+      top.appendChild(author);\n+\n+      reviewElement.appendChild(top);\n+\n+      var hr = document.createElement('HR');\n+      reviewElement.appendChild(hr);\n+      //body\n+      var body = document.createElement('DIV');\n+      body.className = 'reviewBodyDiv';\n+\n+      var bodyLabel = document.createElement('SPAN');\n+      bodyLabel.className = 'bodyLabel';\n+\n+      var bodyValue = document.createElement('SPAN');\n+      bodyValue.className = 'bodyValue';\n+      bodyValue.textContent = reviewsResponse[j].reviewBody;\n+\n+      body.appendChild(bodyLabel);\n+      body.appendChild(bodyValue);\n+\n+      reviewElement.appendChild(body);\n+\n+      reviewList.appendChild(reviewElement);\n+    }\n+\n+    //return reviews div\n+    return reviewList;\n+  }\n+\n+  //create a div that shows the reservations\n+  function createReservationsDiv(reservationsResponse) {\n+\n+    reservationsResponse = JSON.parse(reservationsResponse);\n+\n+    if (reservationsResponse.length < 1) {\n+      var error = document.createElement('H2');\n+      error.textContent = 'No reservations are available.';\n+      document.getElementById('popContent').appendChild(error);\n+      openPopUpWindow();\n+      return;\n+    }\n+\n+    var reservationsTable = document.createElement('DIV');\n+    reservationsTable.classList.add('table', 'table-fixed', 'table-hover');\n+\n+    var tableHead = document.createElement('THEAD');\n+\n+    var row = document.createElement('TR');\n+    row.className = 'row';\n+\n+    var underNameHead = document.createElement('TH');\n+    underNameHead.className = 'col-xs-6';\n+    underNameHead.textContent = 'Reserved by:';\n+    row.appendChild(underNameHead);\n+\n+    var timeHead = document.createElement('TH');\n+    timeHead.className = 'col-xs-4';\n+    timeHead.textContent = 'Reservation time:';\n+    row.appendChild(timeHead);\n+\n+    var dinersHead = document.createElement('TH');\n+    dinersHead.className = 'col-xs-2';\n+    dinersHead.textContent = 'Diners:';\n+    row.appendChild(dinersHead);\n+\n+    tableHead.appendChild(row);\n+    reservationsTable.appendChild(tableHead);\n+\n+    var tableBody = document.createElement('TBODY');\n+\n+    for (var j = 0, lim = reservationsResponse.length; j < lim; j++) {\n+      row = document.createElement('TR'); //defined previously\n+\n+      var underName = document.createElement('TD');\n+      underName.classList.add('col-xs-6');\n+      underName.textContent = reservationsResponse[j].underName.name;\n+      row.appendChild(underName);\n+\n+      var time = document.createElement('TD');\n+      time.classList.add('col-xs-4');\n+      time.textContent =\n+        utils.fixBookingTime(reservationsResponse[j].startTime);\n+      row.appendChild(time);\n+\n+      var diners = document.createElement('TD');\n+      diners.classList.add('col-xs-2');\n+      diners.textContent = reservationsResponse[j].partySize;\n+      row.appendChild(diners);\n+\n+      tableBody.appendChild(row);\n+    }\n+\n+    reservationsTable.appendChild(tableBody);\n+    return reservationsTable;\n+  }\n+\n+\n+\n+  function addCreateReviewLink(restaurantName) {\n+    var userInfo = JSON.parse(localStorage.getItem('userInfo'));\n+\n+    if (! connectionsAPI.hasRole(userInfo,\n+      connectionsAPI.rol.endUser)) {\n+      return null;\n+    }\n+\n+    var createReviewLink = document.createElement('A');\n+    createReviewLink.textContent = 'Create review';\n+    createReviewLink.onclick = (function(restaurantName) {\n+      return function() {\n+      createAndShowReviewForm(restaurantName);\n+      };\n+    })(restaurantName);\n+\n+    return createReviewLink;\n+  }\n+\n+\n+  function createAndShowReviewForm(restaurantName) {\n+    var reviewForm = createReviewForm(restaurantName);\n+    var title = 'Create review for: ' + restaurantName;\n+    setPopupTitle(title);\n+    setPopupContent(reviewForm);\n+    openPopUpWindow();\n+  }\n+\n+  //create a form for creating or updating a review\n+  function createReviewForm(restaurantName, review) {\n+    var reviewForm = document.createElement('FORM');\n+    reviewForm.name = 'editReviewForm';\n+    reviewForm.className = 'editReviewForm';\n+\n+    reviewForm.onsubmit = function() {\n+      var ratingValue =\n+        parseInt(document.forms.editReviewForm.ratingValue.value);\n+\n+      var reviewBody = document.forms.editReviewForm.reviewBody.value;\n+      if (review) {\n+        updateReviewAction(review.name, ratingValue, reviewBody);\n+      }\n+      else {\n+        createNewReviewAction(restaurantName, ratingValue, reviewBody);\n+      }\n+\n+      return false;\n+    };\n+\n+    var reviewLabel = document.createElement('LABEL');\n+    reviewLabel.textContent = 'Your review: ';\n+    reviewForm.appendChild(reviewLabel);\n+    reviewForm.appendChild(document.createElement('BR'));\n+\n+    var reviewBody = document.createElement('TEXTAREA');\n+    reviewBody.name = 'reviewBody';\n+    reviewForm.appendChild(reviewBody);\n+    reviewForm.appendChild(document.createElement('BR'));\n+\n+    var ratingLabel = document.createElement('LABEL');\n+    ratingLabel.textContent = 'Rating value: ';\n+    reviewForm.appendChild(ratingLabel);\n+\n+    var ratingValueSelect = document.createElement('SELECT');\n+    ratingValueSelect.name = 'ratingValue';\n+\n+    var option;\n+    for (var i = 0; i <= maxRating; i++) {\n+      option = document.createElement('OPTION');\n+      option.value = i;\n+      option.textContent = i + ' Star' + (1 != i ? 's' : '');\n+      ratingValueSelect.appendChild(option);\n+    }\n+\n+    reviewForm.appendChild(ratingValueSelect);\n+\n+    var submit = document.createElement('INPUT');\n+    submit.type = 'submit';\n+    submit.value = 'Create Review';\n+    submit.name = 'submitReview';\n+    reviewForm.appendChild(submit);\n+\n+\n+    return reviewForm;\n+  }\n+\n+  //inicialize a review form when update a review\n+  //instead of create a new one\n+  function inicializeReviewForm(review) {\n+\n+    var reviewForm =\n+      document.forms.namedItem('editReviewForm');\n+\n+    markSelectedValue(reviewForm.children.ratingValue,\n+      review.reviewRating.ratingValue);\n+\n+    reviewForm.children.reviewBody.textContent =\n+      review.reviewBody;\n+\n+    reviewForm.children.submitReview.value = 'Update review';\n+  }\n+\n+\n+\n+  function addCreateReservationLink(restaurantName) {\n+    var userInfo = JSON.parse(localStorage.getItem('userInfo'));\n+\n+    if (! connectionsAPI.hasRole(userInfo,\n+      connectionsAPI.rol.endUser)) {\n+      return null;\n+    }\n+\n+    var createReservationLink = document.createElement('A');\n+    createReservationLink.textContent = 'Make a reservation';\n+    createReservationLink.onclick = (function(restaurantName) {\n+      return function() {\n+      createAndShowReservationForm(restaurantName);\n+      };\n+    })(restaurantName);\n+\n+    return createReservationLink;\n+  }\n+\n+\n+  //make a form for creating a reservation and initializes it\n+  function createAndShowReservationForm(restaurantName) {\n+    var reservationForm = createReservationForm(restaurantName);\n+    var title = 'Make reservation for: ' + restaurantName;\n+    setPopupTitle(title);\n+    setPopupContent(reservationForm);\n+\n+    initReservationForm();\n+    openPopUpWindow();\n+  }\n+\n+\n+\n+  function createReservationForm(restaurantName) {\n+\n+    document.getElementById('popTitle').textContent = 'Reservation for ' +\n+       restaurantName;\n+\n+    var reservationForm = document.createElement('FORM');\n+    reservationForm.name = 'editReservationForm';\n+    reservationForm.onsubmit = function() {\n+      //abort if not ready submit","path":"client/js/drawModule.js","position":480,"original_position":480,"commit_id":"0993858ab4f5acb0133ab7a5b25250ec003a0b44","original_commit_id":"0993858ab4f5acb0133ab7a5b25250ec003a0b44","user":{"login":"FiwareULPGC","id":9944828,"avatar_url":"https://avatars.githubusercontent.com/u/9944828?v=3","gravatar_id":"","url":"https://api.github.com/users/FiwareULPGC","html_url":"https://github.com/FiwareULPGC","followers_url":"https://api.github.com/users/FiwareULPGC/followers","following_url":"https://api.github.com/users/FiwareULPGC/following{/other_user}","gists_url":"https://api.github.com/users/FiwareULPGC/gists{/gist_id}","starred_url":"https://api.github.com/users/FiwareULPGC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FiwareULPGC/subscriptions","organizations_url":"https://api.github.com/users/FiwareULPGC/orgs","repos_url":"https://api.github.com/users/FiwareULPGC/repos","events_url":"https://api.github.com/users/FiwareULPGC/events{/privacy}","received_events_url":"https://api.github.com/users/FiwareULPGC/received_events","type":"User","site_admin":false},"body":"\"//abort if not ready submit\" -> \"//abort if not ready to submit\"","created_at":"2016-06-30T08:59:10Z","updated_at":"2016-06-30T08:59:10Z","html_url":"https://github.com/FiwareULPGC/tutorials.TourGuide-App/pull/10#discussion_r69097184","pull_request_url":"https://api.github.com/repos/FiwareULPGC/tutorials.TourGuide-App/pulls/10","_links":{"self":{"href":"https://api.github.com/repos/FiwareULPGC/tutorials.TourGuide-App/pulls/comments/69097184"},"html":{"href":"https://github.com/FiwareULPGC/tutorials.TourGuide-App/pull/10#discussion_r69097184"},"pull_request":{"href":"https://api.github.com/repos/FiwareULPGC/tutorials.TourGuide-App/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/FiwareULPGC/tutorials.TourGuide-App/pulls/10","id":75780204,"html_url":"https://github.com/FiwareULPGC/tutorials.TourGuide-App/pull/10","diff_url":"https://github.com/FiwareULPGC/tutorials.TourGuide-App/pull/10.diff","patch_url":"https://github.com/FiwareULPGC/tutorials.TourGuide-App/pull/10.patch","issue_url":"https://api.github.com/repos/FiwareULPGC/tutorials.TourGuide-App/issues/10","number":10,"state":"open","locked":false,"title":"Internal pr/feature/test update client model save","user":{"login":"FiwareULPGC","id":9944828,"avatar_url":"https://avatars.githubusercontent.com/u/9944828?v=3","gravatar_id":"","url":"https://api.github.com/users/FiwareULPGC","html_url":"https://github.com/FiwareULPGC","followers_url":"https://api.github.com/users/FiwareULPGC/followers","following_url":"https://api.github.com/users/FiwareULPGC/following{/other_user}","gists_url":"https://api.github.com/users/FiwareULPGC/gists{/gist_id}","starred_url":"https://api.github.com/users/FiwareULPGC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FiwareULPGC/subscriptions","organizations_url":"https://api.github.com/users/FiwareULPGC/orgs","repos_url":"https://api.github.com/users/FiwareULPGC/repos","events_url":"https://api.github.com/users/FiwareULPGC/events{/privacy}","received_events_url":"https://api.github.com/users/FiwareULPGC/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-06-30T08:39:29Z","updated_at":"2016-06-30T08:59:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4b07bbce942f161c5e8201d3251217070211738b","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/FiwareULPGC/tutorials.TourGuide-App/pulls/10/commits","review_comments_url":"https://api.github.com/repos/FiwareULPGC/tutorials.TourGuide-App/pulls/10/comments","review_comment_url":"https://api.github.com/repos/FiwareULPGC/tutorials.TourGuide-App/pulls/comments{/number}","comments_url":"https://api.github.com/repos/FiwareULPGC/tutorials.TourGuide-App/issues/10/comments","statuses_url":"https://api.github.com/repos/FiwareULPGC/tutorials.TourGuide-App/statuses/0993858ab4f5acb0133ab7a5b25250ec003a0b44","head":{"label":"FiwareULPGC:internal_pr/feature/test_update_client_model_save","ref":"internal_pr/feature/test_update_client_model_save","sha":"0993858ab4f5acb0133ab7a5b25250ec003a0b44","user":{"login":"FiwareULPGC","id":9944828,"avatar_url":"https://avatars.githubusercontent.com/u/9944828?v=3","gravatar_id":"","url":"https://api.github.com/users/FiwareULPGC","html_url":"https://github.com/FiwareULPGC","followers_url":"https://api.github.com/users/FiwareULPGC/followers","following_url":"https://api.github.com/users/FiwareULPGC/following{/other_user}","gists_url":"https://api.github.com/users/FiwareULPGC/gists{/gist_id}","starred_url":"https://api.github.com/users/FiwareULPGC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FiwareULPGC/subscriptions","organizations_url":"https://api.github.com/users/FiwareULPGC/orgs","repos_url":"https://api.github.com/users/FiwareULPGC/repos","events_url":"https://api.github.com/users/FiwareULPGC/events{/privacy}","received_events_url":"https://api.github.com/users/FiwareULPGC/received_events","type":"User","site_admin":false},"repo":{"id":39492279,"name":"tutorials.TourGuide-App","full_name":"FiwareULPGC/tutorials.TourGuide-App","owner":{"login":"FiwareULPGC","id":9944828,"avatar_url":"https://avatars.githubusercontent.com/u/9944828?v=3","gravatar_id":"","url":"https://api.github.com/users/FiwareULPGC","html_url":"https://github.com/FiwareULPGC","followers_url":"https://api.github.com/users/FiwareULPGC/followers","following_url":"https://api.github.com/users/FiwareULPGC/following{/other_user}","gists_url":"https://api.github.com/users/FiwareULPGC/gists{/gist_id}","starred_url":"https://api.github.com/users/FiwareULPGC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FiwareULPGC/subscriptions","organizations_url":"https://api.github.com/users/FiwareULPGC/orgs","repos_url":"https://api.github.com/users/FiwareULPGC/repos","events_url":"https://api.github.com/users/FiwareULPGC/events{/privacy}","received_events_url":"https://api.github.com/users/FiwareULPGC/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/FiwareULPGC/tutorials.TourGuide-App","description":"FIWARE Developers Guide Application","fork":true,"url":"https://api.github.com/repos/FiwareULPGC/tutorials.TourGuide-App","forks_url":"https://api.github.com/repos/FiwareULPGC/tutorials.TourGuide-App/forks","keys_url":"https://api.github.com/repos/FiwareULPGC/tutorials.TourGuide-App/keys{/key_id}","collaborators_url":"https://api.github.com/repos/FiwareULPGC/tutorials.TourGuide-App/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/FiwareULPGC/tutorials.TourGuide-App/teams","hooks_url":"https://api.github.com/repos/FiwareULPGC/tutorials.TourGuide-App/hooks","issue_events_url":"https://api.github.com/repos/FiwareULPGC/tutorials.TourGuide-App/issues/events{/number}","events_url":"https://api.github.com/repos/FiwareULPGC/tutorials.TourGuide-App/events","assignees_url":"https://api.github.com/repos/FiwareULPGC/tutorials.TourGuide-App/assignees{/user}","branches_url":"https://api.github.com/repos/FiwareULPGC/tutorials.TourGuide-App/branches{/branch}","tags_url":"https://api.github.com/repos/FiwareULPGC/tutorials.TourGuide-App/tags","blobs_url":"https://api.github.com/repos/FiwareULPGC/tutorials.TourGuide-App/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/FiwareULPGC/tutorials.TourGuide-App/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/FiwareULPGC/tutorials.TourGuide-App/git/refs{/sha}","trees_url":"https://api.github.com/repos/FiwareULPGC/tutorials.TourGuide-App/git/trees{/sha}","statuses_url":"https://api.github.com/repos/FiwareULPGC/tutorials.TourGuide-App/statuses/{sha}","languages_url":"https://api.github.com/repos/FiwareULPGC/tutorials.TourGuide-App/languages","stargazers_url":"https://api.github.com/repos/FiwareULPGC/tutorials.TourGuide-App/stargazers","contributors_url":"https://api.github.com/repos/FiwareULPGC/tutorials.TourGuide-App/contributors","subscribers_url":"https://api.github.com/repos/FiwareULPGC/tutorials.TourGuide-App/subscribers","subscription_url":"https://api.github.com/repos/FiwareULPGC/tutorials.TourGuide-App/subscription","commits_url":"https://api.github.com/repos/FiwareULPGC/tutorials.TourGuide-App/commits{/sha}","git_commits_url":"https://api.github.com/repos/FiwareULPGC/tutorials.TourGuide-App/git/commits{/sha}","comments_url":"https://api.github.com/repos/FiwareULPGC/tutorials.TourGuide-App/comments{/number}","issue_comment_url":"https://api.github.com/repos/FiwareULPGC/tutorials.TourGuide-App/issues/comments{/number}","contents_url":"https://api.github.com/repos/FiwareULPGC/tutorials.TourGuide-App/contents/{+path}","compare_url":"https://api.github.com/repos/FiwareULPGC/tutorials.TourGuide-App/compare/{base}...{head}","merges_url":"https://api.github.com/repos/FiwareULPGC/tutorials.TourGuide-App/merges","archive_url":"https://api.github.com/repos/FiwareULPGC/tutorials.TourGuide-App/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/FiwareULPGC/tutorials.TourGuide-App/downloads","issues_url":"https://api.github.com/repos/FiwareULPGC/tutorials.TourGuide-App/issues{/number}","pulls_url":"https://api.github.com/repos/FiwareULPGC/tutorials.TourGuide-App/pulls{/number}","milestones_url":"https://api.github.com/repos/FiwareULPGC/tutorials.TourGuide-App/milestones{/number}","notifications_url":"https://api.github.com/repos/FiwareULPGC/tutorials.TourGuide-App/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/FiwareULPGC/tutorials.TourGuide-App/labels{/name}","releases_url":"https://api.github.com/repos/FiwareULPGC/tutorials.TourGuide-App/releases{/id}","deployments_url":"https://api.github.com/repos/FiwareULPGC/tutorials.TourGuide-App/deployments","created_at":"2015-07-22T07:33:11Z","updated_at":"2016-03-23T08:32:16Z","pushed_at":"2016-06-30T08:39:29Z","git_url":"git://github.com/FiwareULPGC/tutorials.TourGuide-App.git","ssh_url":"git@github.com:FiwareULPGC/tutorials.TourGuide-App.git","clone_url":"https://github.com/FiwareULPGC/tutorials.TourGuide-App.git","svn_url":"https://github.com/FiwareULPGC/tutorials.TourGuide-App","homepage":null,"size":10138,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"FiwareULPGC:develop","ref":"develop","sha":"a5eeb368746031c0d9a58839a3cf3e464e832f88","user":{"login":"FiwareULPGC","id":9944828,"avatar_url":"https://avatars.githubusercontent.com/u/9944828?v=3","gravatar_id":"","url":"https://api.github.com/users/FiwareULPGC","html_url":"https://github.com/FiwareULPGC","followers_url":"https://api.github.com/users/FiwareULPGC/followers","following_url":"https://api.github.com/users/FiwareULPGC/following{/other_user}","gists_url":"https://api.github.com/users/FiwareULPGC/gists{/gist_id}","starred_url":"https://api.github.com/users/FiwareULPGC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FiwareULPGC/subscriptions","organizations_url":"https://api.github.com/users/FiwareULPGC/orgs","repos_url":"https://api.github.com/users/FiwareULPGC/repos","events_url":"https://api.github.com/users/FiwareULPGC/events{/privacy}","received_events_url":"https://api.github.com/users/FiwareULPGC/received_events","type":"User","site_admin":false},"repo":{"id":39492279,"name":"tutorials.TourGuide-App","full_name":"FiwareULPGC/tutorials.TourGuide-App","owner":{"login":"FiwareULPGC","id":9944828,"avatar_url":"https://avatars.githubusercontent.com/u/9944828?v=3","gravatar_id":"","url":"https://api.github.com/users/FiwareULPGC","html_url":"https://github.com/FiwareULPGC","followers_url":"https://api.github.com/users/FiwareULPGC/followers","following_url":"https://api.github.com/users/FiwareULPGC/following{/other_user}","gists_url":"https://api.github.com/users/FiwareULPGC/gists{/gist_id}","starred_url":"https://api.github.com/users/FiwareULPGC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FiwareULPGC/subscriptions","organizations_url":"https://api.github.com/users/FiwareULPGC/orgs","repos_url":"https://api.github.com/users/FiwareULPGC/repos","events_url":"https://api.github.com/users/FiwareULPGC/events{/privacy}","received_events_url":"https://api.github.com/users/FiwareULPGC/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/FiwareULPGC/tutorials.TourGuide-App","description":"FIWARE Developers Guide Application","fork":true,"url":"https://api.github.com/repos/FiwareULPGC/tutorials.TourGuide-App","forks_url":"https://api.github.com/repos/FiwareULPGC/tutorials.TourGuide-App/forks","keys_url":"https://api.github.com/repos/FiwareULPGC/tutorials.TourGuide-App/keys{/key_id}","collaborators_url":"https://api.github.com/repos/FiwareULPGC/tutorials.TourGuide-App/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/FiwareULPGC/tutorials.TourGuide-App/teams","hooks_url":"https://api.github.com/repos/FiwareULPGC/tutorials.TourGuide-App/hooks","issue_events_url":"https://api.github.com/repos/FiwareULPGC/tutorials.TourGuide-App/issues/events{/number}","events_url":"https://api.github.com/repos/FiwareULPGC/tutorials.TourGuide-App/events","assignees_url":"https://api.github.com/repos/FiwareULPGC/tutorials.TourGuide-App/assignees{/user}","branches_url":"https://api.github.com/repos/FiwareULPGC/tutorials.TourGuide-App/branches{/branch}","tags_url":"https://api.github.com/repos/FiwareULPGC/tutorials.TourGuide-App/tags","blobs_url":"https://api.github.com/repos/FiwareULPGC/tutorials.TourGuide-App/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/FiwareULPGC/tutorials.TourGuide-App/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/FiwareULPGC/tutorials.TourGuide-App/git/refs{/sha}","trees_url":"https://api.github.com/repos/FiwareULPGC/tutorials.TourGuide-App/git/trees{/sha}","statuses_url":"https://api.github.com/repos/FiwareULPGC/tutorials.TourGuide-App/statuses/{sha}","languages_url":"https://api.github.com/repos/FiwareULPGC/tutorials.TourGuide-App/languages","stargazers_url":"https://api.github.com/repos/FiwareULPGC/tutorials.TourGuide-App/stargazers","contributors_url":"https://api.github.com/repos/FiwareULPGC/tutorials.TourGuide-App/contributors","subscribers_url":"https://api.github.com/repos/FiwareULPGC/tutorials.TourGuide-App/subscribers","subscription_url":"https://api.github.com/repos/FiwareULPGC/tutorials.TourGuide-App/subscription","commits_url":"https://api.github.com/repos/FiwareULPGC/tutorials.TourGuide-App/commits{/sha}","git_commits_url":"https://api.github.com/repos/FiwareULPGC/tutorials.TourGuide-App/git/commits{/sha}","comments_url":"https://api.github.com/repos/FiwareULPGC/tutorials.TourGuide-App/comments{/number}","issue_comment_url":"https://api.github.com/repos/FiwareULPGC/tutorials.TourGuide-App/issues/comments{/number}","contents_url":"https://api.github.com/repos/FiwareULPGC/tutorials.TourGuide-App/contents/{+path}","compare_url":"https://api.github.com/repos/FiwareULPGC/tutorials.TourGuide-App/compare/{base}...{head}","merges_url":"https://api.github.com/repos/FiwareULPGC/tutorials.TourGuide-App/merges","archive_url":"https://api.github.com/repos/FiwareULPGC/tutorials.TourGuide-App/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/FiwareULPGC/tutorials.TourGuide-App/downloads","issues_url":"https://api.github.com/repos/FiwareULPGC/tutorials.TourGuide-App/issues{/number}","pulls_url":"https://api.github.com/repos/FiwareULPGC/tutorials.TourGuide-App/pulls{/number}","milestones_url":"https://api.github.com/repos/FiwareULPGC/tutorials.TourGuide-App/milestones{/number}","notifications_url":"https://api.github.com/repos/FiwareULPGC/tutorials.TourGuide-App/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/FiwareULPGC/tutorials.TourGuide-App/labels{/name}","releases_url":"https://api.github.com/repos/FiwareULPGC/tutorials.TourGuide-App/releases{/id}","deployments_url":"https://api.github.com/repos/FiwareULPGC/tutorials.TourGuide-App/deployments","created_at":"2015-07-22T07:33:11Z","updated_at":"2016-03-23T08:32:16Z","pushed_at":"2016-06-30T08:39:29Z","git_url":"git://github.com/FiwareULPGC/tutorials.TourGuide-App.git","ssh_url":"git@github.com:FiwareULPGC/tutorials.TourGuide-App.git","clone_url":"https://github.com/FiwareULPGC/tutorials.TourGuide-App.git","svn_url":"https://github.com/FiwareULPGC/tutorials.TourGuide-App","homepage":null,"size":10138,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/FiwareULPGC/tutorials.TourGuide-App/pulls/10"},"html":{"href":"https://github.com/FiwareULPGC/tutorials.TourGuide-App/pull/10"},"issue":{"href":"https://api.github.com/repos/FiwareULPGC/tutorials.TourGuide-App/issues/10"},"comments":{"href":"https://api.github.com/repos/FiwareULPGC/tutorials.TourGuide-App/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/FiwareULPGC/tutorials.TourGuide-App/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/FiwareULPGC/tutorials.TourGuide-App/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/FiwareULPGC/tutorials.TourGuide-App/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/FiwareULPGC/tutorials.TourGuide-App/statuses/0993858ab4f5acb0133ab7a5b25250ec003a0b44"}}}}
{"actor":{"display_login":"FiwareULPGC"}}