{"openapi":"3.1.0","info":{"title":"Stampy","description":"","version":"1.0.0"},"servers":[{"url":"\/","description":""}],"paths":{"\/api\/data":{"get":{"operationId":"api_data_get_collection","tags":["Data"],"responses":{"200":{"description":"Data collection","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Data"}}},"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/Data.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}},"example":{"@id":"string","type":"string","hydra:first":"string","hydra:last":"string","hydra:previous":"string","hydra:next":"string"}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":["string","null"]},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}}}}},"summary":"Retrieves the collection of Data resources.","description":"Retrieves the collection of Data resources.","parameters":[{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"post":{"operationId":"api_data_post","tags":["Data"],"responses":{"201":{"description":"Data resource created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Data"}},"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Data.jsonld"}}},"links":{}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"}},"summary":"Creates a Data resource.","description":"Creates a Data resource.","parameters":[],"requestBody":{"description":"The new Data resource","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Data-doser.write"}},"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Data.jsonld-doser.write"}}},"required":true},"deprecated":false},"parameters":[]},"\/api\/data\/by-piglink-ref\/{piglinkRef}":{"get":{"operationId":"api_databy-piglink-ref_piglinkRef_get","tags":["Data"],"responses":{"200":{"description":"Data resource","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Data-piglink.read"}},"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Data.jsonld-piglink.read"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a Data resource.","description":"Retrieves a Data resource.","parameters":[{"name":"piglinkRef","in":"path","description":"Data identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/api\/data\/{id}":{"get":{"operationId":"api_data_id_get","tags":["Data"],"responses":{"200":{"description":"Data resource","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Data"}},"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Data.jsonld"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a Data resource.","description":"Retrieves a Data resource.","parameters":[{"name":"id","in":"path","description":"Data identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"delete":{"operationId":"api_data_id_delete","tags":["Data"],"responses":{"204":{"description":"Data resource deleted"},"404":{"description":"Resource not found"}},"summary":"Removes the Data resource.","description":"Removes the Data resource.","parameters":[{"name":"id","in":"path","description":"Data identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"patch":{"operationId":"api_data_id_patch","tags":["Data"],"responses":{"200":{"description":"Data resource updated","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Data"}},"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Data.jsonld"}}},"links":{}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Updates the Data resource.","description":"Updates the Data resource.","parameters":[{"name":"id","in":"path","description":"Data identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Data resource","content":{"application\/merge-patch+json":{"schema":{"$ref":"#\/components\/schemas\/Data-doser.write"}}},"required":true},"deprecated":false},"parameters":[]}},"components":{"schemas":{"Data":{"type":"object","description":"","deprecated":false,"properties":{"id":{"readOnly":true,"type":"integer"},"piglinkRefList":{"type":["array","null"],"items":{"type":"string"}},"supplierRef":{"type":"array","items":{"type":"string"}},"serialNumberSD":{"type":"string"},"equipment":{"type":"string"},"installationDateSD":{"type":["string","null"],"format":"date-time"},"lastDiagnosisDate":{"type":["string","null"],"format":"date-time"},"lastDiagnosisResult":{"type":["integer","null"]},"lastMaintenanceDate":{"type":["string","null"],"format":"date-time"},"batteryDefect":{"type":"boolean"},"maintenanceRequired":{"type":["boolean","null"]},"softwareVersion":{"pattern":"^(\\d+\\.\\d+\\.\\d+\\.\\d+ B\\d+)$","example":"1.2.3.4 B567","type":"string"},"date":{"type":["string","null"],"format":"date-time"},"room":{"type":"array","items":{"type":"string"}},"treatmentType":{"type":["string","null"],"enum":["MED","VAC","ACI","RIN","DIS","BLT","OTH",null]},"treatmentMed":{"type":["string","null"]},"startUpVolume":{"type":["number","null"]},"treatmentStart":{"type":["string","null"],"format":"date-time"},"treatmentDuration":{"pattern":"^(.*(^\\d+d (0[0-9]|1[0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])$).*)$","example":"0d 07:54:23","type":"string"},"waterConsumption":{"type":"number"},"treatmentConsumption":{"type":"number"},"dosage":{"type":"number"},"stopReason":{"type":["string","null"],"enum":["EMP","MAN",null]},"alarmType":{"type":"array","items":{"type":"string"}},"alarmOccurence":{"type":"array","items":{"type":"string"}},"noConsumptionDuration":{"pattern":"^(.*(^\\d+d (0[0-9]|1[0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])$).*)$","example":"15d 12:05:18","type":"string"},"noTreatedQuantity":{"type":"number"},"status":{"type":"boolean"}}},"Data-doser.write":{"type":"object","description":"","deprecated":false,"properties":{"supplierRef":{"type":"array","items":{"type":"string"}},"serialNumberSD":{"type":"string"},"equipment":{"type":"string"},"installationDateSD":{"type":["string","null"],"format":"date-time"},"lastDiagnosisDate":{"type":["string","null"],"format":"date-time"},"lastDiagnosisResult":{"type":["integer","null"]},"lastMaintenanceDate":{"type":["string","null"],"format":"date-time"},"batteryDefect":{"type":"boolean"},"maintenanceRequired":{"type":["boolean","null"]},"softwareVersion":{"pattern":"^(\\d+\\.\\d+\\.\\d+\\.\\d+ B\\d+)$","example":"1.2.3.4 B567","type":"string"},"date":{"type":["string","null"],"format":"date-time"},"room":{"type":"array","items":{"type":"string"}},"treatmentType":{"type":["string","null"],"enum":["MED","VAC","ACI","RIN","DIS","BLT","OTH",null]},"treatmentMed":{"type":["string","null"]},"startUpVolume":{"type":["number","null"]},"treatmentStart":{"type":["string","null"],"format":"date-time"},"treatmentDuration":{"pattern":"^(.*(^\\d+d (0[0-9]|1[0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])$).*)$","example":"0d 07:54:23","type":"string"},"waterConsumption":{"type":"number"},"treatmentConsumption":{"type":"number"},"dosage":{"type":"number"},"stopReason":{"type":["string","null"],"enum":["EMP","MAN",null]},"alarmType":{"type":"array","items":{"type":"string"}},"alarmOccurence":{"type":"array","items":{"type":"string"}},"noConsumptionDuration":{"pattern":"^(.*(^\\d+d (0[0-9]|1[0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])$).*)$","example":"15d 12:05:18","type":"string"},"noTreatedQuantity":{"type":"number"},"status":{"type":"boolean"}}},"Data-piglink.read":{"type":"object","description":"","deprecated":false,"properties":{"piglinkRefList":{"type":["array","null"],"items":{"type":"string"}},"lastMaintenanceDate":{"type":["string","null"],"format":"date-time"},"treatmentType":{"type":["string","null"],"enum":["MED","VAC","ACI","RIN","DIS","BLT","OTH",null]},"treatmentMed":{"type":["string","null"]},"treatmentStart":{"type":["string","null"],"format":"date-time"},"treatmentDuration":{"pattern":"^(.*(^\\d+d (0[0-9]|1[0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])$).*)$","example":"0d 07:54:23","type":"string"},"waterConsumption":{"type":"number"},"treatmentConsumption":{"type":"number"},"dosage":{"type":"number"},"stopReason":{"type":["string","null"],"enum":["EMP","MAN",null]},"alarmType":{"type":"array","items":{"type":"string"}},"alarmOccurence":{"type":"array","items":{"type":"string"}},"noConsumptionDuration":{"pattern":"^(.*(^\\d+d (0[0-9]|1[0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])$).*)$","example":"15d 12:05:18","type":"string"},"noTreatedQuantity":{"type":"number"},"status":{"type":"boolean"}}},"Data.jsonld":{"type":"object","description":"","deprecated":false,"properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"id":{"readOnly":true,"type":"integer"},"piglinkRefList":{"type":["array","null"],"items":{"type":"string"}},"supplierRef":{"type":"array","items":{"type":"string"}},"serialNumberSD":{"type":"string"},"equipment":{"type":"string"},"installationDateSD":{"type":["string","null"],"format":"date-time"},"lastDiagnosisDate":{"type":["string","null"],"format":"date-time"},"lastDiagnosisResult":{"type":["integer","null"]},"lastMaintenanceDate":{"type":["string","null"],"format":"date-time"},"batteryDefect":{"type":"boolean"},"maintenanceRequired":{"type":["boolean","null"]},"softwareVersion":{"pattern":"^(\\d+\\.\\d+\\.\\d+\\.\\d+ B\\d+)$","example":"1.2.3.4 B567","type":"string"},"date":{"type":["string","null"],"format":"date-time"},"room":{"type":"array","items":{"type":"string"}},"treatmentType":{"type":["string","null"],"enum":["MED","VAC","ACI","RIN","DIS","BLT","OTH",null]},"treatmentMed":{"type":["string","null"]},"startUpVolume":{"type":["number","null"]},"treatmentStart":{"type":["string","null"],"format":"date-time"},"treatmentDuration":{"pattern":"^(.*(^\\d+d (0[0-9]|1[0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])$).*)$","example":"0d 07:54:23","type":"string"},"waterConsumption":{"type":"number"},"treatmentConsumption":{"type":"number"},"dosage":{"type":"number"},"stopReason":{"type":["string","null"],"enum":["EMP","MAN",null]},"alarmType":{"type":"array","items":{"type":"string"}},"alarmOccurence":{"type":"array","items":{"type":"string"}},"noConsumptionDuration":{"pattern":"^(.*(^\\d+d (0[0-9]|1[0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])$).*)$","example":"15d 12:05:18","type":"string"},"noTreatedQuantity":{"type":"number"},"status":{"type":"boolean"}}},"Data.jsonld-doser.write":{"type":"object","description":"","deprecated":false,"properties":{"supplierRef":{"type":"array","items":{"type":"string"}},"serialNumberSD":{"type":"string"},"equipment":{"type":"string"},"installationDateSD":{"type":["string","null"],"format":"date-time"},"lastDiagnosisDate":{"type":["string","null"],"format":"date-time"},"lastDiagnosisResult":{"type":["integer","null"]},"lastMaintenanceDate":{"type":["string","null"],"format":"date-time"},"batteryDefect":{"type":"boolean"},"maintenanceRequired":{"type":["boolean","null"]},"softwareVersion":{"pattern":"^(\\d+\\.\\d+\\.\\d+\\.\\d+ B\\d+)$","example":"1.2.3.4 B567","type":"string"},"date":{"type":["string","null"],"format":"date-time"},"room":{"type":"array","items":{"type":"string"}},"treatmentType":{"type":["string","null"],"enum":["MED","VAC","ACI","RIN","DIS","BLT","OTH",null]},"treatmentMed":{"type":["string","null"]},"startUpVolume":{"type":["number","null"]},"treatmentStart":{"type":["string","null"],"format":"date-time"},"treatmentDuration":{"pattern":"^(.*(^\\d+d (0[0-9]|1[0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])$).*)$","example":"0d 07:54:23","type":"string"},"waterConsumption":{"type":"number"},"treatmentConsumption":{"type":"number"},"dosage":{"type":"number"},"stopReason":{"type":["string","null"],"enum":["EMP","MAN",null]},"alarmType":{"type":"array","items":{"type":"string"}},"alarmOccurence":{"type":"array","items":{"type":"string"}},"noConsumptionDuration":{"pattern":"^(.*(^\\d+d (0[0-9]|1[0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])$).*)$","example":"15d 12:05:18","type":"string"},"noTreatedQuantity":{"type":"number"},"status":{"type":"boolean"}}},"Data.jsonld-piglink.read":{"type":"object","description":"","deprecated":false,"properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"piglinkRefList":{"type":["array","null"],"items":{"type":"string"}},"lastMaintenanceDate":{"type":["string","null"],"format":"date-time"},"treatmentType":{"type":["string","null"],"enum":["MED","VAC","ACI","RIN","DIS","BLT","OTH",null]},"treatmentMed":{"type":["string","null"]},"treatmentStart":{"type":["string","null"],"format":"date-time"},"treatmentDuration":{"pattern":"^(.*(^\\d+d (0[0-9]|1[0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])$).*)$","example":"0d 07:54:23","type":"string"},"waterConsumption":{"type":"number"},"treatmentConsumption":{"type":"number"},"dosage":{"type":"number"},"stopReason":{"type":["string","null"],"enum":["EMP","MAN",null]},"alarmType":{"type":"array","items":{"type":"string"}},"alarmOccurence":{"type":"array","items":{"type":"string"}},"noConsumptionDuration":{"pattern":"^(.*(^\\d+d (0[0-9]|1[0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])$).*)$","example":"15d 12:05:18","type":"string"},"noTreatedQuantity":{"type":"number"},"status":{"type":"boolean"}}}},"responses":{},"parameters":{},"examples":{},"requestBodies":{},"headers":{},"securitySchemes":{}},"security":[],"tags":[]}