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

Create route to POST pokemon to a collection #5

Open
maxitect opened this issue Nov 12, 2024 · 1 comment
Open

Create route to POST pokemon to a collection #5

maxitect opened this issue Nov 12, 2024 · 1 comment
Assignees

Comments

@maxitect
Copy link
Contributor

No description provided.

@maxitect maxitect converted this from a draft issue Nov 12, 2024
@maxitect
Copy link
Contributor Author

maxitect commented Nov 18, 2024

Incoming object

{
"name": "cute pokemon",
"themeId": 1,
"likes": 0,
"password": "xyz",
"pokemonIds": [1,5,8,25,90],
}

Password - you have to hash it and rename to "password_hash" (low priority)

PokemonIds - you need to populate these ids to the PokemonCollections table, each row repeating the id of the collection with the id of the pokemon

@Gaajia Gaajia self-assigned this Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Progress
Development

No branches or pull requests

2 participants