Closed jeferson-sb closed 1 year ago
User should be to add to access a knowledge base of questions and answers through API routes.
GET /questions/:id (1 question) { name: 'What is ?' } GET /answers/:id { answer: { question_id: X, text: 'This is an answer' } }
Docs: https://guides.rubyonrails.org/api_app.html Tests: https://www.betterspecs.org/
Tests:
https://github.com/thoughtbot/shoulda-matchers https://github.com/thoughtbot/factory_bot https://github.com/ffaker/ffaker
User should be to add to access a knowledge base of questions and answers through API routes.