Project

General

Profile

« Previous | Next » 

Revision 49966

added @RequestParam to POST methods

View differences:

DatasourcesApiController.java
193 193

  
194 194
	@Override
195 195
	@RequestMapping(value = "/ds/latitude", method = RequestMethod.POST)
196
	public void updateLatitude(final String dsId, final Double latitude) throws ApiException {
196
	public void updateLatitude(@RequestParam final String dsId, @RequestParam final Double latitude) throws ApiException {
197 197
		dsDao.updateLatitude(dsId, latitude);
198 198
	}
199 199

  
200 200
	@Override
201 201
	@RequestMapping(value = "/ds/longitude", method = RequestMethod.POST)
202
	public void updateLongitude(final String dsId, final Double longitude) throws ApiException {
202
	public void updateLongitude(@RequestParam final String dsId, @RequestParam final Double longitude) throws ApiException {
203 203
		dsDao.updateLongitude(dsId, longitude);
204 204
	}
205 205

  
206 206
	@Override
207 207
	@RequestMapping(value = "/ds/logourl", method = RequestMethod.POST)
208
	public void updateLogourl(final String dsId, final String logourl) throws ApiException {
208
	public void updateLogourl(@RequestParam final String dsId, @RequestParam final String logourl) throws ApiException {
209 209
		dsDao.updateLogourl(dsId, logourl);
210 210
	}
211 211

  
212 212
	@Override
213 213
	@RequestMapping(value = "/ds/timezone", method = RequestMethod.POST)
214
	public void updateTimezone(final String dsId, final String timezone) throws ApiException {
214
	public void updateTimezone(@RequestParam final String dsId, @RequestParam final String timezone) throws ApiException {
215 215
		dsDao.updateTimezone(dsId, timezone);
216 216
	}
217 217

  
218 218
	@Override
219 219
	@RequestMapping(value = "/ds/typology", method = RequestMethod.POST)
220
	public void updateTypology(final String dsId, final String typology) throws ApiException {
220
	public void updateTypology(@RequestParam final String dsId, @RequestParam final String typology) throws ApiException {
221 221
		dsDao.updateDatasourceTypology(dsId, typology);
222 222
	}
223 223

  
224 224
	@Override
225 225
	@RequestMapping(value = "/ds/registeredby", method = RequestMethod.POST)
226
	public void updateRegisteringUser(final String dsId, final String registeredBy) throws ApiException {
226
	public void updateRegisteringUser(@RequestParam final String dsId, @RequestParam final String registeredBy) throws ApiException {
227 227
		dsDao.updateDatasourceRegisteringUser(dsId, registeredBy);
228 228
	}
229 229

  

Also available in: Unified diff