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

Predicate search returning incorrect HTTP status #370

Open
MattBlissett opened this issue Dec 10, 2024 · 0 comments
Open

Predicate search returning incorrect HTTP status #370

MattBlissett opened this issue Dec 10, 2024 · 0 comments

Comments

@MattBlissett
Copy link
Member

https://api.gbif.org/v1/occurrence/search/predicate should return 200, not 201.

curl -X 'POST' \
  'https://api.gbif.org/v1/occurrence/search/predicate' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "predicate": {
    "type": "and",
    "predicates": [
      {
        "type": "equals",
        "key": "COUNTRY",
        "value": "FR"
      },
      {
        "type": "equals",
        "key": "YEAR",
        "value": "2017"
      }
    ]
  }
}'
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

No branches or pull requests

1 participant