Skip to content

Discussing the API's format uniformity #26

@RockerFlower

Description

@RockerFlower

If a specific GitPOAP Event is not found when querying for it, for example,

https://public-api.gitpoap.io/v1/gitpoaps/1024/addresses

the result returned is:

{
    "message": "GitPOAP not found"
}

When scanning for all GitPOAPs held by an invalid address, for example,

https://public-api.gitpoap.io/v1/address/superphiz.eat/gitpoaps

the result returned is:

{
    "msg": "undefined is not a valid address"
}

I think two similar errors should be in the same format, with msg or message.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions