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

Feat/93/add geom count fields to api #52

Merged
merged 3 commits into from
Mar 10, 2023

Conversation

sergiomarrocoli
Copy link
Contributor

@sergiomarrocoli sergiomarrocoli commented Mar 9, 2023

https://unep-wcmc.codebasehq.com/projects/data-infrastructure-refactor/tickets/93

Add the new geom count fields to the api response and documentation.

Testing:

start app rackup
get an api token from the database:

RAILS_ENV=development bundle exec irb
$LOAD_PATH.unshift("#{File.dirname(__FILE__)}"); require 'config/environment.rb'; require 'lib/mailer.rb'
ApiUser.last.token

query the endpoints:

http://localhost:9292/v3/countries?token={{token}}
http://localhost:9292/v3/countries/ZWE?token={{token}}

New fields should appear in the statistics section (:oecm_polygon_count, :oecm_point_count, :protected_area_polygon_count, :protected_area_point_count)

Check documentation at http://localhost:9292/documentation

@sergiomarrocoli sergiomarrocoli requested a review from pazolka March 9, 2023 09:25
@pazolka pazolka merged commit 49a9055 into develop Mar 10, 2023
@pazolka pazolka deleted the feat/93/add-geom-count-fields-to-api branch March 10, 2023 15:32
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.

2 participants