{"openapi": "3.0.3", "info": {"version": "1.0.1", "title": "un swagger", "description": "mon swagger", "contact": {"email": "davidcourseaux@gmail.com"}}, "servers": [{"description": "Serveur API", "url": "https://api-int.fr/v1/"}], "paths": {"/PersonnePhysique": {"post": {"tags": ["PersonnePhysique"], "summary": "add a new PersonnePhysique", "description": "", "operationId": "postPersonnePhysique", "requestBody": {"description": "PersonnePhysique object that needs to be added ", "required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/PersonnePhysique"}}}}, "responses": {"200": {"description": "successful operation", "content": {"application/json": {"schema": {"type": "object", "properties": {"content": {"type": "object", "items": {"$ref": "#/components/schemas/PersonnePhysique"}}}}}, "application/xml": {"schema": {"type": "object", "properties": {"content": {"type": "object", "items": {"$ref": "#/components/schemas/PersonnePhysique"}}}}}, "application/x-www-form-urlencoded": {"schema": {"type": "object", "properties": {"content": {"type": "object", "items": {"$ref": "#/components/schemas/PersonnePhysique"}}}}}}, "links": {}}, "405": {"description": "Invalid input", "links": {}}}, "security": [{"oAuthServerToServer": ["write_", "read_"]}]}, "put": {"tags": ["PersonnePhysique"], "summary": "Update an existing PersonnePhysique", "description": "", "operationId": "putPersonnephysique", "requestBody": {"description": "PersonnePhysique object that needs to be added ", "required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/PersonnePhysique"}}, "application/xml": {"schema": {"$ref": "#/components/schemas/PersonnePhysique"}}, "application/x-www-form-urlencoded": {"schema": {"$ref": "#/components/schemas/PersonnePhysique"}}}}, "responses": {"200": {"description": "successful operation", "content": {"application/json": {"schema": {"type": "object", "properties": {"content": {"type": "object", "items": {"$ref": "#/components/schemas/PersonnePhysique"}}}}}, "application/xml": {"schema": {"$ref": "#/components/schemas/PersonnePhysique"}}, "application/x-www-form-urlencoded": {"schema": {"$ref": "#/components/schemas/PersonnePhysique"}}}, "links": {}}, "400": {"description": "Invalid ID supplied", "links": {}}, "404": {"description": "PersonnePhysique not found", "links": {}}, "405": {"description": "Validation exception", "links": {}}}, "security": [{"oAuthServerToServer": ["write_", "read_"]}]}}, "/PersonnePhysique/fuzzySearch": {"get": {"tags": ["PersonnePhysique"], "summary": null, "security": [{"oAuthServerToServer": ["read_"]}], "description": "description", "operationId": "getGetfuzzysearch", "parameters": [{"in": "query", "name": "search", "required": true, "description": "", "schema": {"type": "string"}}, {"in": "query", "name": "limit", "required": true, "description": "", "schema": {"type": "string"}}, {"in": "query", "name": "offset", "required": true, "description": "", "schema": {"type": "string"}}], "responses": {"200": {"description": "successful operation", "content": {"application/json": {"schema": {"type": "object", "properties": {"content": {"type": "array", "items": {"$ref": "#/components/schemas/PersonnePhysique"}}}}}}, "links": {}}, "400": {"$ref": "#/components/responses/BadRequest", "links": {}}, "401": {"$ref": "#/components/responses/Unauthorized", "links": {}}, "404": {"$ref": "#/components/responses/NotFound", "links": {}}, "500": {"$ref": "#/components/responses/ServerError", "links": {}}}}}, "/PersonnePhysique/findOneByPivot": {"get": {"tags": ["PersonnePhysique"], "summary": null, "security": [{"oAuthServerToServer": ["read_"]}], "description": "description", "operationId": "getGetfindonebypivot", "parameters": [{"in": "query", "name": "sexe", "required": true, "description": "", "schema": {"type": "string"}}, {"in": "query", "name": "nom", "required": true, "description": "", "schema": {"type": "string"}}, {"in": "query", "name": "prenom", "required": true, "description": "", "schema": {"type": "string"}}, {"in": "query", "name": "dateNaissance", "required": true, "description": "", "schema": {"type": "string"}}, {"in": "query", "name": "codePostalNaissance", "required": true, "description": "", "schema": {"type": "string"}}], "responses": {"200": {"description": "successful operation", "content": {"application/json": {"schema": {"type": "object", "properties": {"content": {"type": "array", "items": {"$ref": "#/components/schemas/PersonnePhysique"}}}}}}, "links": {}}, "400": {"$ref": "#/components/responses/BadRequest", "links": {}}, "401": {"$ref": "#/components/responses/Unauthorized", "links": {}}, "404": {"$ref": "#/components/responses/NotFound", "links": {}}, "500": {"$ref": "#/components/responses/ServerError", "links": {}}}}}, "/PersonnePhysique/findOneByReference": {"get": {"tags": ["PersonnePhysique"], "summary": null, "security": [{"oAuthServerToServer": ["read_"]}], "description": "description", "operationId": "getGetfindonebyreference", "parameters": [{"in": "query", "name": "type", "required": true, "description": "", "schema": {"type": "string"}}, {"in": "query", "name": "valeur", "required": true, "description": "", "schema": {"type": "string"}}], "responses": {"200": {"description": "successful operation", "content": {"application/json": {"schema": {"type": "object", "properties": {"content": {"type": "array", "items": {"$ref": "#/components/schemas/PersonnePhysique"}}}}}}, "links": {}}, "400": {"$ref": "#/components/responses/BadRequest", "links": {}}, "401": {"$ref": "#/components/responses/Unauthorized", "links": {}}, "404": {"$ref": "#/components/responses/NotFound", "links": {}}, "500": {"$ref": "#/components/responses/ServerError", "links": {}}}}}, "/PersonnePhysique/findByPhone": {"get": {"tags": ["PersonnePhysique"], "summary": null, "security": [{"oAuthServerToServer": ["read_"]}], "description": "description", "operationId": "getGetfindbyphone", "parameters": [{"in": "query", "name": "numTelephone", "required": true, "description": "", "schema": {"type": "string"}}], "responses": {"200": {"description": "successful operation", "content": {"application/json": {"schema": {"type": "object", "properties": {"content": {"type": "array", "items": {"$ref": "#/components/schemas/PersonnePhysique"}}}}}}, "links": {}}, "400": {"$ref": "#/components/responses/BadRequest", "links": {}}, "401": {"$ref": "#/components/responses/Unauthorized", "links": {}}, "404": {"$ref": "#/components/responses/NotFound", "links": {}}, "500": {"$ref": "#/components/responses/ServerError", "links": {}}}}}, "/PersonnePhysique/newOperation5": {"get": {"tags": ["PersonnePhysique"], "summary": null, "security": [{"oAuthServerToServer": ["read_"]}], "description": "description", "operationId": "getGetnewoperation5", "parameters": [{"description": "PersonnePhysiqueData object that needs to be added ", "required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/PersonnePhysiqueData"}}}}], "responses": {"200": {"description": "successful operation", "content": {"application/json": {"schema": {"type": "object", "properties": {"content": {"type": "array", "items": {"$ref": "#/components/schemas/PersonnePhysique"}}}}}}, "links": {}}, "400": {"$ref": "#/components/responses/BadRequest", "links": {}}, "401": {"$ref": "#/components/responses/Unauthorized", "links": {}}, "404": {"$ref": "#/components/responses/NotFound", "links": {}}, "500": {"$ref": "#/components/responses/ServerError", "links": {}}}}}, "/PersonnePhysique/{uuid}/emails": {"get": {"tags": ["PersonnePhysique"], "summary": "get a new PersonnePhysique/{uuid}/emails", "security": [{"oAuthServerToServer": ["read_"]}], "description": "description", "operationId": "getPersonnePhysiqueMails", "parameters": [{"in": "path", "name": "uuid", "description": "", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "successful operation", "content": {"application/json": {"schema": {"type": "object", "properties": {"content": {"type": "array", "items": {"$ref": "#/components/schemas/Mail"}}}}}}, "links": {}}, "400": {"$ref": "#/components/responses/BadRequest", "links": {}}, "401": {"$ref": "#/components/responses/Unauthorized", "links": {}}, "404": {"$ref": "#/components/responses/NotFound", "links": {}}, "500": {"$ref": "#/components/responses/ServerError", "links": {}}}}}, "/PersonnePhysique/{uuid}": {"get": {"tags": ["PersonnePhysique"], "summary": "get a new PersonnePhysique By Uuid", "security": [{"oAuthServerToServer": ["read_"]}], "description": "description", "operationId": "getGetoperationcByUuid", "parameters": [{"in": "path", "name": "uuid", "description": "", "required": true, "schema": {"type": "integer"}}], "responses": {"200": {"description": "successful operation", "content": {"application/json": {"schema": {"type": "object", "properties": {"content": {"type": "object", "items": {"$ref": "#/components/schemas/PersonnePhysique"}}}}}}, "links": {}}, "400": {"$ref": "#/components/responses/BadRequest", "links": {}}, "401": {"$ref": "#/components/responses/Unauthorized", "links": {}}, "404": {"$ref": "#/components/responses/NotFound", "links": {}}, "500": {"$ref": "#/components/responses/ServerError", "links": {}}}}, "post": {"tags": ["PersonnePhysique"], "summary": "add a new PersonnePhysique By Uuid", "security": [{"oAuthServerToServer": ["read_"]}], "description": "description", "operationId": "getoperationCByUuid", "parameters": [{"in": "path", "name": "uuid", "description": "", "required": true, "schema": {"type": "integer"}}, {"in": "query", "name": "sexe", "description": "", "required": true, "schema": {"type": "string", "enum": ["Masculin", "Feminin", "Autre"]}}, {"in": "query", "name": "etat", "description": "", "required": true, "schema": {"type": "string", "enum": ["Vivant", "Decede"]}}, {"in": "query", "name": "situation", "description": "", "required": true, "schema": {"type": "string", "enum": ["Marie", "Celibataire", "Pacse", "Divorce", "Separe", "Veuf"]}}, {"in": "query", "name": "nom", "description": "", "required": true, "schema": {"type": "string"}}, {"in": "query", "name": "prenom", "description": "", "required": true, "schema": {"type": "string"}}, {"in": "query", "name": "nomNaissance", "description": "", "required": true, "schema": {"type": "string"}}, {"in": "query", "name": "dateNaissance", "description": "", "required": true, "schema": {"type": "string"}}, {"in": "query", "name": "codePostalNaissance", "description": "", "required": true, "schema": {"type": "string"}}, {"in": "query", "name": "NombreEnfants", "description": "", "required": true, "schema": {"type": "integer"}}], "responses": {"200": {"description": "successful operation", "content": {"application/json": {"schema": {"type": "object", "properties": {"content": {"type": "object", "items": {"$ref": "#/components/schemas/PersonnePhysique"}}}}}}, "links": {}}, "400": {"$ref": "#/components/responses/BadRequest", "links": {}}, "401": {"$ref": "#/components/responses/Unauthorized", "links": {}}, "404": {"$ref": "#/components/responses/NotFound", "links": {}}, "500": {"$ref": "#/components/responses/ServerError", "links": {}}}}, "delete": {"tags": ["PersonnePhysique"], "summary": "remove PersonnePhysique By Uuid", "security": [{"oAuthServerToServer": ["read_"]}], "description": "description", "operationId": "deleteGetoperationcByUuid", "parameters": [{"in": "path", "name": "uuid", "description": "", "required": true, "schema": {"type": "integer"}}], "responses": {"200": {"description": "successful operation", "content": {"application/json": {"schema": {"type": "object", "properties": {"content": {"type": "object", "items": {"$ref": "#/components/schemas/PersonnePhysique"}}}}}}, "links": {}}, "400": {"$ref": "#/components/responses/BadRequest", "links": {}}, "401": {"$ref": "#/components/responses/Unauthorized", "links": {}}, "404": {"$ref": "#/components/responses/NotFound", "links": {}}, "500": {"$ref": "#/components/responses/ServerError", "links": {}}}}}, "/PersonnePhysique/{uuid}/addresses": {"get": {"tags": ["PersonnePhysique"], "summary": "get a new PersonnePhysique/{uuid}/addresses", "security": [{"oAuthServerToServer": ["read_"]}], "description": "description", "operationId": "getPersonnePhysiqueAddresss", "parameters": [{"in": "path", "name": "uuid", "description": "", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "successful operation", "content": {"application/json": {"schema": {"type": "object", "properties": {"content": {"type": "array", "items": {"$ref": "#/components/schemas/Address"}}}}}}, "links": {}}, "400": {"$ref": "#/components/responses/BadRequest", "links": {}}, "401": {"$ref": "#/components/responses/Unauthorized", "links": {}}, "404": {"$ref": "#/components/responses/NotFound", "links": {}}, "500": {"$ref": "#/components/responses/ServerError", "links": {}}}}}}, "components": {"responses": {"NotFound": {"description": "Ressource recherch\u00e9e Non trouv\u00e9e", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "Unauthorized": {"description": "Non Autoris\u00e9", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "BadRequest": {"description": "Non Autoris\u00e9", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "ServerError": {"description": "Erreur de serveur", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "securitySchemes": {"oAuthServerToServer": {"type": "oauth2", "description": "This API uses OAuth", "flows": {"clientCredentials": {"tokenUrl": "/oauth/token/v1", "scopes": {"read_": "read_", "write_": "modify_"}}}}}, "schemas": {"Address": {"type": "object", "properties": {"street": {"type": "string"}, "uiid": {"type": "integer"}}}, "Paging": {"type": "object", "properties": {"pageSize": {"type": "integer"}, "currentPage": {"type": "integer"}}}, "Error": {"type": "object", "properties": {"code": {"type": "string"}, "error": {"type": "string"}}}, "Employee": {"type": "object", "properties": {"uiid": {"type": "integer"}, "personnephysique": {"type": "object", "items": {"$ref": "#/components/schemas/PersonnePhysique"}}}}, "Mail": {"type": "object", "properties": {"uid": {"type": "string"}, "dateDebut": {"type": "string"}, "dateFin": {"type": "string"}, "etat": {"type": "boolean"}, "eMail": {"type": "string"}}}, "PersonnePhysique": {"type": "object", "properties": {"uuid": {"type": "integer"}, "emails": {"type": "array", "items": {"$ref": "#/components/schemas/Mail"}}, "addresses": {"type": "array", "items": {"$ref": "#/components/schemas/Address"}}, "telephones": {"type": "array", "items": {"$ref": "#/components/schemas/Telephone"}}, "personnephysiqueTest": {"type": "object", "items": {"$ref": "#/components/schemas/PersonnePhysique"}}, "sexe": {"type": "string", "enum": ["Masculin", "Feminin", "Autre"]}, "etat": {"type": "string", "enum": ["Vivant", "Decede"]}, "situation": {"type": "string", "enum": ["Marie", "Celibataire", "Pacse", "Divorce", "Separe", "Veuf"]}, "nom": {"type": "string"}, "prenom": {"type": "string"}, "nomNaissance": {"type": "string"}, "dateNaissance": {"type": "string"}, "codePostalNaissance": {"type": "string"}, "NombreEnfants": {"type": "integer"}}}, "PersonnePhysiqueData": {"type": "object", "properties": {"situation": {"type": "string", "enum": ["Marie", "Celibataire", "Pacse", "Divorce", "Separe", "Veuf"]}}}, "Telephone": {"type": "object", "properties": {"uid": {"type": "string"}, "dateDebut": {"type": "string"}, "dateFin": {"type": "string"}, "etat": {"type": "string"}, "dateMiseAJour": {"type": "string"}, "numTelephone": {"type": "string"}}}}}}