This is a backend application for managing newsreader details and work schedules for a news channel. It provides endpoints for adding, updating, deleting, and viewing newsreader details, as well as adding work schedule details for each newsreader and displaying their total hours of work.
- Add news reader details:
- Endpoint:
localhost:8080/newsreader
- Method: POST
- Request Body: JSON object containing news reader details (e.g., name, email, phone number, designation, etc.)
- Endpoint:
- Update newsreader details:
- Endpoint:
localhost:8080/newsreader/{id}
- Method: PUT
- Request Body: JSON object containing updated news reader details
- Endpoint:
- Delete newsreader details:
- Endpoint:
localhost:8080/newsreader/{id}
- Method: DELETE
- Path Parameter: ID of the news reader to be deleted
- Endpoint:
- View all newsreader details:
- Endpoint:
localhost:8080/newsreaders
- Method: GET
- Response: JSON array containing all news reader details
- Endpoint:
- Add work schedule details for a newsreader:
- Endpoint:
localhost:8080/newsreader/{id}/workschedule
- Method: POST
- Path Parameter: ID of the news reader
- Request Body: JSON object containing work schedule details (e.g., news_prg_name, date, start time, end time)
- Endpoint:
- Display the total hours of work for a news reader:
- Endpoint:
localhost:8080/newsreader/{id}/totalhours
- Method: GET
- Path Parameter: ID of the news reader
- Response: JSON object containing total hours worked by the news reader
- Endpoint:
-
NewsReader:
- Attributes: Name, Age, phone, designation, etc.
-
WorkSchedule:
- Attributes: News Program Name, Date, Start Time, End Time
The code for this project is available on GitHub: News Channel Backend Repository
Please find the testing video of the endpoints here
For any further information or issues, please contact Twitter.