Skip to content

Commit

Permalink
*Fixes buses positions order
Browse files Browse the repository at this point in the history
*Adds header to docs
  • Loading branch information
LaercioSantana committed Jul 4, 2016
1 parent 0f33a1f commit eda8eb6
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
11 changes: 9 additions & 2 deletions apidoc.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
{
"name": "Bus Tracker API",
"version": "0.1.0",
"description": "Bus Tracker API",
"title": "Bus Tracker API",
"url" : "https://host/BusTrackerAPI/index.php"
"url" : "http://host/BusTrackerAPI/index.php",
"header": {
"title": "Start",
"filename": "header.md"
},
"order": [
"Routes",
"Bus"
]
}


Expand Down
10 changes: 0 additions & 10 deletions apidoc.json-bak

This file was deleted.

1 change: 1 addition & 0 deletions application/models/Bus_model.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public function getLastLocalizations($idBus , $limit){
return $this->db->select(self::lastLocalizationsTable.'.latitude, '.self::lastLocalizationsTable.'.longitude, '.self::lastLocalizationsTable.'.date')
->from(self::lastLocalizationsTable)
->where(self::lastLocalizationsTable.".id_bus = {$idBus}")
->order_by("date", "desc")
->limit($limit,0)
->get()->result();
}
Expand Down
2 changes: 2 additions & 0 deletions header.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Esta é a referência da API REST do sistema Bus Tracker.
Através dela é possível gerenciar os recursos disponibilizados pelo Bus Tracker.

0 comments on commit eda8eb6

Please sign in to comment.