docs.jsonld
type: ApiDocumentation
title: Fellah AI API
entrypoint: /api
supported class: Error
supported class: ConstraintViolation
supported class: ParcelleDashboard
supported class: WeatherAlerts
supported class: Depense
supported class: MediaObject
supported class: Ouvrier
supported class: Parcelle
supported class: PointagePaiementPeriode
supported class: PresenceJour
supported class: ProduitPhyto
supported class: Revendeur
supported class: Traitement
supported class: Vente
supported class: Entrypoint
supported class: ConstraintViolationList

Error
type: Class
title: Error
supported property: SupportedProperty
  property: Error/id
  title: id
  required: false
  readable: true
  writeable: true
supported property: SupportedProperty
  property: Error/title
  title: title
  required: false
  readable: true
  writeable: false
  description: A short, human-readable summary of the problem.
supported property: SupportedProperty
  property: Error/detail
  title: detail
  required: false
  readable: true
  writeable: false
  description: A human-readable explanation specific to this occurrence of the problem.
supported property: SupportedProperty
  property: Error/instance
  title: instance
  required: false
  readable: true
  writeable: false
  description: A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.
supported property: SupportedProperty
  property: Error/type
  title: type
  required: false
  readable: true
  writeable: false
  description: A URI reference that identifies the problem type
supported property: SupportedProperty
  property: Error/meta
  title: meta
  required: false
  readable: true
  writeable: true
supported property: SupportedProperty
  property: Error/source
  title: source
  required: false
  readable: true
  writeable: true
supported property: SupportedProperty
  property: Error/description
  title: description
  required: false
  readable: true
  writeable: false
supported property: SupportedProperty
  property: Error/trace
  title: trace
  required: false
  readable: true
  writeable: false
supported property: SupportedProperty
  property: Error/message
  title: message
  required: false
  readable: true
  writeable: false
supported property: SupportedProperty
  property: Error/code
  title: code
  required: false
  readable: true
  writeable: false
supported property: SupportedProperty
  property: Error/file
  title: file
  required: false
  readable: true
  writeable: false
supported property: SupportedProperty
  property: Error/line
  title: line
  required: false
  readable: true
  writeable: false
supported property: SupportedProperty
  property: Error/trace
  title: trace
  required: false
  readable: true
  writeable: false
supported operation: Operation
  type: FindAction
  description: Retrieves a Error resource.
  method: GET
  returns: Error
  title: getError
description: A representation of common errors.
sub class of: Error

Error/id
type: Property
domain: Error
the hydra core vocabulary: id
range: string

Error/title
type: Property
domain: Error
the hydra core vocabulary: title
range: string

Error/detail
type: Property
domain: Error
the hydra core vocabulary: detail
range: string

Error/instance
type: Property
domain: Error
the hydra core vocabulary: instance
range: string

Error/type
type: Property
domain: Error
the hydra core vocabulary: type
range: string

Error/meta
type: Property
domain: Error
the hydra core vocabulary: meta

Error/source
type: Property
domain: Error
the hydra core vocabulary: source

Error/description
type: Property
domain: Error
the hydra core vocabulary: description
range: string

Error/trace
type: Property
domain: Error
the hydra core vocabulary: trace

Error/message
type: Property
domain: Error
the hydra core vocabulary: message
range: string

Error/code
type: Property
domain: Error
the hydra core vocabulary: code
range: integer

Error/file
type: Property
domain: Error
the hydra core vocabulary: file
range: string

Error/line
type: Property
domain: Error
the hydra core vocabulary: line
range: integer

ConstraintViolation
type: Class
title: ConstraintViolation
supported property: SupportedProperty
  property: ConstraintViolation/status
  title: status
  required: false
  readable: true
  writeable: true
supported property: SupportedProperty
  property: ConstraintViolation/errorTitle
  title: errorTitle
  required: false
  readable: false
  writeable: true
supported property: SupportedProperty
  property: ConstraintViolation/violations
  title: violations
  required: false
  readable: true
  writeable: false
supported property: SupportedProperty
  property: ConstraintViolation/detail
  title: detail
  required: false
  readable: true
  writeable: false
supported property: SupportedProperty
  property: ConstraintViolation/message
  title: message
  required: false
  readable: true
  writeable: true
supported property: SupportedProperty
  property: ConstraintViolation/code
  title: code
  required: false
  readable: true
  writeable: true
supported property: SupportedProperty
  property: ConstraintViolation/file
  title: file
  required: false
  readable: true
  writeable: false
supported property: SupportedProperty
  property: ConstraintViolation/line
  title: line
  required: false
  readable: true
  writeable: false
supported property: SupportedProperty
  property: ConstraintViolation/description
  title: description
  required: false
  readable: true
  writeable: false
supported property: SupportedProperty
  property: ConstraintViolation/type
  title: type
  required: false
  readable: true
  writeable: false
supported property: SupportedProperty
  property: ConstraintViolation/title
  title: title
  required: false
  readable: true
  writeable: false
supported property: SupportedProperty
  property: ConstraintViolation/instance
  title: instance
  required: false
  readable: true
  writeable: false
supported property: SupportedProperty
  property: ConstraintViolation/statusCode
  title: statusCode
  required: false
  readable: true
  writeable: false
supported property: SupportedProperty
  property: ConstraintViolation/headers
  title: headers
  required: false
  readable: true
  writeable: false
supported property: SupportedProperty
  property: ConstraintViolation/trace
  title: trace
  required: false
  readable: true
  writeable: false
supported property: SupportedProperty
  property: ConstraintViolation/previous
  title: previous
  required: false
  readable: true
  writeable: true
supported operation: Operation
  type: FindAction
  description: Retrieves a ConstraintViolation resource.
  method: GET
  returns: ConstraintViolation
  title: getConstraintViolation
supported operation: Operation
  type: FindAction
  description: Retrieves a ConstraintViolation resource.
  method: GET
  returns: ConstraintViolation
  title: getConstraintViolation
supported operation: Operation
  type: FindAction
  description: Retrieves a ConstraintViolation resource.
  method: GET
  returns: ConstraintViolation
  title: getConstraintViolation
supported operation: Operation
  type: FindAction
  description: Retrieves a ConstraintViolation resource.
  method: GET
  returns: ConstraintViolation
  title: getConstraintViolation
description: Unprocessable entity
sub class of: Error

ConstraintViolation/status
type: Property
domain: ConstraintViolation
the hydra core vocabulary: status
range: integer

ConstraintViolation/errorTitle
type: Property
domain: ConstraintViolation
the hydra core vocabulary: errorTitle
range: string

ConstraintViolation/violations
type: Property
domain: ConstraintViolation
the hydra core vocabulary: violations
range: ConstraintViolationList

ConstraintViolation/detail
type: Property
domain: ConstraintViolation
the hydra core vocabulary: detail
range: string

ConstraintViolation/message
type: Property
domain: ConstraintViolation
the hydra core vocabulary: message
range: string

ConstraintViolation/code
type: Property
domain: ConstraintViolation
the hydra core vocabulary: code
range: string
range: integer

ConstraintViolation/file
type: Property
domain: ConstraintViolation
the hydra core vocabulary: file
range: string

ConstraintViolation/line
type: Property
domain: ConstraintViolation
the hydra core vocabulary: line
range: integer

ConstraintViolation/description
type: Property
domain: ConstraintViolation
the hydra core vocabulary: description
range: string

ConstraintViolation/type
type: Property
domain: ConstraintViolation
the hydra core vocabulary: type
range: string

ConstraintViolation/title
type: Property
domain: ConstraintViolation
the hydra core vocabulary: title
range: string

ConstraintViolation/instance
type: Property
domain: ConstraintViolation
the hydra core vocabulary: instance
range: string

ConstraintViolation/statusCode
type: Property
domain: ConstraintViolation
the hydra core vocabulary: statusCode
range: integer

ConstraintViolation/headers
type: Property
domain: ConstraintViolation
the hydra core vocabulary: headers

ConstraintViolation/trace
type: Property
domain: ConstraintViolation
the hydra core vocabulary: trace

ConstraintViolation/previous
type: Property
domain: ConstraintViolation
the hydra core vocabulary: previous
range: integer

ParcelleDashboard
type: Class
title: ParcelleDashboard
supported property: SupportedProperty
  property: ParcelleDashboard/parcelleId
  title: parcelleId
  required: false
  readable: true
  writeable: true
supported property: SupportedProperty
  property: ParcelleDashboard/parcelleNom
  title: parcelleNom
  required: false
  readable: true
  writeable: true
supported property: SupportedProperty
  property: ParcelleDashboard/totalDepenses
  title: totalDepenses
  required: false
  readable: true
  writeable: true
supported property: SupportedProperty
  property: ParcelleDashboard/totalRevenus
  title: totalRevenus
  required: false
  readable: true
  writeable: true
supported property: SupportedProperty
  property: ParcelleDashboard/benefice
  title: benefice
  required: false
  readable: true
  writeable: true
supported property: SupportedProperty
  property: ParcelleDashboard/beneficePositif
  title: beneficePositif
  required: false
  readable: true
  writeable: true
supported property: SupportedProperty
  property: ParcelleDashboard/devise
  title: devise
  required: false
  readable: true
  writeable: true
supported property: SupportedProperty
  property: ParcelleDashboard/dernieresDepenses
  title: dernieresDepenses
  required: false
  readable: true
  writeable: true
supported property: SupportedProperty
  property: ParcelleDashboard/dernieresVentes
  title: dernieresVentes
  required: false
  readable: true
  writeable: true
supported operation: Operation
  type: FindAction
  description: Retrieves a ParcelleDashboard resource.
  method: GET
  returns: ParcelleDashboard
  title: getParcelleDashboard
description: Agrégats pour l’écran d’accueil mobile : totaux MAD + dernières lignes.

ParcelleDashboard/parcelleId
type: Property
domain: ParcelleDashboard
the hydra core vocabulary: parcelleId
range: integer

ParcelleDashboard/parcelleNom
type: Property
domain: ParcelleDashboard
the hydra core vocabulary: parcelleNom
range: string

ParcelleDashboard/totalDepenses
type: Property
domain: ParcelleDashboard
the hydra core vocabulary: totalDepenses
range: string

ParcelleDashboard/totalRevenus
type: Property
domain: ParcelleDashboard
the hydra core vocabulary: totalRevenus
range: string

ParcelleDashboard/benefice
type: Property
domain: ParcelleDashboard
the hydra core vocabulary: benefice
range: string

ParcelleDashboard/beneficePositif
type: Property
domain: ParcelleDashboard
the hydra core vocabulary: beneficePositif
range: boolean

ParcelleDashboard/devise
type: Property
domain: ParcelleDashboard
the hydra core vocabulary: devise
range: string

ParcelleDashboard/dernieresDepenses
type: Property
domain: ParcelleDashboard
the hydra core vocabulary: dernieresDepenses

ParcelleDashboard/dernieresVentes
type: Property
domain: ParcelleDashboard
the hydra core vocabulary: dernieresVentes

WeatherAlerts
type: Class
title: WeatherAlerts
supported property: SupportedProperty
  property: WeatherAlerts/parcelleId
  title: parcelleId
  required: false
  readable: true
  writeable: true
supported property: SupportedProperty
  property: WeatherAlerts/natureCulture
  title: natureCulture
  required: false
  readable: true
  writeable: true
supported property: SupportedProperty
  property: WeatherAlerts/windowStartHour
  title: windowStartHour
  required: false
  readable: true
  writeable: true
supported property: SupportedProperty
  property: WeatherAlerts/windowEndHour
  title: windowEndHour
  required: false
  readable: true
  writeable: true
supported property: SupportedProperty
  property: WeatherAlerts/maxSeverity
  title: maxSeverity
  required: false
  readable: true
  writeable: true
supported property: SupportedProperty
  property: WeatherAlerts/alerts
  title: alerts
  required: false
  readable: true
  writeable: true
supported operation: Operation
  type: FindAction
  description: Retrieves a WeatherAlerts resource.
  method: GET
  returns: WeatherAlerts
  title: getWeatherAlerts
description: Liste d'alertes météo personnalisées (vent, chaleur, humidité…) pour une parcelle, sur la fenêtre matinale du lendemain. GET /api/parcelles/{id}/weather/alerts?lat=…&lon=… - Réservé au propriétaire JWT de la parcelle (sinon 404 silencieux). - Coordonnées GPS du client (géolocalisation navigateur). - Open-Meteo indisponible → `alerts: []` (dégradé silencieux, pas d'erreur).

WeatherAlerts/parcelleId
type: Property
domain: WeatherAlerts
the hydra core vocabulary: parcelleId
range: integer

WeatherAlerts/natureCulture
type: Property
domain: WeatherAlerts
the hydra core vocabulary: natureCulture
range: string

WeatherAlerts/windowStartHour
type: Property
domain: WeatherAlerts
the hydra core vocabulary: windowStartHour
range: integer

WeatherAlerts/windowEndHour
type: Property
domain: WeatherAlerts
the hydra core vocabulary: windowEndHour
range: integer

WeatherAlerts/maxSeverity
type: Property
domain: WeatherAlerts
the hydra core vocabulary: maxSeverity
range: string

WeatherAlerts/alerts
type: Property
domain: WeatherAlerts
the hydra core vocabulary: alerts

Depense
type: Class
title: Depense
supported property: SupportedProperty
  property: Depense/parcelle
  title: parcelle
  required: false
  readable: true
  writeable: true
supported property: SupportedProperty
  property: Depense/categorie
  title: categorie
  required: false
  readable: true
  writeable: true
supported property: SupportedProperty
  property: Depense/montant
  title: montant
  required: false
  readable: true
  writeable: true
supported property: SupportedProperty
  property: Depense/quantite
  title: quantite
  required: false
  readable: true
  writeable: true
supported property: SupportedProperty
  property: Depense/libelle
  title: libelle
  required: false
  readable: true
  writeable: true
supported property: SupportedProperty
  property: Depense/survenueLe
  title: survenueLe
  required: false
  readable: true
  writeable: true
supported property: SupportedProperty
  property: Depense/creeLe
  title: creeLe
  required: false
  readable: true
  writeable: false
supported property: SupportedProperty
  property: Depense/photo
  title: photo
  required: false
  readable: true
  writeable: true
  description: Photo ou justificatif (optionnel) — envoyer l’IRI du média après POST /api/media_objects.
supported operation: Operation
  type: FindAction
  description: Retrieves a Depense resource.
  method: GET
  returns: Depense
  title: getDepense
supported operation: Operation
  description: Updates the Depense resource.
  expects: Depense
  expects header:
    header name: Content-Type
    possible value: application/merge-patch+json
  method: PATCH
  returns: Depense
  title: patchDepense
supported operation: Operation
  type: DeleteAction
  description: Deletes the Depense resource.
  method: DELETE
  returns: owl:Nothing
  title: deleteDepense
description: Dépense (eau, engrais, main d’œuvre, etc.). Montants en MAD (dh).

Depense/parcelle
type: Property
domain: Depense
the hydra core vocabulary: parcelle
max cardinality: 1
range: Parcelle

Depense/categorie
type: Property
domain: Depense
the hydra core vocabulary: categorie

Depense/montant
type: Property
domain: Depense
the hydra core vocabulary: montant
range: string

Depense/quantite
type: Property
domain: Depense
the hydra core vocabulary: quantite
range: string

Depense/libelle
type: Property
domain: Depense
the hydra core vocabulary: libelle
range: string

Depense/survenueLe
type: Property
domain: Depense
the hydra core vocabulary: survenueLe
range: dateTime

Depense/creeLe
type: Property
domain: Depense
the hydra core vocabulary: creeLe
range: dateTime

Depense/photo
type: Property
domain: Depense
the hydra core vocabulary: photo
max cardinality: 1
range: MediaObject

MediaObject
type: Class
title: MediaObject
supported property: SupportedProperty
  property: MediaObject/filePath
  title: filePath
  required: false
  readable: true
  writeable: true
supported property: SupportedProperty
  property: MediaObject/mimeType
  title: mimeType
  required: false
  readable: true
  writeable: true
supported property: SupportedProperty
  property: MediaObject/size
  title: size
  required: false
  readable: true
  writeable: true
supported property: SupportedProperty
  property: MediaObject/originalName
  title: originalName
  required: false
  readable: true
  writeable: true
supported property: SupportedProperty
  property: MediaObject/creeLe
  title: creeLe
  required: false
  readable: true
  writeable: false
supported property: SupportedProperty
  property: MediaObject/contentUrl
  title: contentUrl
  required: false
  readable: true
  writeable: false
  description: URL publique relative (alignée sur vich_uploader.uri_prefix du mapping « media_object »).
supported operation: Operation
  type: FindAction
  description: Retrieves a MediaObject resource.
  method: GET
  returns: MediaObject
  title: getMediaObject
description: Fichier média (justificatif, photo, PDF, etc.). Envoi en multipart/form-data avec le champ « file ».
sub class of: MediaObject

MediaObject/filePath
type: Property
domain: MediaObject
the hydra core vocabulary: filePath
range: string

MediaObject/mimeType
type: Property
domain: MediaObject
the hydra core vocabulary: mimeType
range: string

MediaObject/size
type: Property
domain: MediaObject
the hydra core vocabulary: size
range: integer

MediaObject/originalName
type: Property
domain: MediaObject
the hydra core vocabulary: originalName
range: string

MediaObject/creeLe
type: Property
domain: MediaObject
the hydra core vocabulary: creeLe
range: dateTime

MediaObject/contentUrl
type: Property
domain: MediaObject
the hydra core vocabulary: contentUrl
range: string

Ouvrier
type: Class
title: Ouvrier
supported property: SupportedProperty
  property: Ouvrier/parcelle
  title: parcelle
  required: false
  readable: true
  writeable: true
supported property: SupportedProperty
  property: Ouvrier/nom
  title: nom
  required: false
  readable: true
  writeable: true
supported property: SupportedProperty
  property: Ouvrier/tauxJournalier
  title: tauxJournalier
  required: false
  readable: true
  writeable: true
  description: Taux journalier de référence (MAD), même logique métier que les montants de dépense.
supported property: SupportedProperty
  property: Ouvrier/cyclePaiement
  title: cyclePaiement
  required: false
  readable: true
  writeable: true
supported property: SupportedProperty
  property: Ouvrier/actif
  title: actif
  required: false
  readable: true
  writeable: true
supported property: SupportedProperty
  property: Ouvrier/cnssDeclaree
  title: cnssDeclaree
  required: false
  readable: true
  writeable: true
  description: Déclaré à la CNSS : retenue salariale CNSS 4,48 % + AMO 2,26 % = 6,74 %.
supported property: SupportedProperty
  property: Ouvrier/creeLe
  title: creeLe
  required: false
  readable: true
  writeable: false
supported operation: Operation
  type: FindAction
  description: Retrieves a Ouvrier resource.
  method: GET
  returns: Ouvrier
  title: getOuvrier
supported operation: Operation
  description: Updates the Ouvrier resource.
  expects: Ouvrier
  expects header:
    header name: Content-Type
    possible value: application/merge-patch+json
  method: PATCH
  returns: Ouvrier
  title: patchOuvrier
supported operation: Operation
  type: DeleteAction
  description: Deletes the Ouvrier resource.
  method: DELETE
  returns: owl:Nothing
  title: deleteOuvrier
description: Ouvrier rattaché à une parcelle (pointage présence).

Ouvrier/parcelle
type: Link
domain: Ouvrier
the hydra core vocabulary: parcelle
max cardinality: 1
range: Parcelle

Ouvrier/nom
type: Property
domain: Ouvrier
the hydra core vocabulary: nom
range: string

Ouvrier/tauxJournalier
type: Property
domain: Ouvrier
the hydra core vocabulary: tauxJournalier
range: string

Ouvrier/cyclePaiement
type: Property
domain: Ouvrier
the hydra core vocabulary: cyclePaiement

Ouvrier/actif
type: Property
domain: Ouvrier
the hydra core vocabulary: actif
range: boolean

Ouvrier/cnssDeclaree
type: Property
domain: Ouvrier
the hydra core vocabulary: cnssDeclaree
range: boolean

Ouvrier/creeLe
type: Property
domain: Ouvrier
the hydra core vocabulary: creeLe
range: dateTime

Parcelle
type: Class
title: Parcelle
supported property: SupportedProperty
  property: Parcelle/nom
  title: nom
  required: true
  readable: true
  writeable: true
supported property: SupportedProperty
  property: Parcelle/surfaceHa
  title: surfaceHa
  required: false
  readable: true
  writeable: true
  description: Surface en hectares (optionnel), stockée en texte compact (ex. « 40 », pas « 40.0000 »).
supported property: SupportedProperty
  property: Parcelle/natureCulture
  title: natureCulture
  required: false
  readable: true
  writeable: true
supported property: SupportedProperty
  property: Parcelle/ville
  title: ville
  required: false
  readable: true
  writeable: true
  description: Ville de la parcelle : sert à proposer les revendeurs d'intrants de la même ville.
supported property: SupportedProperty
  property: Parcelle/natureCultureAutre
  title: natureCultureAutre
  required: false
  readable: true
  writeable: true
  description: Précision libre quand la nature est « Autre » (sinon forcé à null).
supported property: SupportedProperty
  property: Parcelle/creeLe
  title: creeLe
  required: false
  readable: true
  writeable: false
supported operation: Operation
  type: FindAction
  description: Retrieves a Parcelle resource.
  method: GET
  returns: Parcelle
  title: getParcelle
supported operation: Operation
  description: Updates the Parcelle resource.
  expects: Parcelle
  expects header:
    header name: Content-Type
    possible value: application/merge-patch+json
  method: PATCH
  returns: Parcelle
  title: patchParcelle
supported operation: Operation
  type: DeleteAction
  description: Deletes the Parcelle resource.
  method: DELETE
  returns: owl:Nothing
  title: deleteParcelle
description: Parcelle agricole : regroupe dépenses et ventes pour le suivi du bilan.

Parcelle/nom
type: Property
domain: Parcelle
the hydra core vocabulary: nom
range: string

Parcelle/surfaceHa
type: Property
domain: Parcelle
the hydra core vocabulary: surfaceHa
range: string

Parcelle/natureCulture
type: Property
domain: Parcelle
the hydra core vocabulary: natureCulture

Parcelle/ville
type: Property
domain: Parcelle
the hydra core vocabulary: ville

Parcelle/natureCultureAutre
type: Property
domain: Parcelle
the hydra core vocabulary: natureCultureAutre
range: string

Parcelle/creeLe
type: Property
domain: Parcelle
the hydra core vocabulary: creeLe
range: dateTime

PointagePaiementPeriode
type: Class
title: PointagePaiementPeriode
supported property: SupportedProperty
  property: PointagePaiementPeriode/parcelle
  title: parcelle
  required: false
  readable: true
  writeable: true
supported property: SupportedProperty
  property: PointagePaiementPeriode/cycle
  title: cycle
  required: false
  readable: true
  writeable: true
supported property: SupportedProperty
  property: PointagePaiementPeriode/periodeDebut
  title: periodeDebut
  required: false
  readable: true
  writeable: false
supported property: SupportedProperty
  property: PointagePaiementPeriode/periodeFin
  title: periodeFin
  required: false
  readable: true
  writeable: false
supported property: SupportedProperty
  property: PointagePaiementPeriode/montant
  title: montant
  required: false
  readable: true
  writeable: false
supported property: SupportedProperty
  property: PointagePaiementPeriode/depense
  title: depense
  required: false
  readable: true
  writeable: false
supported property: SupportedProperty
  property: PointagePaiementPeriode/creeLe
  title: creeLe
  required: false
  readable: true
  writeable: false
supported property: SupportedProperty
  property: PointagePaiementPeriode/jourIso
  title: jourIso
  required: false
  readable: false
  writeable: true
  description: Jour de référence (ISO `YYYY-MM-DD`) situé dans la période à solder.
supported operation: Operation
  type: FindAction
  description: Retrieves a PointagePaiementPeriode resource.
  method: GET
  returns: PointagePaiementPeriode
  title: getPointagePaiementPeriode
description: Période de paiement des ouvriers (pointage) déjà réglée. Sert à masquer le bouton « Payer » sur tous les appareils.

PointagePaiementPeriode/parcelle
type: Link
domain: PointagePaiementPeriode
the hydra core vocabulary: parcelle
max cardinality: 1
range: Parcelle

PointagePaiementPeriode/cycle
type: Property
domain: PointagePaiementPeriode
the hydra core vocabulary: cycle

PointagePaiementPeriode/periodeDebut
type: Property
domain: PointagePaiementPeriode
the hydra core vocabulary: periodeDebut
range: dateTime

PointagePaiementPeriode/periodeFin
type: Property
domain: PointagePaiementPeriode
the hydra core vocabulary: periodeFin
range: dateTime

PointagePaiementPeriode/montant
type: Property
domain: PointagePaiementPeriode
the hydra core vocabulary: montant
range: string

PointagePaiementPeriode/depense
type: Link
domain: PointagePaiementPeriode
the hydra core vocabulary: depense
max cardinality: 1
range: Depense

PointagePaiementPeriode/creeLe
type: Property
domain: PointagePaiementPeriode
the hydra core vocabulary: creeLe
range: dateTime

PointagePaiementPeriode/jourIso
type: Property
domain: PointagePaiementPeriode
the hydra core vocabulary: jourIso
range: string

PresenceJour
type: Class
title: PresenceJour
supported property: SupportedProperty
  property: PresenceJour/ouvrier
  title: ouvrier
  required: false
  readable: true
  writeable: true
supported property: SupportedProperty
  property: PresenceJour/jour
  title: jour
  required: false
  readable: true
  writeable: true
supported property: SupportedProperty
  property: PresenceJour/present
  title: present
  required: false
  readable: true
  writeable: true
supported property: SupportedProperty
  property: PresenceJour/creeLe
  title: creeLe
  required: false
  readable: true
  writeable: false
supported operation: Operation
  type: FindAction
  description: Retrieves a PresenceJour resource.
  method: GET
  returns: PresenceJour
  title: getPresenceJour
supported operation: Operation
  description: Updates the PresenceJour resource.
  expects: PresenceJour
  expects header:
    header name: Content-Type
    possible value: application/merge-patch+json
  method: PATCH
  returns: PresenceJour
  title: patchPresenceJour
description: Présence d’un ouvrier pour un jour calendaire.

PresenceJour/ouvrier
type: Property
domain: PresenceJour
the hydra core vocabulary: ouvrier
max cardinality: 1
range: Ouvrier

PresenceJour/jour
type: Property
domain: PresenceJour
the hydra core vocabulary: jour
range: dateTime

PresenceJour/present
type: Property
domain: PresenceJour
the hydra core vocabulary: present
range: boolean

PresenceJour/creeLe
type: Property
domain: PresenceJour
the hydra core vocabulary: creeLe
range: dateTime

ProduitPhyto
type: Class
title: ProduitPhyto
supported property: SupportedProperty
  property: ProduitPhyto/nomCommercial
  title: nomCommercial
  required: false
  readable: true
  writeable: true
supported property: SupportedProperty
  property: ProduitPhyto/matiereActive
  title: matiereActive
  required: false
  readable: true
  writeable: true
supported property: SupportedProperty
  property: ProduitPhyto/categorie
  title: categorie
  required: false
  readable: true
  writeable: true
supported property: SupportedProperty
  property: ProduitPhyto/formulation
  title: formulation
  required: false
  readable: true
  writeable: true
  description: Libellé formulation (données ONSSA : souvent > 30 caractères).
supported property: SupportedProperty
  property: ProduitPhyto/dar
  title: dar
  required: false
  readable: true
  writeable: true
  description: Délai avant récolte (jours).
supported property: SupportedProperty
  property: ProduitPhyto/dose
  title: dose
  required: false
  readable: true
  writeable: true
  description: Dose homologuée ONSSA (ex. « 25 cc/hl », « 2 kg/ha »).
supported property: SupportedProperty
  property: ProduitPhyto/culturesCibles
  title: culturesCibles
  required: false
  readable: true
  writeable: true
supported property: SupportedProperty
  property: ProduitPhyto/usages
  title: usages
  required: false
  readable: true
  writeable: true
supported property: SupportedProperty
  property: ProduitPhyto/homologueOnssa
  title: homologueOnssa
  required: false
  readable: true
  writeable: true
  description: Numéro d’homologation ONSSA (ex. E02-9-026), pas un indicateur booléen.
supported property: SupportedProperty
  property: ProduitPhyto/dateExpiration
  title: dateExpiration
  required: false
  readable: true
  writeable: true
  description: Fin d’homologation / péremption indicative (obligatoire en base ONSSA).
supported property: SupportedProperty
  property: ProduitPhyto/actif
  title: actif
  required: false
  readable: true
  writeable: true
supported operation: Operation
  type: FindAction
  description: Retrieves a ProduitPhyto resource.
  method: GET
  returns: ProduitPhyto
  title: getProduitPhyto
description: Catalogue des produits phytosanitaires homologués ONSSA (lecture seule).

ProduitPhyto/nomCommercial
type: Property
domain: ProduitPhyto
the hydra core vocabulary: nomCommercial
range: string

ProduitPhyto/matiereActive
type: Property
domain: ProduitPhyto
the hydra core vocabulary: matiereActive
range: string

ProduitPhyto/categorie
type: Property
domain: ProduitPhyto
the hydra core vocabulary: categorie

ProduitPhyto/formulation
type: Property
domain: ProduitPhyto
the hydra core vocabulary: formulation
range: string

ProduitPhyto/dar
type: Property
domain: ProduitPhyto
the hydra core vocabulary: dar
range: integer

ProduitPhyto/dose
type: Property
domain: ProduitPhyto
the hydra core vocabulary: dose
range: string

ProduitPhyto/culturesCibles
type: Property
domain: ProduitPhyto
the hydra core vocabulary: culturesCibles
range: string

ProduitPhyto/usages
type: Property
domain: ProduitPhyto
the hydra core vocabulary: usages
range: string

ProduitPhyto/homologueOnssa
type: Property
domain: ProduitPhyto
the hydra core vocabulary: homologueOnssa
range: string

ProduitPhyto/dateExpiration
type: Property
domain: ProduitPhyto
the hydra core vocabulary: dateExpiration
range: dateTime

ProduitPhyto/actif
type: Property
domain: ProduitPhyto
the hydra core vocabulary: actif
range: boolean

Revendeur
type: Class
title: Revendeur
supported property: SupportedProperty
  property: Revendeur/raisonSociale
  title: raisonSociale
  required: false
  readable: true
  writeable: true
supported property: SupportedProperty
  property: Revendeur/ville
  title: ville
  required: false
  readable: true
  writeable: true
supported property: SupportedProperty
  property: Revendeur/adresse
  title: adresse
  required: false
  readable: true
  writeable: true
supported property: SupportedProperty
  property: Revendeur/telephone
  title: telephone
  required: false
  readable: true
  writeable: true
supported property: SupportedProperty
  property: Revendeur/activite
  title: activite
  required: false
  readable: true
  writeable: true
  description: Activité déclarée (ex. « Importation et distribution de produits phytosanitaires »).
supported property: SupportedProperty
  property: Revendeur/agrement
  title: agrement
  required: false
  readable: true
  writeable: true
  description: Numéro d'agrément ONSSA (ex. 01/2013).
supported property: SupportedProperty
  property: Revendeur/actif
  title: actif
  required: false
  readable: true
  writeable: true
supported property: SupportedProperty
  property: Revendeur/villeLabel
  title: villeLabel
  required: false
  readable: true
  writeable: false
supported operation: Operation
  type: FindAction
  description: Retrieves a Revendeur resource.
  method: GET
  returns: Revendeur
  title: getRevendeur
description: Revendeurs / fournisseurs d'intrants agricoles agréés, localisés par ville (lecture seule).

Revendeur/raisonSociale
type: Property
domain: Revendeur
the hydra core vocabulary: raisonSociale
range: string

Revendeur/ville
type: Property
domain: Revendeur
the hydra core vocabulary: ville

Revendeur/adresse
type: Property
domain: Revendeur
the hydra core vocabulary: adresse
range: string

Revendeur/telephone
type: Property
domain: Revendeur
the hydra core vocabulary: telephone
range: string

Revendeur/activite
type: Property
domain: Revendeur
the hydra core vocabulary: activite
range: string

Revendeur/agrement
type: Property
domain: Revendeur
the hydra core vocabulary: agrement
range: string

Revendeur/actif
type: Property
domain: Revendeur
the hydra core vocabulary: actif
range: boolean

Revendeur/villeLabel
type: Property
domain: Revendeur
the hydra core vocabulary: villeLabel
range: string

Traitement
type: Class
title: Traitement
supported property: SupportedProperty
  property: Traitement/parcelle
  title: parcelle
  required: false
  readable: true
  writeable: true
supported property: SupportedProperty
  property: Traitement/produit
  title: produit
  required: false
  readable: true
  writeable: true
supported property: SupportedProperty
  property: Traitement/statut
  title: statut
  required: false
  readable: true
  writeable: true
supported property: SupportedProperty
  property: Traitement/maladieLabel
  title: maladieLabel
  required: false
  readable: true
  writeable: true
  description: Maladie détectée par le scan IA (contexte brouillon).
supported property: SupportedProperty
  property: Traitement/dateTraitement
  title: dateTraitement
  required: false
  readable: true
  writeable: true
supported property: SupportedProperty
  property: Traitement/doseUtilisee
  title: doseUtilisee
  required: false
  readable: true
  writeable: true
  description: Dose appliquée par hectare (kg/ha ou L/ha selon l'unité du produit).
supported property: SupportedProperty
  property: Traitement/surfaceTraitee
  title: surfaceTraitee
  required: false
  readable: true
  writeable: true
  description: Surface traitée en hectares.
supported property: SupportedProperty
  property: Traitement/volumeCuveL
  title: volumeCuveL
  required: false
  readable: true
  writeable: true
  description: Volume d'une cuve du tracteur en litres (optionnel — aide au calcul plan de cuve).
supported property: SupportedProperty
  property: Traitement/applicateur
  title: applicateur
  required: false
  readable: true
  writeable: true
supported property: SupportedProperty
  property: Traitement/creeLe
  title: creeLe
  required: false
  readable: true
  writeable: false
supported property: SupportedProperty
  property: Traitement/dateRecolteAutorisee
  title: dateRecolteAutorisee
  required: false
  readable: true
  writeable: false
  description: Date à partir de laquelle la récolte est légalement autorisée (date de traitement + DAR du produit, en jours).
supported property: SupportedProperty
  property: Traitement/darActif
  title: darActif
  required: false
  readable: true
  writeable: false
  description: True tant que `today` < dateRecolteAutorisee.
supported operation: Operation
  type: FindAction
  description: Retrieves a Traitement resource.
  method: GET
  returns: Traitement
  title: getTraitement
supported operation: Operation
  description: Updates the Traitement resource.
  expects: Traitement
  expects header:
    header name: Content-Type
    possible value: application/merge-patch+json
  method: PATCH
  returns: Traitement
  title: patchTraitement
supported operation: Operation
  type: DeleteAction
  description: Deletes the Traitement resource.
  method: DELETE
  returns: owl:Nothing
  title: deleteTraitement
description: Traitement phytosanitaire (registre légal). DAR calculé automatiquement.

Traitement/parcelle
type: Link
domain: Traitement
the hydra core vocabulary: parcelle
max cardinality: 1
range: Parcelle

Traitement/produit
type: Property
domain: Traitement
the hydra core vocabulary: produit
max cardinality: 1
range: ProduitPhyto

Traitement/statut
type: Property
domain: Traitement
the hydra core vocabulary: statut

Traitement/maladieLabel
type: Property
domain: Traitement
the hydra core vocabulary: maladieLabel
range: string

Traitement/dateTraitement
type: Property
domain: Traitement
the hydra core vocabulary: dateTraitement
range: dateTime

Traitement/doseUtilisee
type: Property
domain: Traitement
the hydra core vocabulary: doseUtilisee
range: string

Traitement/surfaceTraitee
type: Property
domain: Traitement
the hydra core vocabulary: surfaceTraitee
range: string

Traitement/volumeCuveL
type: Property
domain: Traitement
the hydra core vocabulary: volumeCuveL
range: string

Traitement/applicateur
type: Property
domain: Traitement
the hydra core vocabulary: applicateur
range: string

Traitement/creeLe
type: Property
domain: Traitement
the hydra core vocabulary: creeLe
range: dateTime

Traitement/dateRecolteAutorisee
type: Property
domain: Traitement
the hydra core vocabulary: dateRecolteAutorisee
range: dateTime

Traitement/darActif
type: Property
domain: Traitement
the hydra core vocabulary: darActif
range: boolean

Vente
type: Class
title: Vente
supported property: SupportedProperty
  property: Vente/parcelle
  title: parcelle
  required: false
  readable: true
  writeable: true
supported property: SupportedProperty
  property: Vente/montant
  title: montant
  required: false
  readable: true
  writeable: true
supported property: SupportedProperty
  property: Vente/quantite
  title: quantite
  required: false
  readable: true
  writeable: true
supported property: SupportedProperty
  property: Vente/libelle
  title: libelle
  required: false
  readable: true
  writeable: true
supported property: SupportedProperty
  property: Vente/survenueLe
  title: survenueLe
  required: false
  readable: true
  writeable: true
supported property: SupportedProperty
  property: Vente/creeLe
  title: creeLe
  required: false
  readable: true
  writeable: false
supported property: SupportedProperty
  property: Vente/photo
  title: photo
  required: false
  readable: true
  writeable: true
  description: Photo ou pièce jointe (optionnel) — envoyer l’IRI du média après POST /api/media_objects.
supported operation: Operation
  type: FindAction
  description: Retrieves a Vente resource.
  method: GET
  returns: Vente
  title: getVente
supported operation: Operation
  description: Updates the Vente resource.
  expects: Vente
  expects header:
    header name: Content-Type
    possible value: application/merge-patch+json
  method: PATCH
  returns: Vente
  title: patchVente
supported operation: Operation
  type: DeleteAction
  description: Deletes the Vente resource.
  method: DELETE
  returns: owl:Nothing
  title: deleteVente
description: Vente / revenu. Montants en MAD (dh).

Vente/parcelle
type: Property
domain: Vente
the hydra core vocabulary: parcelle
max cardinality: 1
range: Parcelle

Vente/montant
type: Property
domain: Vente
the hydra core vocabulary: montant
range: string

Vente/quantite
type: Property
domain: Vente
the hydra core vocabulary: quantite
range: string

Vente/libelle
type: Property
domain: Vente
the hydra core vocabulary: libelle
range: string

Vente/survenueLe
type: Property
domain: Vente
the hydra core vocabulary: survenueLe
range: dateTime

Vente/creeLe
type: Property
domain: Vente
the hydra core vocabulary: creeLe
range: dateTime

Vente/photo
type: Property
domain: Vente
the hydra core vocabulary: photo
max cardinality: 1
range: MediaObject

Entrypoint
type: Class
title: Entrypoint
supported property: SupportedProperty
  property: Entrypoint/depense
  title: getDepenseCollection
  description: The collection of Depense resources
  readable: true
  writeable: false
supported property: SupportedProperty
  property: Entrypoint/mediaObject
  title: getMediaObjectCollection
  description: The collection of MediaObject resources
  readable: true
  writeable: false
supported property: SupportedProperty
  property: Entrypoint/ouvrier
  title: getOuvrierCollection
  description: The collection of Ouvrier resources
  readable: true
  writeable: false
supported property: SupportedProperty
  property: Entrypoint/parcelle
  title: getParcelleCollection
  description: The collection of Parcelle resources
  readable: true
  writeable: false
supported property: SupportedProperty
  property: Entrypoint/pointagePaiementPeriode
  title: getPointagePaiementPeriodeCollection
  description: The collection of PointagePaiementPeriode resources
  readable: true
  writeable: false
supported property: SupportedProperty
  property: Entrypoint/presenceJour
  title: getPresenceJourCollection
  description: The collection of PresenceJour resources
  readable: true
  writeable: false
supported property: SupportedProperty
  property: Entrypoint/produitPhyto
  title: getProduitPhytoCollection
  description: The collection of ProduitPhyto resources
  readable: true
  writeable: false
supported property: SupportedProperty
  property: Entrypoint/revendeur
  title: getRevendeurCollection
  description: The collection of Revendeur resources
  readable: true
  writeable: false
supported property: SupportedProperty
  property: Entrypoint/traitement
  title: getTraitementCollection
  description: The collection of Traitement resources
  readable: true
  writeable: false
supported property: SupportedProperty
  property: Entrypoint/vente
  title: getVenteCollection
  description: The collection of Vente resources
  readable: true
  writeable: false
supported operation: Operation
  method: GET
  title: index
  description: The API Entrypoint.
  returns: Entrypoint

Entrypoint/depense
type: Link
domain: Entrypoint
max cardinality: 1
range: Collection
range:
  equivalent class:
    on property: member
    all values from: Depense
supported operation: Operation
  type: FindAction
  description: Retrieves the collection of Depense resources.
  method: GET
  returns: Collection
  title: getDepenseCollection
supported operation: Operation
  type: CreateAction
  description: Creates a Depense resource.
  expects: Depense
  method: POST
  returns: Depense
  title: postDepense

Entrypoint/mediaObject
type: Link
domain: Entrypoint
max cardinality: 1
range: Collection
range:
  equivalent class:
    on property: member
    all values from: MediaObject
supported operation: Operation
  type: FindAction
  description: Retrieves the collection of MediaObject resources.
  method: GET
  returns: Collection
  title: getMediaObjectCollection
supported operation: Operation
  type: CreateAction
  description: Creates a MediaObject resource.
  expects: MediaObject
  method: POST
  returns: MediaObject
  title: postMediaObject

Entrypoint/ouvrier
type: Link
domain: Entrypoint
max cardinality: 1
range: Collection
range:
  equivalent class:
    on property: member
    all values from: Ouvrier
supported operation: Operation
  type: FindAction
  description: Retrieves the collection of Ouvrier resources.
  method: GET
  returns: Collection
  title: getOuvrierCollection
supported operation: Operation
  type: CreateAction
  description: Creates a Ouvrier resource.
  expects: Ouvrier
  method: POST
  returns: Ouvrier
  title: postOuvrier

Entrypoint/parcelle
type: Link
domain: Entrypoint
max cardinality: 1
range: Collection
range:
  equivalent class:
    on property: member
    all values from: Parcelle
supported operation: Operation
  type: FindAction
  description: Retrieves the collection of Parcelle resources.
  method: GET
  returns: Collection
  title: getParcelleCollection
supported operation: Operation
  type: CreateAction
  description: Creates a Parcelle resource.
  expects: Parcelle
  method: POST
  returns: Parcelle
  title: postParcelle

Entrypoint/pointagePaiementPeriode
type: Link
domain: Entrypoint
max cardinality: 1
range: Collection
range:
  equivalent class:
    on property: member
    all values from: PointagePaiementPeriode
supported operation: Operation
  type: FindAction
  description: Retrieves the collection of PointagePaiementPeriode resources.
  method: GET
  returns: Collection
  title: getPointagePaiementPeriodeCollection
supported operation: Operation
  type: CreateAction
  description: Creates a PointagePaiementPeriode resource.
  expects: PointagePaiementPeriode
  method: POST
  returns: PointagePaiementPeriode
  title: postPointagePaiementPeriode

Entrypoint/presenceJour
type: Link
domain: Entrypoint
max cardinality: 1
range: Collection
range:
  equivalent class:
    on property: member
    all values from: PresenceJour
supported operation: Operation
  type: FindAction
  description: Retrieves the collection of PresenceJour resources.
  method: GET
  returns: Collection
  title: getPresenceJourCollection
supported operation: Operation
  type: CreateAction
  description: Creates a PresenceJour resource.
  expects: PresenceJour
  method: POST
  returns: PresenceJour
  title: postPresenceJour

Entrypoint/produitPhyto
type: Link
domain: Entrypoint
max cardinality: 1
range: Collection
range:
  equivalent class:
    on property: member
    all values from: ProduitPhyto
supported operation: Operation
  type: FindAction
  description: Retrieves the collection of ProduitPhyto resources.
  method: GET
  returns: Collection
  title: getProduitPhytoCollection

Entrypoint/revendeur
type: Link
domain: Entrypoint
max cardinality: 1
range: Collection
range:
  equivalent class:
    on property: member
    all values from: Revendeur
supported operation: Operation
  type: FindAction
  description: Retrieves the collection of Revendeur resources.
  method: GET
  returns: Collection
  title: getRevendeurCollection

Entrypoint/traitement
type: Link
domain: Entrypoint
max cardinality: 1
range: Collection
range:
  equivalent class:
    on property: member
    all values from: Traitement
supported operation: Operation
  type: FindAction
  description: Retrieves the collection of Traitement resources.
  method: GET
  returns: Collection
  title: getTraitementCollection
supported operation: Operation
  type: CreateAction
  description: Creates a Traitement resource.
  expects: Traitement
  method: POST
  returns: Traitement
  title: postTraitement

Entrypoint/vente
type: Link
domain: Entrypoint
max cardinality: 1
range: Collection
range:
  equivalent class:
    on property: member
    all values from: Vente
supported operation: Operation
  type: FindAction
  description: Retrieves the collection of Vente resources.
  method: GET
  returns: Collection
  title: getVenteCollection
supported operation: Operation
  type: CreateAction
  description: Creates a Vente resource.
  expects: Vente
  method: POST
  returns: Vente
  title: postVente

ConstraintViolationList
type: Class
title: ConstraintViolationList
description: A constraint violation List.
supported property: SupportedProperty
  property: ConstraintViolationList/propertyPath
  title: propertyPath
  description: The property path of the violation
  readable: true
  writeable: false
supported property: SupportedProperty
  property: ConstraintViolationList/message
  title: message
  description: The message associated with the violation
  readable: true
  writeable: false

ConstraintViolationList/propertyPath
type: Property
label: propertyPath
domain: ConstraintViolationList
range: string

ConstraintViolationList/message
type: Property
label: message
domain: ConstraintViolationList
range: string