API Dokumentation för Lotusmodellen Sverige AB
Företagsinformation
Hämta ut kontaktuppgifter, adresser med mera till företagen kring Lotusmodellen Sverige AB
- Hämta ut alla företagen med kopplingar till Lotusmodellen Sverige AB
- GET: http://api.lotusmodellen.se/v1/corporation/
- Retur: JSON
- Retur typer: JSON eller XML
- HTTP-Status kod: 200
- Hämta ut ett företag med specifikt ID
- GET: http://api.lotusmodellen.se/v1/corporation/id/{:id}/
- Retur: JSON
- Retur typer: JSON eller XML
- HTTP-Status kod: 200
- Hämta ut ett företag med en ort
- GET: http://api.lotusmodellen.se/v1/corporation/slug/{:slug}/
- Retur: JSON
- Retur typer: JSON eller XML
- HTTP-Status kod: 200
Patientinformation
Hämta ut information om en patient eller plocka ut all information om alla patienter i databasen.
- Hämta ut alla patienter
- GET: http://api.lotusmodellen.se/patient/user/
- Retur: JSON
- Retur typer: JSON eller XML
- HTTP-status kod: 200
- Hämta ut en patient
- GET: http://api.lotusmodellen.se/patient/user/id/{:id}/
- Retur: JSON
- Retur typer: JSON eller XML
- HTTP-status kod: 200
- Hämta ut självskattningar gjord för en patient
- GET: http://api.lotusmodellen.dev/patient/selfassessment/id/{:id}
- Retur: JSON
- Retur typer: JSON eller XML
- HTTP-status kod: 200
- Spara självskattningar
- POST: http://api.lotusmodellen.dev/patient/selfassessment/
- Retur: Nya ID-numret i JSON format
- Användning med hjälp av CodeIgninter REST Client Library
- Exempel
-
// $data innehåller POST-data
// Denna rad placeras i modellen för lotusmodellen.
// Denna raden kallar i sin tur på api.lotusmodellen
$this->rest->post('selfassessment', array('id' => (int)$user_id, 'data' => $data));