Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incident API endpoints #924

Open
WvanDam opened this issue Dec 3, 2024 · 1 comment
Open

Incident API endpoints #924

WvanDam opened this issue Dec 3, 2024 · 1 comment
Assignees
Labels
Feature New features

Comments

@WvanDam
Copy link

WvanDam commented Dec 3, 2024

Er zijn endpoints nodig om de incident / feedback app af te kunnen ronden.

Vendor / config info
Een GET endpoint voor het ophalen van de volgende branding / config info, op basis van de vendor slug:

{
    clientId: 26,
    branding: {
      vendorSlug: 'dordrecht',
      vendorName: 'Dordrecht',
      vendorLogoPath: '/img/logo_dordrecht.png',
      primaryColor: '#001122',
      secondaryColor: 'blue'
    },
    pages: [
      'address',
      'foundation-damage-cause',
      'foundation-damage-characteristics',
      'address-characteristics',
      'foundation-type',
      'environment-damage-characteristics',
      'upload',
      'note',
      'contact'
    ]
  }

Opslaan van survey info

Een POST endpoint dat de volgende info kan verwerken:

{
  // Address
  Address: string
  building_id: string | undefined // use this key format for consistency throughout Fundermaps

  // AddressCharacteristics / FeedbackCharacteristics
  ChainedBuilding: boolean | null
  Owner: boolean | null
  NeighborRecovery: boolean | null

  // Contact
  Name: string
  Email: string
  PhoneNumber: string

  // EnvironmentDamageCharacteristics
  EnvironmentDamageCharacteristics: number[] // keyof EnvironmentDamageCharacteristics[] //

  // FoundationDamageCause
  FoundationDamageCause: keyof FoundationDamageCause | null // number

  // FoundationDamageCharacteristics
  FoundationDamageCharacteristics: number[] //  keyof FoundationDamageCharacteristics[] //

  // FoundationType
  FoundationType: keyof FoundationType | null // number

  // Note
  Note: string

  // Upload
  DocumentFile: string[]
}
@WvanDam WvanDam converted this from a draft issue Dec 3, 2024
@WvanDam WvanDam moved this from Backlog to Ready in FunderMaps Dec 3, 2024
@yorickdewid yorickdewid added the Feature New features label Dec 3, 2024
@yorickdewid yorickdewid moved this from Ready to In progress in FunderMaps Dec 6, 2024
@WvanDam
Copy link
Author

WvanDam commented Jan 10, 2025

Momenteel zijn er 2 endpoints beschikbaar in de GO API.

GET /app/
POST /incident

De laatste was nog aangemerkt als experimenteel en is vooralsnog niet getest.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New features
Projects
Status: In progress
Development

No branches or pull requests

2 participants