create account

RE: Releasing fpl 0.5.0 by programarivm

View this thread on: hive.blogpeakd.comecency.com

Viewing a response to: @amosbastian/re-programarivm-re-amosbastian-releasing-fpl-0-5-0-1535841001533-20180901t234351775z

· @programarivm · (edited)
$0.03
On the other hand, I was thinking that in general terms we shouldn't struggle too much when it comes to retrieve data from a REST API, and I like REST by the way :) 

Since I like REST too, in my humble opinion, that could be seen as kind of code smell in a sense that the API's architecture is not very well designed? 

So, here are alternative scenarios (for PHP) to solve the problem of a slow REST API that requires too many operations to fetch the data:

1. Write your own API with REST improving the architecture of the original one -- I tried to do something similar to fpl at [Data Driven Test Development Demo](https://github.com/programarivm/data-driven-test-development-demo)

2. Write your own API with GraphSQL -- [GraphQL Demo for Symfony 4](https://github.com/programarivm/graphql-demo-symfony4) 

In both cases, we're assuming that the API interface can be changed, and also it is okay to "scrap" and store the data on our side.
👍  
properties (23)
authorprogramarivm
permlinkre-amosbastian-re-programarivm-re-amosbastian-releasing-fpl-0-5-0-1535841001533-20180902t092307791z
categoryfpl
json_metadata{"tags":["fpl"],"links":["https://github.com/programarivm/data-driven-test-development-demo","https://github.com/programarivm/graphql-demo-symfony4"],"app":"steemit/0.1"}
created2018-09-02 09:23:09
last_update2018-09-02 09:26:09
depth3
children1
last_payout2018-09-09 09:23:09
cashout_time1969-12-31 23:59:59
total_payout_value0.020 HBD
curator_payout_value0.006 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length944
author_reputation2,631,258,794,707
root_title"Releasing fpl 0.5.0"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id70,079,575
net_rshares22,251,164,832
author_curate_reward""
vote details (1)
@amosbastian ·
That's definitely something I will look into, thanks!
properties (22)
authoramosbastian
permlinkre-programarivm-re-amosbastian-re-programarivm-re-amosbastian-releasing-fpl-0-5-0-1535841001533-20180902t110431644z
categoryfpl
json_metadata{"tags":["fpl"],"app":"steemit/0.1"}
created2018-09-02 11:04:30
last_update2018-09-02 11:04:30
depth4
children0
last_payout2018-09-09 11:04:30
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length53
author_reputation174,473,586,900,705
root_title"Releasing fpl 0.5.0"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id70,085,453
net_rshares0