-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
As we discussed last week, we will need to have a different definition of errors or status when querying all entry points. The broker will need to retrieve multiple statuses for multiple entry points. We have multiple options here:
- I think @edeutsch mention this option. Add a parameter called for examples,
statusesand then we can attach the error as another object in the response. Like (http://www.peptideatlas.org/api/proxi/v0.1/psms?resultType=compact&accession=PXD005942):
[
{
"peptideSequence": "LSSPATLNSR",
"usi": "mzspec:PXD005942:030219_ywt_sf-39:scan:10:LSSPATLNSR/2"
},
{
"peptideSequence": "APLVCLPVFVSR",
"usi": "mzspec:PXD005942:030219_ywt_sf-39:scan:120:APLVC[Carbamidomethyl]LPVFVSR/2"
},
]
{
errors: []
}- The second option is to encode the data into one part of the object and the errors in another Like:
{
data: [
{
"peptideSequence": "LSSPATLNSR",
"usi": "mzspec:PXD005942:030219_ywt_sf-39:scan:10:LSSPATLNSR/2"
},
{
"peptideSequence": "APLVCLPVFVSR",
"usi": "mzspec:PXD005942:030219_ywt_sf-39:scan:120:APLVC[Carbamidomethyl]LPVFVSR/2"
},
],
errors: []
}The second approach define a global object with two parts data and errors.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels