Open rohitd3 opened 1 year ago
[x] Enhance APCalendar.java to provide interesting facts on years, be creative and enhance/finish provided methods. For instance, use a random number or date to complete APCalendar day-of-week method.
[x] Enhance APIs and @RESTController to work with all POJOs and APCalendar.
[x] Mapping for API call
[x] Test APIs with Browser, Curl, or Postman. Illustrate or show tangibles.
http://localhost:8085/api/calendar/firstDayOfYear/2024
http://localhost:8085/api/calendar/isLeapYear/2024
http://localhost:8085/api/calendar/dayOfYear/5/2/2024
http://localhost:8085/api/calendar/numberOfLeapYear/2000/2022
http://localhost:8085/api/calendar/dayOfWeek/5/2/2022
2.7
[x] Enhance APCalendar.java to provide interesting facts on years, be creative and enhance/finish provided methods. For instance, use a random number or date to complete APCalendar day-of-week method.
[x] Enhance APIs and @RESTController to work with all POJOs and APCalendar.
[x] Mapping for API call
[x] Test APIs with Browser, Curl, or Postman. Illustrate or show tangibles.
http://localhost:8085/api/calendar/firstDayOfYear/2024![image](https://user-images.githubusercontent.com/44128572/202659913-161102c9-760b-4851-89df-2621d7cf64ea.png)
http://localhost:8085/api/calendar/isLeapYear/2024![image](https://user-images.githubusercontent.com/44128572/202660000-2da96766-ca60-401e-bef3-cf02a3fb606c.png)
http://localhost:8085/api/calendar/dayOfYear/5/2/2024![image](https://user-images.githubusercontent.com/44128572/202660249-4ceb046e-d039-467d-b6c1-4a12f8e0eb73.png)
http://localhost:8085/api/calendar/numberOfLeapYear/2000/2022![image](https://user-images.githubusercontent.com/44128572/202660372-e099970a-0b8a-4686-aa3c-f68fb8be7463.png)
http://localhost:8085/api/calendar/dayOfWeek/5/2/2022![image](https://user-images.githubusercontent.com/44128572/202660542-05b1c51d-bb3d-4c16-8c2a-9db925bfb4ee.png)
Year.java
APCalendar.java