Skip to content

Do not repport errors on unimplemented methods #77

@guignonv

Description

@guignonv

I'll try to make it short...

If you use the call https://www.crop-diversity.org/mgis5/brapi/v2/serverinfo, you'll notice the 'germplasm' call does only implement the "GET" method.

{
    "contentTypes": ["application\/json"],
    "dataTypes": ["application\/json"],
    "methods": ["GET"],
    "service": "germplasm",
    "versions": ["2.1"]
}

However, BRAVA will try and test the germplasm call with the "POST" and "PUT" method since they are part of the call definition.
image

Since my implementation is not supposed to support those methods, it will return a 501 "not implemented" while in the BrAPI specifications, only 200, 400, 401 and 403 codes are allowed.

In my opinion, BRAVA should only test methods that are declared available from the /serverinfo call.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions