Resolve "Rest API should follow google guidlines"
Compare changes
- Piotr Gawron authored
+ 447
− 679
@@ -11,6 +11,7 @@ var request = require('request');
@@ -84,6 +85,10 @@ ServerConnector.readFile = function(url, description) {
@@ -96,7 +101,8 @@ ServerConnector._readFile = function(url) {
@@ -114,7 +120,8 @@ ServerConnector.sendPostRequest = function(url, params) {
@@ -131,7 +138,8 @@ ServerConnector.sendPutRequest = function(url, params) {
@@ -141,14 +149,35 @@ ServerConnector.sendPutRequest = function(url, params) {
@@ -156,19 +185,25 @@ ServerConnector.sendDeleteRequest = function(url, params) {
@@ -191,7 +226,7 @@ ServerConnector.getServerBaseUrl = function() {
@@ -203,8 +238,25 @@ ServerConnector.createGetParams = function(params) {
@@ -215,195 +267,133 @@ ServerConnector.getApiUrl = function(paramObj) {
@@ -436,359 +426,149 @@ ServerConnector.columnsToString = function(columns) {
@@ -803,21 +583,21 @@ ServerConnector.getLoggedUser = function() {
@@ -825,12 +605,12 @@ ServerConnector.getUser = function(userId) {
@@ -848,14 +628,14 @@ ServerConnector.getOverlayElements = function(overlayId, projectId) {
@@ -875,14 +655,17 @@ ServerConnector.getOverlayElements = function(overlayId, projectId) {
@@ -920,13 +703,15 @@ ServerConnector.getMaxSearchDistance = function() {
@@ -934,12 +719,15 @@ ServerConnector.getOverlayById = function(layoutId, projectId) {
@@ -952,16 +740,14 @@ ServerConnector.getReactions = function(params) {
@@ -979,12 +765,16 @@ ServerConnector.getLightComments = function(params) {
@@ -1011,12 +801,16 @@ ServerConnector.getSessionData = function(project) {
@@ -1029,55 +823,39 @@ ServerConnector.getClosestElementsByCoordinates = function(params) {
@@ -1090,12 +868,13 @@ ServerConnector.getElementsByQuery = function(params) {
@@ -1108,12 +887,13 @@ ServerConnector.getDrugsByQuery = function(params) {
@@ -1126,12 +906,13 @@ ServerConnector.getMiRnasByQuery = function(params) {
@@ -1144,59 +925,67 @@ ServerConnector.getChemicalsByQuery = function(params) {
@@ -1204,25 +993,25 @@ ServerConnector.getProjectSourceDownloadUrl = function(params) {
@@ -1235,13 +1024,14 @@ ServerConnector.getDrugNamesByTarget = function(params) {
@@ -1254,13 +1044,14 @@ ServerConnector.getMiRnaNamesByTarget = function(params) {
@@ -1273,82 +1064,70 @@ ServerConnector.getChemicalNamesByTarget = function(params) {
@@ -1356,12 +1135,9 @@ ServerConnector.getSuggestedQueryList = function(projectId) {
@@ -1369,17 +1145,8 @@ ServerConnector.getSuggestedQueryList = function(projectId) {
@@ -1388,12 +1155,15 @@ ServerConnector.getPublications = function(params) {
@@ -1401,10 +1171,8 @@ ServerConnector.getPublications = function(params) {