This test should take around 2 hours.
- Fork Repo
- Set up a new Drupal 9 instance.
- DDEV is quite easy to set up, otherwise docker.
- Clone teleprompter into
modules/custom - Enable Teleprompter Module
- Ensure dependancies are met: restui, views
- Enable REST on endpoint on ('/api/v1/teleprompter/question') as it will currently provide a 500
- Allow Basic Auth on the endpoint
- Accept a POST request from Authenticated Users
- Ensure only alpha characters(Max 255) are present in the "question" field and that the only field present is "question"; otherwise fail the request with 400 and return appropriate message
- Format example can be found in /tests/question.json
- Create a question entity
- Set the Status to "show"
- Return a 201 with appropriate message
- Update Teleprompter View to include the User's First name and Surname
- Add the changes to config/install
- Write some appropriate unit tests
- Update View to automatically refresh every 30 seconds(AJAX)
- Sanitise the question by making the first character capitalised and the last character is "?" if not present.
- Create a service to perform sanitisation