PrimeAcademy / shawl-syllabus

1 stars 2 forks source link

API search router #12

Closed dylanroets closed 1 year ago

dylanroets commented 1 year ago

Description

Your Name

https://github.com/dylanroets

What do you want to happen? Receive nfl player info with an api search

What is actually happening?

No errors, just not receiving any information from the API. I'm being pulled in two directions on how to format my router. The API says one way but I'm also following my notes on how I've done it previously. Neither have worked.

UPDATE, received some information and got further with the help of Victoria but still blocked from making progress. The search string in API isn't working in postman, but I was able to receive some search data on 'derek' in my terminal

Screen Shot 2023-01-09 at 2 26 53 PM

Screenshots / Code Snippets

Screen Shot 2023-01-09 at 2 28 25 PM

What did you try? Who did you ask?

Veronica helped me a bunch reading through some of the documentation. Got things almost working. Still missing something and spinning my wheels

I've been using postman to try and get the search results. Also reading documentation for the API

What branch is your code on? Did you git push?

It's in the search.router. It's the only GET function

code committed

When was the last time you took a break?

Lunch and 10 minutes ago

DoctorHowser commented 1 year ago

mismatch of params vs query. postman was pointed at localhost incorrectly, but the router was fine.