Skip to content
New issue

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

Create dialogue consultation route #20

Closed
barbosamaatheus opened this issue Apr 30, 2020 · 0 comments · Fixed by #25
Closed

Create dialogue consultation route #20

barbosamaatheus opened this issue Apr 30, 2020 · 0 comments · Fixed by #25
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers
Milestone

Comments

@barbosamaatheus
Copy link
Owner

barbosamaatheus commented Apr 30, 2020

A route must be created using the get method at the endpoint /v1/dialog where all the dialogs registered in the database must be listed.

The user can use the query params option to filter his results, which must be available for one or more fields of the 'model'.

It will also be possible to send the page and the size of the page you want to receive through the attributes page and limit in the request headers.

The default value is page=1 and limit=10

The request should return a status 200 if all goes well. status 404 with an empty object in the body if no element is found. status 400 in case the values informed in the headres are invalid and satus 500 in case some unexpected error occurs.

In addition to the object's fields, a property called approval_rate must also be returned, which is the percentage of the number of approvals by the number of failures.

The response headrer must include the total number of items.

This route not require Authentication for use. That is will be public.

@barbosamaatheus barbosamaatheus added enhancement New feature or request good first issue Good for newcomers labels Apr 30, 2020
IsabelleMello added a commit that referenced this issue May 12, 2020
IsabelleMello added a commit that referenced this issue May 12, 2020
Add validation test to a dialog"
IsabelleMello added a commit that referenced this issue May 12, 2020
Moving to the Dialog folder"
IsabelleMello added a commit that referenced this issue May 12, 2020
IsabelleMello added a commit that referenced this issue May 16, 2020
IsabelleMello added a commit that referenced this issue May 16, 2020
IsabelleMello added a commit that referenced this issue May 16, 2020
IsabelleMello added a commit that referenced this issue May 16, 2020
IsabelleMello added a commit that referenced this issue May 16, 2020
IsabelleMello added a commit that referenced this issue May 17, 2020
barbosamaatheus added a commit that referenced this issue May 18, 2020
@barbosamaatheus barbosamaatheus added this to the Version 1.0.0 milestone May 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants