biocompute-objects / portal_userdb

1 stars 1 forks source link

User Redirect for BCO editing #279

Closed HadleyKing closed 9 months ago

HadleyKing commented 9 months ago

It's unclear what the best link to send users to once we get the results from the above listing, though that may become more obvious when the endpoint is working. i.e. is it https://biocomputeobject.org/${object_id}?

HadleyKing commented 9 months ago

There is a new API for this: When submitting an object you will use https://biocomputeobject.org/users/bcodb/draft_bco/add. This can take a JWT or not. If submitted with a JWT it is only available to the same JWT. If not the object is available to anyone with the UUID. The successful response will be

{ "object_id": "https://biocomputeobject.org/builder?dadb6048-61a3-421d-8d95-8d17e027fcd6" }

This is the URL to redirect to.