p-parkinson / BDNE

MIT License
0 stars 0 forks source link

Function to get table by table ID #4

Open hidonkey2018 opened 5 months ago

hidonkey2018 commented 5 months ago

Create a function to get table by using table ID

hidonkey2018 commented 5 months ago

When give Table ID found, it will return SmallDataTable Object If give Table ID not found , it will reutrn 'nothing' However, the API will return '403, not authorised but not code 404' when passing in a unexist table id Just wonder, 'no table found' means the ower doesn't own any table?

p-parkinson commented 5 months ago

I think this is intentional from Oliver Wooland - not authorized is the response for both unauthorized access but also "no table found". For a new users, they have no tables, so the (correct) response is no authorized tables to access. Does that make sense?