Skip to content

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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