iHub-PTI / ihub-core

GNU Affero General Public License v3.0
1 stars 0 forks source link

public /doctors endpoint returning private data #3

Closed pA1nD closed 3 years ago

pA1nD commented 4 years ago

This is an example of the current response in the /doctors endpoint:

{
        "addressDescription": "A dos cuadras de la comisaria septima",
        "birthDate": "1988-09-06",
        "city": "Ciudad del Este",
        "email": "rubenlop88@gmail.com",
        "familyName": "Lopez",
        "gender": "male",
        "givenName": "Ruben",
        "id": "90",
        "languages": [
            "es",
            "gn"
        ],
        "license": "",
        "neighborhood": "San Jose",
        "phone": "0975773655",
        "specializations": [],
        "street": "Mariscal Lopez"
    },

Fields, such as phone should not be public. See the public fields here: https://ihub-docs.netlify.app/docs/ihub-docs/doctor

rubenlop88 commented 4 years ago

Fixed.