Prosjekter
Datamodeller
Section titled “Datamodeller”Prosjektsammendrag
Section titled “Prosjektsammendrag”Returneres ved listing av prosjekter (GET /v1/projects).
| Felt | Type | Beskrivelse |
|---|---|---|
id | string | Unik prosjektidentifikator |
createdAt | string | null | ISO 8601 opprettelsestidspunkt |
createdBy | string | Bruker som opprettet prosjektet |
address | Address | Prosjektets beliggenhet |
lastUpdated | string | null | ISO 8601 siste oppdateringstidspunkt |
coverPhoto | Photo | null | Primært forsidebilde |
archived | boolean | Om prosjektet er arkivert |
Prosjektdetaljer
Section titled “Prosjektdetaljer”Returneres ved henting av et enkelt prosjekt (GET /v1/projects/{projectId}).
| Felt | Type | Beskrivelse |
|---|---|---|
id | string | Unik prosjektidentifikator |
createdAt | string | null | ISO 8601 opprettelsestidspunkt |
createdBy | string | Bruker som opprettet prosjektet |
lastUpdated | string | null | ISO 8601 siste oppdateringstidspunkt |
type | string | null | Prosjekttype |
address | Address | Prosjektets beliggenhet |
coverPhoto | Photo | null | Primært forsidebilde |
photos | Photo[] | Prosjektnivåbilder |
rooms | Room[] | Innvendige rom |
outsideAreas | Room[] | Utendørsområder |
aiSummary | AISummary | null | AI-generert prosjektsammendrag |
inspectionNotes | InspectionNotes | null | Befaringsnotater |
archived | boolean | Om prosjektet er arkivert |
Adresse
Section titled “Adresse”| Felt | Type | Beskrivelse |
|---|---|---|
street | string | null | Gateadresse |
postalCode | string | null | Postnummer |
city | string | null | By |
| Felt | Type | Beskrivelse |
|---|---|---|
photoId | string | Bildeidentifikator |
extension | string | Filtype (f.eks. jpg, png) |
For å hente selve bildet, kombiner disse til et filnavn:
GET /v1/projects/{projectId}/photos/{photoId}.{extension}| Felt | Type | Beskrivelse |
|---|---|---|
roomId | string | Romidentifikator |
roomName | string | null | Visningsnavn |
roomType | string | En av: WET_ROOM, KITCHEN, LIVING_ROOM, BEDROOM, OTHER_LIVING_SPACES, HALLWAY, TECHNICAL_ROOM, UNHEATED_ROOM, STORAGE, OTHER, OUTSIDE_AREA |
story | number | null | Etasje |
photos | Photo[] | Rombilder |
inspectionNotes | InspectionNotes | null | Befaringsnotater på romnivå |
AI-sammendrag
Section titled “AI-sammendrag”| Felt | Type | Beskrivelse |
|---|---|---|
text | string | null | Generert sammendragstekst |
promptTitle | string | null | Prompt brukt for generering |
generatedAt | string | null | ISO 8601 genereringstidspunkt |
Befaringsnotater
Section titled “Befaringsnotater”| Felt | Type | Beskrivelse |
|---|---|---|
notes | string | null | Notattekst |
lastUpdated | string | null | ISO 8601 siste oppdateringstidspunkt |
Responseksempler
Section titled “Responseksempler”List prosjekter
Section titled “List prosjekter”GET /v1/projects{ "projects": [ { "id": "abc-123", "createdAt": "2025-06-15T10:30:00Z", "createdBy": "user@example.com", "address": { "street": "Storgata 1", "postalCode": "0182", "city": "Oslo" }, "lastUpdated": "2025-06-20T14:00:00Z", "coverPhoto": { "photoId": "photo-1", "extension": "jpg" }, "archived": false } ]}Prosjektdetaljer
Section titled “Prosjektdetaljer”Eksempel på respons fra GET /v1/projects/{projectId}:
{ "id": "abc-123", "createdAt": "2025-06-15T10:30:00Z", "createdBy": "user@example.com", "lastUpdated": "2025-06-20T14:00:00Z", "type": "inspection", "address": { "street": "Storgata 1", "postalCode": "0182", "city": "Oslo" }, "coverPhoto": { "photoId": "photo-1", "extension": "jpg" }, "photos": [ { "photoId": "photo-1", "extension": "jpg" }, { "photoId": "photo-2", "extension": "png" } ], "rooms": [ { "roomId": "room-1", "roomName": "Stue", "roomType": "LIVING_ROOM", "story": 1, "photos": [ { "photoId": "photo-3", "extension": "jpg" } ], "inspectionNotes": { "notes": "Slitasje på gulvbelegg ved inngang.", "lastUpdated": "2025-06-20T14:00:00Z" } }, { "roomId": "room-2", "roomName": "Bad", "roomType": "WET_ROOM", "story": 1, "photos": [], "inspectionNotes": null } ], "outsideAreas": [ { "roomId": "room-3", "roomName": "Balkong", "roomType": "OUTSIDE_AREA", "story": 1, "photos": [ { "photoId": "photo-4", "extension": "jpg" } ], "inspectionNotes": null } ], "aiSummary": { "text": "Leiligheten er i god stand med mindre slitasje i stue og bad.", "promptTitle": "Inspection Report", "generatedAt": "2025-06-20T15:00:00Z" }, "inspectionNotes": { "notes": "Generell befaring utført. Ingen kritiske funn.", "lastUpdated": "2025-06-20T14:30:00Z" }, "archived": false}