You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am currently integrating the Part-DB API with an application that requires search functionality similar to what is available on the Part-DB web interface. Specifically, I am trying to replicate the behavior where typing a keyword (e.g., "10k") into the search box returns all relevant parts across multiple fields.
Here are the steps and issues I've encountered so far:
1. API Authentication:
I have successfully authenticated and can access various endpoints using my API token.
2. Search Endpoint:
I am using the /api/parts endpoint for my search queries.
3. Query Parameters:
To replicate the web interface search, I have tried querying across multiple fields such as name, description, tags, comment, and manufacturer_product_number. Here is an example of my API call:
curl -X GET "https://inventory.resonancegroupusa.com/api/parts?page=1&itemsPerPage=30&description=%2510k%25" \
-H "Authorization: Bearer <api_token>"
Despite these efforts, the results do not match what I see when I use the search box on the Part-DB web interface. For example, the web interface returns 7 results for "10k", but the API call returns 2 results.
Questions:
Which fields does the Part-DB web interface search box query by default?
Are there specific query parameters or techniques I should be using to ensure comprehensive search results similar to the web interface?
Is there a recommended way to perform a keyword search across all relevant fields using the API?
Any guidance or examples would be greatly appreciated. Thank you in advance for your help!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello Part-DB Community,
I am currently integrating the Part-DB API with an application that requires search functionality similar to what is available on the Part-DB web interface. Specifically, I am trying to replicate the behavior where typing a keyword (e.g., "10k") into the search box returns all relevant parts across multiple fields.
Here are the steps and issues I've encountered so far:
1. API Authentication:
I have successfully authenticated and can access various endpoints using my API token.
2. Search Endpoint:
I am using the /api/parts endpoint for my search queries.
3. Query Parameters:
To replicate the web interface search, I have tried querying across multiple fields such as name, description, tags, comment, and manufacturer_product_number. Here is an example of my API call:
Despite these efforts, the results do not match what I see when I use the search box on the Part-DB web interface. For example, the web interface returns 7 results for "10k", but the API call returns 2 results.
Questions:
Any guidance or examples would be greatly appreciated. Thank you in advance for your help!
Best regards,
Jason
Beta Was this translation helpful? Give feedback.
All reactions