APWG / ecx2-openapi-doc

An OpenAPI (or Swagger) document to describe the eCX API.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The fields and filters objects work differently than documented.

patcain opened this issue · comments

if i do a POST /api/v1/cryptocurrency-addresses with a body of
{
"fields": [ "id" ]
}
I get an error:
{
"type": "invalid_request_error",
"code": "validation_failed",
"message": "The 'source' field is required (and 7 more errors)",
"errors": {
"source": [
"The 'source' field is required"
] }

This seems odd.

This is a documentation error. Each eCX module has FIVE endpoints. Get/Get{id}/POST/Put{id} ... and ... search. The search endpoint is where one does all the filtering.