We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Implement endpoints to allow users to retrieve a single FAQ inquiry.
/api/v1/faqs/{id}
To allow users to view a specific FAQ inquiry if needed.
id
Users should be able to retrieve an FAQ inquiry by ID.
curl -X GET {rootdomain}/api/v1/faqs/{id} \ -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
{ "status_code": 200, "data": { "id": 1, "question": "Sample question?", "answer": "Sample answer." } }
{ "status_code": 404, "message": "FAQ Inquiry does not exist." }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description
Implement endpoints to allow users to retrieve a single FAQ inquiry.
Acceptance Criteria
GET
/api/v1/faqs/{id}
Purpose
To allow users to view a specific FAQ inquiry if needed.
Requirements
id
before performing operations.Expected Outcome
Users should be able to retrieve an FAQ inquiry by ID.
Tasks
/api/v1/faqs/{id}
to fetch a single FAQ inquiry.id
and ensure inquiry exists before retrieval.Example Requests (With Auth Token)
GET Request
curl -X GET {rootdomain}/api/v1/faqs/{id} \ -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
Response (Success)
Response (Error - Not Found)
Testing
The text was updated successfully, but these errors were encountered: