codebuddies / backend

CodeBuddies back-end
https://codebuddies.org
GNU General Public License v3.0
20 stars 25 forks source link

[Tooling] Add GET endpoint for search to POSTMAN #149

Closed lpatmo closed 4 years ago

lpatmo commented 4 years ago

Acceptance Criteria

[ ] Add /api/v1/resources/?search=KEYWORD as a GET endpoint to Postman [ ] Final Postman collection should look something like: image

Ticket estimate

2 (small)

BethanyG commented 4 years ago

Please note that we currently only have a very basic search filter enabled in DRF. See issue #22 for some additional context.

Current search fields are: 'guid', 'media_type', 'title', & 'description'.

author, user, tags, url (main & referring), date_published, date_created, date_modified, and paid are not searched.

lpatmo commented 4 years ago

I believe @watchtheblur started working on this in a new branch, so he'll make a PR for it soon.

watchtheblur commented 4 years ago

The collection currently committed doesn't have the "PATCH a resource" in the screenshot above. Is that ok?

lpatmo commented 4 years ago

I think that's ok! I just realized I created a PATCH endpoint for myself, and we should get that into Postman too, but another issue/PR for that is fine.