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

Search via Name #170

Closed
ChrisMGeo opened this issue Sep 8, 2022 · 1 comment
Closed

Search via Name #170

ChrisMGeo opened this issue Sep 8, 2022 · 1 comment

Comments

@ChrisMGeo
Copy link
Contributor

I'm still pretty new to this API and API's in general, but I was wondering if we could add a PUT or POST request to get a resource using a vague name. For example, my use case has a different format for storing character names, e.g. Albedo, HuTao, etc, and I want to search for their corresponding character resource so I would send a post or put request with a json body like

{
  "name": "Albedo", //HuTao
  "type":"character", // or characters if that helps
}

This returns what is basically on api.genshin.dev/characters/albedo and api.genshin.dev/characters/hu-tao.

@ChrisMGeo
Copy link
Contributor Author

ChrisMGeo commented Sep 10, 2022

Oh ok I got it now so you do api.genshin.dev/characters/all?name=Albedo

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

No branches or pull requests

1 participant