Workshop created to give to API and the workshop returned are different. New interface was put in to reflect it. Host and id have been taken away from the workshop interface that is given to the API call.
createWorkshop(title: string, description: string, location: string, date: string, hostid: number)
Returns the correct workshop, which includes the host and workshop id in case it is needed. Updated input to not need a dummy user.
Workshop Create Component HTML:
Connected component form to HTML form
fix typo -> pronouns to description
Workshop Create Component:
New interface to reflect the returned workshop that has the host and an id.
onSuccess(crtedWorkshop: WorkshopReturned)
Reflects the new interface of the returned workshop instead of the old one.
...and connected html to component
Updated:
Workshop create service:
Workshop Create Component HTML:
Workshop Create Component: