-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add server version, date created and date edited to Practitioner and Organization Resources #1047
Add server version, date created and date edited to Practitioner and Organization Resources #1047
Conversation
import static org.opensrp.web.Constants.PAGE_NUMBER; | ||
import static org.opensrp.web.Constants.PAGE_SIZE; | ||
import static org.opensrp.web.Constants.TOTAL_RECORDS; | ||
import static org.opensrp.web.Constants.*; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Avoid wildcard imports
import static org.opensrp.web.Constants.ORDER_BY_TYPE; | ||
import static org.opensrp.web.Constants.PAGE_NUMBER; | ||
import static org.opensrp.web.Constants.PAGE_SIZE; | ||
import static org.opensrp.web.Constants.*; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Avoid wild card imports
|
||
@Controller | ||
@RequestMapping(value = "/rest/practitioner") | ||
public class PractitionerResource { | ||
|
||
private static Logger logger = LogManager.getLogger(PractitionerResource.class.toString()); | ||
|
||
public static Gson gson = new GsonBuilder().registerTypeAdapter(DateTime.class, new TaskDateTimeTypeConverter()) | ||
.registerTypeAdapter(LocalDate.class, new DateTypeConverter()).create(); | ||
public static Gson gson = new GsonBuilder().setDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can the date format be moved to a constant (constants file)
* update dependencies to fix security vulnerabilities * update swaggerConfig test * fix organizationResourceTests * update DiskSpaceMetrics package
See opensrp/opensrp-server-core#521 for details