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

Return response as csv #63

Merged
merged 3 commits into from
May 20, 2020
Merged

Return response as csv #63

merged 3 commits into from
May 20, 2020

Conversation

cristianpb
Copy link
Member

For route '/search', when header has "Accept: application/csv" the response will be a csv with the matching identities.

The csv includes the following properties:

  'score', 'source', 'id',
  'name', 'firstName', 'lastName',
  'sex', 'birthDate', 'birthCity',
  'cityCode', 'departmentCode', 'country',
  'countryCode', 'latitude', 'longitude',
  'deathDate', 'certificateId', 'age',
  'deathCity', 'cityCode', 'departmentCode',
  'country', 'countryCode', 'latitude', 'longitude'

I think they should be renamed using the modifications on #62

@cristianpb cristianpb requested a review from rhanka May 20, 2020 09:20
@cristianpb cristianpb linked an issue May 20, 2020 that may be closed by this pull request
@cristianpb cristianpb force-pushed the feat/return-csv-response branch from e80a772 to bd4dba5 Compare May 20, 2020 13:48
@cristianpb cristianpb merged commit 9be4c0b into dev May 20, 2020
@cristianpb cristianpb deleted the feat/return-csv-response branch May 20, 2020 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Search route to return csv
1 participant