phenopolis / phenopolis_genomics_browser

Python API and React frontend for the Phenopolis Genomics Browser
https://dev-live.phenopolis.org
MIT License
31 stars 2 forks source link

add endpoint to delete user_individuals #187

Closed priesgo closed 4 years ago

priesgo commented 4 years ago

This adds an endpoint to delete entries from table user_individuals

DELETE localhost:5000/user-individual

Payload:
[
    {
        "user":"test_creation3",
        "internal_id":"PH00008635"
    },
    {
        "user":"test_creation3",
        "internal_id":"PH00008636"
    }
]

Error conditions:

NOTE: I tested this manually using Postman, I didn't know how to add a test on a method that requires a payload in the request (ie: a POST or DELETE method). Any hint on how to do this? I see this FixApi has some support for this but I could not find an example on how to use it.

pontikos commented 4 years ago

This looks good to me, let me know if you want me to merge?

priesgo commented 4 years ago

It is fine for me.