mateipavel-github / ajutorspitale-backend

0 stars 0 forks source link

API for nevoi.ajutorspitale.ro/fundatii #15

Closed dira closed 4 years ago

dira commented 4 years ago

This should be a server-to-server, authenticated request (have a secret header or query parameter/api key)

For nevoi.ajutorspitale.ro/fundații I need a way to get

An array containing all validated & processed requests, for each request:

id created_at county_id county_name medical_unit_type (the slug from metadata_medical_unit_types) medical_unit_id medical_unit_name (added by them) official_medical_unit_name (if medical_unit_id is not null: the name from medical_units) status (the slug from metadata_request_status_types) needs an array of: {name: "Măști P1 | chirurgicale | simple cu 3 pliuri (buc)", amount: 750} if the request is "processed", put here only the current needs if the request is "validated", add one element, with amount: 1, for each line from other_needs