Skip to content

Is the code field in the json object a string or an integer ? #65

@turtlean

Description

@turtlean

I'm working on the implementation of delete_facility in resource map by using the fred api.
I've got a question about the "Delete a facility" section in the api. I don't know which class the code field of the json object that must be returned belongs to.

Status: 200 ok. {code: 200, id:'...', message: 'Resource deleted'}
So it makes me think that the code field is numeric.

Anyway if the resource for id is not found:

Status: 404 Not Found. {code: 404 Not Found, message: 'Resource not found'}
So it makes me think that it should be a string.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions