frankcollins3 / ASPokedex

Pokedex with ASP backend / razor pages, and VanillaJS front end
1 stars 0 forks source link

API endpoint retrieves the <html> of current Page [11:23pm] #13

Open frankcollins3 opened 1 year ago

frankcollins3 commented 1 year ago

attempting to do: retrieve the only pokemon data in the psql shell.

part of this comes from changing: /api/pokemon/1 to ------------> [HttpGet("{id}", Name = "GetPokemon")] Screen Shot 2023-09-19 at 11 23 39 PM

error: Screen Shot 2023-09-19 at 11 22 37 PM

proposed approach: drowning somewhat. a bit unsure tbh.

possible improvements:

frankcollins3 commented 12 months ago

tomorrow's minimum viability test route: entity framework route that returns pokeAPI data. chatGPT confirmed that entity doesn't need to return db data (even though pokeAPI is db data but it's not a local postgres db) [11:35pm]

frankcollins3 commented 12 months ago

also minimum viability will be to remove these fields from the model: pokeid, type,
[7:14am]

frankcollins3 commented 12 months ago

oof I never ran db migrations I should've known that asking chat to start over from yesterday: Screen Shot 2023-09-20 at 7 19 17 AM chat also mentioning migrations once the models are created. [like npx prisma migrate dev in react/nextJS] Screen Shot 2023-09-20 at 7 19 26 AM [7:19am]