Revision 50860
Added by Panagiotis Kanakakis about 6 years ago
PiWikApiImpl.java | ||
---|---|---|
9 | 9 |
import org.springframework.jdbc.core.RowMapper; |
10 | 10 |
import org.springframework.stereotype.Component; |
11 | 11 |
import org.springframework.web.bind.annotation.PathVariable; |
12 |
import org.springframework.web.bind.annotation.RequestBody; |
|
12 | 13 |
|
13 | 14 |
import javax.annotation.PostConstruct; |
14 | 15 |
import javax.sql.DataSource; |
... | ... | |
52 | 53 |
} |
53 | 54 |
|
54 | 55 |
@Override |
55 |
public PiwikInfo savePiwikInfo(PiwikInfo piwikInfo) { |
|
56 |
public PiwikInfo savePiwikInfo(@RequestBody PiwikInfo piwikInfo) {
|
|
56 | 57 |
JdbcTemplate jdbcTemplate = new JdbcTemplate(dataSource); |
57 | 58 |
jdbcTemplate.update(INSERT_PIWIK_INFO, new Object[]{piwikInfo.getRepositoryId(), piwikInfo.getSiteId(), piwikInfo.getRequestorName(), |
58 | 59 |
piwikInfo.getRequestorEmail(), piwikInfo.isValidated(), piwikInfo.getRepositoryName(), piwikInfo.getCountry(), piwikInfo.getAuthenticationToken()}, |
Also available in: Unified diff
1. Broker api bug fixes on urls
2. Piwik changes on methods.
3. Validator url changes