ReneRanzinger / IFEDS-backend

Serverside backend for the Infrastructure For Experimental Data Sharing
GNU General Public License v3.0
1 stars 1 forks source link

getSample not providing sample descriptor information #78

Closed Anubhav2201 closed 4 years ago

akshaykokane commented 4 years ago

This is the resulting JSON. I guess the sample descriptor already present. Please check!

{
    "sampleId": 59,
    "name": "test76",
    "sample_type_id": 1,
    "description": "hello world",
    "url": "google.com",
    "sampleDescriptors": [
        {
            "sampleDescriptor": {
                "sampleDescriptorId": 1,
                "name": "Species",
                "description": "Organism that the sample was derived from.",
                "namespace": "Homo Sapiens",
                "url": "https://www.ncbi.nlm.nih.gov/taxonomy",
                "linkPattern": null
            },
            "value": "test",
            "unitOfMeasurement": "test"
        },
        {
            "sampleDescriptor": {
                "sampleDescriptorId": 2,
                "name": "Tissue",
                "description": "Tissue the sample was derived from.",
                "namespace": "Smooth muscle",
                "url": "https://www.nlm.nih.gov/mesh/meshhome.html",
                "linkPattern": null
            },
            "value": "test2",
            "unitOfMeasurement": "null"
        }
    ]
}
Anubhav2201 commented 4 years ago

Can you please check on the Own Sample Page. And let me know if there is any issue

akshaykokane commented 4 years ago

@Anubhav2201 the issue is resolved now. Please check!

akshaykokane commented 4 years ago

Resolved

[
    {
        "sampleId": 1,
        "name": "Differenciated smooth muscle cell",
        "sample_type_id": 3,
        "description": "Smooth muscle cell derived after differentiation from human embryonic stem cell.",
        "url": null,
        "sampleDescriptors": [
            {
                "sampleDescriptor": {
                    "sampleDescriptorId": 1,
                    "name": "Species",
                    "description": "Organism that the sample was derived from.",
                    "namespace": "Homo Sapiens",
                    "url": "https://www.ncbi.nlm.nih.gov/taxonomy",
                    "linkPattern": null
                },
                "value": "Random",
                "unitOfMeasurement": ""
            }
        ]
    }
]

https://glygen.ccrc.uga.edu/ifeds/api/getSample