vostpt / covid19-mobile

"EstamosOn - Covid19" - Mobile App made with Flutter to inform citizens about Covid19 status in Portugal
https://covid19estamoson.gov.pt/
GNU Lesser General Public License v3.0
30 stars 8 forks source link

Improvement - Create Generic Post Model #72

Closed danidroid closed 4 years ago

danidroid commented 4 years ago

The API response Post will have the same base fields, the idea is to create this base to reuse in another models:

base model:

{ "ID": 198, "post_author": "11", "post_date": "2020-03-17 19:04:13", "post_date_gmt": "2020-03-17 19:04:13", "post_content": "", "post_title": "Microsoft - Escolas", "post_excerpt": "", "post_status": "publish", "comment_status": "closed", "ping_status": "closed", "post_password": "", "post_name": "microsoft-escolas", "to_ping": "", "pinged": "", "post_modified": "2020-03-17 23:40:31", "post_modified_gmt": "2020-03-17 23:40:31", "post_content_filtered": "", "post_parent": 0, "guid": "https:\/\/dev-covid19.vost.pt\/?post_type=remote_work&p=198", "menu_order": 0, "post_type": "remote_work", "post_mime_type": "", "comment_count": "0", "filter": "raw", "documentos": false, "links": false }

Vanethos commented 4 years ago

@danidroid

That seems to be the response from the Measures object, the following are the special fields for that object.

So I have removed them, ok?