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

Add average-salary get endpoint #48

Merged
merged 3 commits into from
Feb 9, 2022
Merged

Conversation

elhmn
Copy link
Member

@elhmn elhmn commented Feb 8, 2022

This pull request add the GET average-salary endpoint

Steps to verify:

  • move to the backend folder with cd ./backend
  • run make start-postrges to run an initialized database
  • run make run to launch the api
  • then run the command curl -X GET localhost:7000/average-rating you should see something like this
{"rating":3,"salary":2543437}

@elhmn elhmn linked an issue Feb 8, 2022 that may be closed by this pull request
@elhmn elhmn requested a review from Asam237 February 8, 2022 20:27
@Asam237
Copy link
Member

Asam237 commented Feb 9, 2022

add_salary

@elhmn
Copy link
Member Author

elhmn commented Feb 9, 2022

add_salary

try with these average-rating

@Asam237
Copy link
Member

Asam237 commented Feb 9, 2022

Its good
average-rating

@elhmn elhmn merged commit 6001b56 into main Feb 9, 2022
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.

add an Endpoint to the backend for the average salary.
2 participants