{ "swagger": "2.0", "info": { "description": "TMF632 Party Management", "version": "1.0.0", "title": "Party Management" }, "basePath": "/partyManagement/v1/", "schemes": [ "http", "https" ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ { "name": "Individual", "description": "" } ], "paths": { "/individual": { "post": { "tags": [ "Individual" ], "operationId": "individualCreate", "summary": "This operation is used to create an individual entity.", "deprecated": false, "parameters": [ { "name": "Individual", "required": true, "in": "body", "description": "", "schema": { "$ref": "#/definitions/Individual" } } ], "responses": { "201": { "description": "Success", "schema": { "$ref": "#/definitions/Individual" } }, "400": { "description": "Bad Request" }, "404": { "description": "Not Found" }, "500": { "description": "Internal Server Error" } } }, "get": { "tags": [ "Individual" ], "operationId": "individualFind", "summary": "This operation lists individual entities (physical persons)", "deprecated": false, "parameters": [], "responses": { "200": { "description": "Success", "schema": { "type": "array", "items": { "$ref": "#/definitions/Individual" } } }, "400": { "description": "Bad Request" }, "404": { "description": "Not Found" }, "500": { "description": "Internal Server Error" } } } }, "/individual/{individualId}": { "get": { "tags": [ "Individual" ], "operationId": "individualGet", "summary": "This operation retrieves an individual entity (physical person).", "deprecated": false, "parameters": [ { "name": "individualId", "in": "path", "required": true, "type": "string", "description": "Unique identifier of the individual" }, { "name": "fields", "required": false, "in": "query", "description": "Attribute selection", "type": "string" } ], "responses": { "200": { "description": "Success", "schema": { "$ref": "#/definitions/Individual" } }, "400": { "description": "Bad Request" }, "404": { "description": "Not Found" }, "500": { "description": "Internal Server Error" } } }, "patch": { "tags": [ "Individual" ], "operationId": "individualPatch", "summary": "This operation partially updates an individual entity", "deprecated": false, "parameters": [ { "name": "individualId", "in": "path", "required": true, "type": "string", "description": "Unique identifier of the individual" }, { "name": "Individual", "required": true, "in": "body", "description": "", "schema": { "$ref": "#/definitions/Individual" } } ], "responses": { "200": { "description": "Success", "schema": { "$ref": "#/definitions/Individual" } }, "400": { "description": "Bad Request" }, "404": { "description": "Not Found" }, "500": { "description": "Internal Server Error" } } }, "delete": { "tags": [ "Individual" ], "operationId": "individualDelete", "summary": "This operation is used to delete an existing individual entity.", "deprecated": false, "parameters": [ { "name": "individualId", "in": "path", "required": true, "type": "string", "description": "Unique identifier of the individual" } ], "responses": { "204": { "description": "Success" }, "400": { "description": "Bad Request" }, "404": { "description": "Not Found" }, "500": { "description": "Internal Server Error" } } } } }, "definitions": { "Individual": { "description": "", "required": [ "id" ], "type": "object", "properties": { "name": { "description": "Name of the individual", "type": "string" }, "password": { "description": "Password of the individual", "type": "string" }, "locale": { "description": "Language of the individual", "type": "string" } } } } }