Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement get post and create post services and api routes #18

Merged
merged 9 commits into from
Mar 30, 2023

Conversation

wastilla
Copy link
Contributor

Fix Circular import issue by searching for existing user in API route before creating a post object in the database

Use fetched user as an UserEntity parameter when storing the post

Copy link
Contributor

@aayush110 aayush110 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Will! Thank you for the progress! This looks awesome. Great job!

@wastilla wastilla merged commit 83e446f into 2-sol-posts Mar 30, 2023
wastilla added a commit that referenced this pull request Mar 30, 2023
* Created post data model (#12)

Add Post datamodel

* Add post entity (#13)

Add post entity

* Build forum post frontend part 1 (#16)

* build forum post frontend part 1

* created viewforum as a page to look at all forums

* Start working on forwarding form responses to the viewforum component.

* Clean up whitespace on makeforum.

* Edited onSuccess to include dynamic responses as input comes in. Created VewForm HTML similar to STATS page.

---------

Co-authored-by: angelinasu57 <[email protected]>

* Finish creating viewForum component HTML to show form responses. (#17)

* Finish creating viewForum component HTML with Response, First and Last name, and date for each form response.

* Add in Last Name in the table to keep track of the responses, as per suggestion.

* Adjusted endpoints and remove comments.

* Implement get post and create post services and api routes (#18)


Implement create and getall API routes top down to retrieve and create posts
- Created post service file
- Implement create and get All method in post service
- Implement api routes and Sqlchemy table for PostEntity
- Implement New findUsers method in UserService
- Implement fully functional post service

* Integrate frontend and backend

Fully integrate frontend with backend enabling viewing list of posts and creating posts via API endpoints

* Build unit tests that cover post service (#22)

* Add finishing touches to Views as well as error handling 

Add styling to HTML elements and navigation between forum pages.
Implement error handling for post creation

---------

Co-authored-by: Warren Quadland <[email protected]>
Co-authored-by: Aayush Mehra <[email protected]>
Co-authored-by: angelinasu57 <[email protected]>
Co-authored-by: Angelina Su <[email protected]>
@wastilla wastilla linked an issue Apr 3, 2023 that may be closed by this pull request
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement Backend API routes for creating and retrieving posts
2 participants