-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Labels
backendThis is a backend issueThis is a backend issue
Description
Is your feature request related to a problem? Please describe.
We need to integrate algolia search to make searching articles faster.
Describe the solution you'd like:
- Create article index
- Update article index
- Remove article index
Models
None
Schemas
None
API Routes
Article CRUD Routes
| Endpoints | HTTP Method | Description | Tested |
|---|---|---|---|
| {{APIURL}}/api/articles | POST | Create Article | |
| {{APIURL}}/api/articles{{slug}} | PUT | Update Article | |
| {{APIURL}}/api/articles{{slug}} | DELETE | Delete Article |
Create/Edit Functions
Edit Article routes in
backend/conduit/articles/views.py
- Modify the make_article route to create an index when the article is created
- Modify the update_article route to update an index
- Modify the delete_article route to delete an index
Additional context
- Should create the algoliasearch instance within
backend/conduit/app.py. This should be made in the create_app function - I would suggest using, https://www.algolia.com/doc/guides/getting-started/quick-start/tutorials/quick-start-with-the-api-client/python/?language=python as a reference on how to use the algoliasearch api with python
Metadata
Metadata
Assignees
Labels
backendThis is a backend issueThis is a backend issue