Skip to content
This repository has been archived by the owner on Feb 22, 2024. It is now read-only.

Latest commit

 

History

History
39 lines (35 loc) · 1.45 KB

README.adoc

File metadata and controls

39 lines (35 loc) · 1.45 KB

DukeCon Feedback Server

DukeCon Feedback Server

REST URLs

  • PUT rest/feedback/event/{conferenceId}/{eventId}

    • saves feedback for conference and event id with user principal information

    • request body: FeedbackInput(int rating, String comment)

    • returns 201 if feedback is created

    • returns 401 if no valid auth context (bearer token) exists

  • test REST URLs with IntelliJ HTTP Client (New → HTTP Request)

    • sample requests under /samples

      • get-token.http (get bearer token)

      • put-feedback.http (replace bearer token with current one)

DB

  • H2 in local dev mode (default Spring profile)

  • PostgreSQL

    • in staging and production use Spring profile: postgresql

    • for local/developer testing (and testcontainers) use Spring profile: postgresql-local

  • db migration with flyway

TODOs

  • remove GET REST resource from FeedbackController

  • add further return status codes

    • 200 if feedback has been overwritten

    • 403 if feedback is not allowed (anymore), e.g. too late or early

  • configure logging dependency (SLF4j or Logback)

  • retrieve DukeCon Server conference list for checking valid feedback client requests

  • add timestamp to feedback db table