{"openapi":"3.0.0","info":{"title":"Horizon Connect","description":"API permettant de questionner les sessions publi\u00e9es depuis Horizon","version":"1.3"},"servers":[{"url":"\/","description":""}],"paths":{"\/api\/domains":{"get":{"operationId":"_api_\/domains.{_format}_get_collection","tags":["Domain"],"responses":{"200":{"description":"Domain collection","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Domain"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Domain"}}},"application\/octet-stream":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Domain"}}},"application\/zip":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Domain"}}}}}},"summary":"Retrieves the collection of Domain resources.","description":"Retrieves the collection of Domain resources.","parameters":[{"name":"typeId","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer"},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/api\/domains\/{id}":{"parameters":[]},"\/api\/families":{"get":{"operationId":"_api_\/families.{_format}_get_collection","tags":["Family"],"responses":{"200":{"description":"Family collection","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Family"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Family"}}},"application\/octet-stream":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Family"}}},"application\/zip":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Family"}}}}}},"summary":"Retrieves the collection of Family resources.","description":"Retrieves the collection of Family resources.","parameters":[{"name":"subdomainId","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer"},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/api\/families\/{id}":{"parameters":[]},"\/api\/locations":{"get":{"operationId":"_api_\/locations.{_format}_get_collection","tags":["Location"],"responses":{"200":{"description":"Location collection","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Location"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Location"}}},"application\/octet-stream":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Location"}}},"application\/zip":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Location"}}}}}},"summary":"Retrieves the collection of Location resources.","description":"Retrieves the collection of Location resources.","parameters":[],"deprecated":false},"parameters":[]},"\/api\/locations\/{id}":{"parameters":[]},"\/api\/products":{"get":{"operationId":"_api_\/products.{_format}_get_collection","tags":["Product"],"responses":{"200":{"description":"Product collection","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Product"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Product"}}},"application\/octet-stream":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Product"}}},"application\/zip":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Product"}}}}}},"summary":"Retrieves the collection of Product resources.","description":"Retrieves the collection of Product resources.","parameters":[{"name":"domain","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer"},"style":"form","explode":false,"allowReserved":false},{"name":"subdomain","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer"},"style":"form","explode":false,"allowReserved":false},{"name":"family","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer"},"style":"form","explode":false,"allowReserved":false},{"name":"productCode","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"string"},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/api\/products\/{id}":{"parameters":[]},"\/api\/quizzweb_interfaces":{"get":{"operationId":"_api_\/quizzweb_interfaces.{_format}_get_collection","tags":["QuizzwebInterface"],"responses":{"200":{"description":"QuizzwebInterface collection","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/QuizzwebInterface"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/QuizzwebInterface"}}},"application\/octet-stream":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/QuizzwebInterface"}}},"application\/zip":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/QuizzwebInterface"}}}}}},"summary":"Retrieves the collection of QuizzwebInterface resources.","description":"Retrieves the collection of QuizzwebInterface resources.","parameters":[],"deprecated":false},"parameters":[]},"\/api\/quizzweb_sessions":{"get":{"operationId":"_api_\/quizzweb_sessions.{_format}_get_collection","tags":["QuizzwebSession"],"responses":{"200":{"description":"QuizzwebSession collection","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/QuizzwebSession"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/QuizzwebSession"}}},"application\/octet-stream":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/QuizzwebSession"}}},"application\/zip":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/QuizzwebSession"}}}}}},"summary":"Retrieves the collection of QuizzwebSession resources.","description":"Retrieves the collection of QuizzwebSession resources.","parameters":[],"deprecated":false},"post":{"operationId":"_api_\/quizzweb_sessions.{_format}_post","tags":["QuizzwebSession"],"responses":{"201":{"description":"QuizzwebSession resource created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/QuizzwebSession"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/QuizzwebSession"}},"application\/octet-stream":{"schema":{"$ref":"#\/components\/schemas\/QuizzwebSession"}},"application\/zip":{"schema":{"$ref":"#\/components\/schemas\/QuizzwebSession"}}},"links":{}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"}},"summary":"Creates a QuizzwebSession resource.","description":"Creates a QuizzwebSession resource.","parameters":[],"requestBody":{"description":"The new QuizzwebSession resource","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/QuizzwebSession.QsessionInput-edit_trainer-put"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/QuizzwebSession.QsessionInput-edit_trainer-put"}},"application\/octet-stream":{"schema":{"$ref":"#\/components\/schemas\/QuizzwebSession.QsessionInput-edit_trainer-put"}},"application\/zip":{"schema":{"$ref":"#\/components\/schemas\/QuizzwebSession.QsessionInput-edit_trainer-put"}}},"required":true},"deprecated":false},"parameters":[]},"\/api\/quizzweb_sessions\/{id}":{"get":{"operationId":"_api_\/quizzweb_sessions\/{id}.{_format}_get","tags":["QuizzwebSession"],"responses":{"200":{"description":"QuizzwebSession resource","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/QuizzwebSession"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/QuizzwebSession"}},"application\/octet-stream":{"schema":{"$ref":"#\/components\/schemas\/QuizzwebSession"}},"application\/zip":{"schema":{"$ref":"#\/components\/schemas\/QuizzwebSession"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a QuizzwebSession resource.","description":"Retrieves a QuizzwebSession resource.","parameters":[{"name":"id","in":"path","description":"QuizzwebSession identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"delete":{"operationId":"_api_\/quizzweb_sessions\/{id}.{_format}_delete","tags":["QuizzwebSession"],"responses":{"204":{"description":"QuizzwebSession resource deleted"},"404":{"description":"Resource not found"}},"summary":"Removes the QuizzwebSession resource.","description":"Removes the QuizzwebSession resource.","parameters":[{"name":"id","in":"path","description":"QuizzwebSession identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/api\/quizzweb_sessions\/{id}\/files":{"get":{"operationId":"_api_quizzweb_sessions\/{id}\/files_get","tags":["QuizzwebSession"],"responses":{"200":{"description":"File downloaded successfully","content":{"application\/zip":{"schema":{"type":"string","format":"binary"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a QuizzwebSession resource.","description":"Retrieves a QuizzwebSession resource.","parameters":[{"name":"id","in":"path","description":"QuizzwebSession identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/api\/quizzweb_sessions\/{id}\/qbsession":{"get":{"operationId":"_api_quizzweb_sessions\/{id}\/qbsession_get","tags":["QuizzwebSession"],"responses":{"200":{"description":"File downloaded successfully","content":{"application\/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a QuizzwebSession resource.","description":"Retrieves a QuizzwebSession resource.","parameters":[{"name":"id","in":"path","description":"QuizzwebSession identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/api\/sessions":{"get":{"operationId":"_api_\/sessions.{_format}_get_collection","tags":["Session"],"responses":{"200":{"description":"Session collection","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Session"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Session"}}},"application\/octet-stream":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Session"}}},"application\/zip":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Session"}}}}}},"summary":"Retrieves the collection of Session resources.","description":"Retrieves the collection of Session resources.","parameters":[{"name":"startDate","in":"query","description":"","required":true,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"string"},"style":"form","explode":false,"allowReserved":false,"example":"YYYY-MM-DD"},{"name":"endDate","in":"query","description":"","required":true,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"string"},"style":"form","explode":false,"allowReserved":false,"example":"YYYY-MM-DD"},{"name":"type","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer"},"style":"form","explode":false,"allowReserved":false},{"name":"domain","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer"},"style":"form","explode":false,"allowReserved":false},{"name":"subdomain","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer"},"style":"form","explode":false,"allowReserved":false},{"name":"family","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer"},"style":"form","explode":false,"allowReserved":false},{"name":"productCode","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"string"},"style":"form","explode":false,"allowReserved":false},{"name":"locationId","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer"},"style":"form","explode":false,"allowReserved":false},{"name":"availability","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer"},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/api\/sessions\/{id}":{"get":{"operationId":"_api_\/sessions\/{id}.{_format}_get","tags":["Session"],"responses":{"200":{"description":"Session resource","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Session"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Session"}},"application\/octet-stream":{"schema":{"$ref":"#\/components\/schemas\/Session"}},"application\/zip":{"schema":{"$ref":"#\/components\/schemas\/Session"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a Session resource.","description":"Retrieves a Session resource.","parameters":[{"name":"id","in":"path","description":"Session identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/api\/subdomains":{"get":{"operationId":"_api_\/subdomains.{_format}_get_collection","tags":["Subdomain"],"responses":{"200":{"description":"Subdomain collection","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Subdomain"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Subdomain"}}},"application\/octet-stream":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Subdomain"}}},"application\/zip":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Subdomain"}}}}}},"summary":"Retrieves the collection of Subdomain resources.","description":"Retrieves the collection of Subdomain resources.","parameters":[{"name":"domainId","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer"},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/api\/subdomains\/{id}":{"parameters":[]},"\/api\/types":{"get":{"operationId":"_api_\/types.{_format}_get_collection","tags":["Type"],"responses":{"200":{"description":"Type collection","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Type"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Type"}}},"application\/octet-stream":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Type"}}},"application\/zip":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Type"}}}}}},"summary":"Retrieves the collection of Type resources.","description":"Retrieves the collection of Type resources.","parameters":[],"deprecated":false},"parameters":[]},"\/api\/types\/{id}":{"parameters":[]}},"components":{"schemas":{"Domain":{"type":"object","description":"","properties":{"id":{"type":"string"},"name":{"type":"string"}}},"Family":{"type":"object","description":"","properties":{"id":{"type":"string"},"name":{"type":"string"}}},"Location":{"type":"object","description":"","properties":{"id":{"type":"string"},"name":{"type":"string"},"address1":{"type":"string","nullable":true},"address2":{"type":"string","nullable":true},"postalCode":{"type":"string","nullable":true},"city":{"type":"string","nullable":true}}},"Product":{"type":"object","description":"","properties":{"id":{"type":"string"},"productCode":{"type":"string"},"productName":{"type":"string"},"productTypeId":{"type":"string"},"productDomainId":{"type":"string"},"productSubDomainId":{"type":"string"},"productFamilyId":{"type":"string"}}},"QattendeeInput-edit_trainer-put":{"type":"object","description":"","properties":{"firstname":{"type":"string"},"lastname":{"type":"string"},"email":{"type":"string","nullable":true},"society":{"$ref":"#\/components\/schemas\/QsocietyInput-edit_trainer-put"},"registrationNumber":{"type":"string"},"birthDate":{"type":"string","nullable":true}}},"QsocietyInput-edit_trainer-put":{"type":"object","description":"","properties":{"name":{"type":"string"},"clientId":{"type":"string"}}},"QuizzwebInterface":{"type":"object","description":"","properties":{"id":{"type":"integer"},"name":{"type":"string"},"groupId":{"type":"integer"}}},"QuizzwebSession":{"type":"object","description":"","properties":{"id":{"type":"integer","nullable":true},"name":{"description":"Name must be unique","type":"string"},"type":{"anyOf":[{"$ref":"#\/components\/schemas\/SessionType"}],"nullable":true},"startDate":{"type":"string","format":"date-time"},"endDate":{"type":"string","format":"date-time"},"place":{"type":"string","nullable":true},"comment":{"type":"string","nullable":true},"field1":{"type":"string","nullable":true},"field2":{"type":"string","nullable":true},"field3":{"type":"string","nullable":true},"field4":{"type":"string","nullable":true},"field5":{"type":"string","nullable":true},"field6":{"type":"string","nullable":true},"field7":{"type":"string","nullable":true},"field8":{"type":"string","nullable":true},"field9":{"type":"string","nullable":true},"field10":{"type":"string","nullable":true},"trainingId":{"type":"string","nullable":true},"societyId":{"type":"string","nullable":true},"trainerId":{"type":"string","nullable":true},"traineesIds":{"type":"array","items":{"type":"string"}},"traineesId":{"description":"This property is used for GET session endpoint which property differs from PUT","type":"array","items":{"type":"string"}},"groupingCode":{"type":"string","nullable":true},"quizzboxInterfaceId":{"type":"string","nullable":true}}},"QuizzwebSession.QsessionInput-edit_trainer-put":{"type":"object","description":"","properties":{"quizzwebId":{"type":"integer","nullable":true},"name":{"type":"string"},"startDate":{"type":"string","format":"date-time"},"endDate":{"type":"string","format":"date-time"},"type":{"anyOf":[{"$ref":"#\/components\/schemas\/SessionType-edit_trainer-put"}],"nullable":true},"comment":{"type":"string","nullable":true},"trainerData":{"anyOf":[{"$ref":"#\/components\/schemas\/Trainer-edit_trainer-put"}],"nullable":true},"trainingData":{"$ref":"#\/components\/schemas\/Training-edit_trainer-put"},"attendees":{"type":"array","items":{"$ref":"#\/components\/schemas\/QattendeeInput-edit_trainer-put"}},"groupingCode":{"type":"string","nullable":true},"interfaceId":{"type":"integer","nullable":true}}},"Session":{"type":"object","description":"","properties":{"id":{"type":"integer"},"participantCount":{"type":"integer"},"productName":{"type":"string"},"startDate":{"type":"integer"},"endDate":{"type":"integer"},"durationDay":{"type":"integer"},"durationTime":{"type":"object","properties":{"h":{"type":"integer"},"m":{"type":"integer"}},"description":"An object represeting session duration with hours and minutes properties"},"locationName":{"type":"string","nullable":true},"locationId":{"type":"string"},"locationAddress1":{"type":"string","nullable":true},"locationAddress2":{"type":"string","nullable":true},"locationPostalCode":{"type":"string","nullable":true},"locationCity":{"type":"string","nullable":true},"locationCountry":{"type":"string","nullable":true},"availability":{"type":"integer","nullable":true},"interPrice":{"type":"number","nullable":true},"intraPrice":{"type":"number","nullable":true},"discountPercentage":{"type":"integer"},"sessionCode":{"type":"string"},"productTypeId":{"type":"integer"},"productDomainId":{"type":"integer"},"productSubDomainId":{"type":"integer"},"productFamilyId":{"type":"integer"},"productCode":{"type":"string"}}},"SessionType":{"type":"object","description":"","properties":{"name":{"readOnly":true,"type":"string"},"value":{"readOnly":true,"type":"string"}}},"SessionType-edit_trainer-put":{"type":"object","description":""},"Subdomain":{"type":"object","description":"","properties":{"id":{"type":"string"},"name":{"type":"string"}}},"Trainer-edit_trainer-put":{"type":"object","description":"","properties":{"firstname":{"type":"string"},"lastname":{"type":"string"},"profile":{"default":{"name":"Attendee","value":"Stagiaire"},"example":{"name":"Attendee","value":"Stagiaire"},"$ref":"#\/components\/schemas\/UserProfile-edit_trainer-put"},"active":{"description":"Must be true for trainers, false otherwise","type":"boolean"},"email":{"description":"Mandatory for profile UserProfile::Formateur","type":"string","nullable":true},"registrationNumber":{"type":"string"}}},"Training-edit_trainer-put":{"type":"object","description":"","properties":{"trainingCode":{"type":"string"},"label":{"type":"string"}}},"Type":{"type":"object","description":"","properties":{"id":{"type":"string"},"name":{"type":"string"}}},"UserProfile-edit_trainer-put":{"type":"object","description":""}},"responses":{},"parameters":{},"examples":{},"requestBodies":{},"headers":{},"securitySchemes":{"apiKey":{"type":"apiKey","description":"Value for the Authorization header parameter.","name":"Authorization","in":"header"}}},"security":[{"apiKey":[]}],"tags":[]}