Skip to content

Commit

Permalink
feat: generated API codebase
Browse files Browse the repository at this point in the history
  • Loading branch information
naman108 committed Jul 16, 2024
1 parent aea70b5 commit 2bb61b4
Show file tree
Hide file tree
Showing 6 changed files with 67 additions and 69 deletions.
3 changes: 0 additions & 3 deletions src/READMEFIRST.MD

This file was deleted.

30 changes: 15 additions & 15 deletions src/WorkforceManagement_blueprint.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def PATCHEmployee():
return str(e), 500
@page.route('/Region', methods=["POST"])
def POSTRegion():
"""TODO"""
"""Create a new region"""
try:
# send data to the NetworkInterface
response = BlueprintCommunicator().send_message_sync(
Expand All @@ -76,7 +76,7 @@ def POSTRegion():
return str(e), 500
@page.route('/Region', methods=["DELETE"])
def DELETERegion():
"""TODO"""
"""Delete by ID a Region"""
try:
# send data to the NetworkInterface
response = BlueprintCommunicator().send_message_sync(
Expand All @@ -90,7 +90,7 @@ def DELETERegion():
return str(e), 500
@page.route('/Region', methods=["GET"])
def GETRegion():
"""TODO"""
"""Returns a list of all Regions"""
try:
# send data to the NetworkInterface
response = BlueprintCommunicator().send_message_sync(
Expand All @@ -103,7 +103,7 @@ def GETRegion():
return str(e), 500
@page.route('/Region', methods=["PATCH"])
def PATCHRegion():
"""TODO"""
"""Unpdate by ID a Region"""
try:
# send data to the NetworkInterface
response = BlueprintCommunicator().send_message_sync(
Expand Down Expand Up @@ -200,7 +200,7 @@ def POSTActivityMetricTimeEfficiency():
return str(e), 500
@page.route('/Employee/<id>', methods=["GET"])
def GETEmployeeId(id,):
"""TODO"""
"""Return by ID an Employee"""
try:
# send data to the NetworkInterface
response = BlueprintCommunicator().send_message_sync(
Expand All @@ -215,7 +215,7 @@ def GETEmployeeId(id,):
return str(e), 500
@page.route('/Schedule', methods=["POST"])
def POSTSchedule():
"""TODO"""
"""Create a new Schedule"""
try:
# send data to the NetworkInterface
response = BlueprintCommunicator().send_message_sync(
Expand All @@ -229,7 +229,7 @@ def POSTSchedule():
return str(e), 500
@page.route('/Schedule', methods=["DELETE"])
def DELETESchedule():
"""TODO"""
"""Delete by ID a Schehdule"""
try:
# send data to the NetworkInterface
response = BlueprintCommunicator().send_message_sync(
Expand All @@ -243,7 +243,7 @@ def DELETESchedule():
return str(e), 500
@page.route('/Schedule', methods=["GET"])
def GETSchedule():
"""TODO"""
"""Returns a list of all Schedules"""
try:
# send data to the NetworkInterface
response = BlueprintCommunicator().send_message_sync(
Expand All @@ -256,7 +256,7 @@ def GETSchedule():
return str(e), 500
@page.route('/Schedule', methods=["PATCH"])
def PATCHSchedule():
"""TODO"""
"""Unpdate by ID a Schedule"""
try:
# send data to the NetworkInterface
response = BlueprintCommunicator().send_message_sync(
Expand All @@ -270,7 +270,7 @@ def PATCHSchedule():
return str(e), 500
@page.route('/Region/<id>', methods=["GET"])
def GETRegionId(id,):
"""TODO"""
"""Return by ID a Region"""
try:
# send data to the NetworkInterface
response = BlueprintCommunicator().send_message_sync(
Expand All @@ -285,7 +285,7 @@ def GETRegionId(id,):
return str(e), 500
@page.route('/Schedule/<id>', methods=["GET"])
def GETScheduleId(id,):
"""TODO"""
"""Return by ID a Schedule"""
try:
# send data to the NetworkInterface
response = BlueprintCommunicator().send_message_sync(
Expand Down Expand Up @@ -314,7 +314,7 @@ def POSTActivity():
return str(e), 500
@page.route('/Activity', methods=["DELETE"])
def DELETEActivity():
"""TODO"""
"""Delete by ID an Activity"""
try:
# send data to the NetworkInterface
response = BlueprintCommunicator().send_message_sync(
Expand All @@ -328,7 +328,7 @@ def DELETEActivity():
return str(e), 500
@page.route('/Activity', methods=["GET"])
def GETActivity():
"""TODO"""
"""Returns a list of all Activities"""
try:
# send data to the NetworkInterface
response = BlueprintCommunicator().send_message_sync(
Expand All @@ -341,7 +341,7 @@ def GETActivity():
return str(e), 500
@page.route('/Activity', methods=["PATCH"])
def PATCHActivity():
"""TODO"""
"""Unpdate by ID an Activity"""
try:
# send data to the NetworkInterface
response = BlueprintCommunicator().send_message_sync(
Expand All @@ -355,7 +355,7 @@ def PATCHActivity():
return str(e), 500
@page.route('/Activity/<id>', methods=["GET"])
def GETActivityId(id,):
"""TODO"""
"""Return by ID an Activity"""
try:
# send data to the NetworkInterface
response = BlueprintCommunicator().send_message_sync(
Expand Down
30 changes: 15 additions & 15 deletions src/WorkforceManagement_facade.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,22 +97,22 @@ def PATCHEmployee(self, *args, **kwargs):
self.WorkforceManagement_controller.PATCHEmployee(*args, **kwargs)
@DefaultFacade.public
def POSTRegion(self, *args, **kwargs):
"""TODO
"""Create a new region
"""
self.WorkforceManagement_controller.POSTRegion(*args, **kwargs)
@DefaultFacade.public
def DELETERegion(self, *args, **kwargs):
"""TODO
"""Delete by ID a Region
"""
self.WorkforceManagement_controller.DELETERegion(*args, **kwargs)
@DefaultFacade.public
def GETRegion(self, *args, **kwargs):
"""TODO
"""Returns a list of all Regions
"""
self.WorkforceManagement_controller.GETRegion(*args, **kwargs)
@DefaultFacade.public
def PATCHRegion(self, *args, **kwargs):
"""TODO
"""Unpdate by ID a Region
"""
self.WorkforceManagement_controller.PATCHRegion(*args, **kwargs)
@DefaultFacade.public
Expand Down Expand Up @@ -147,37 +147,37 @@ def POSTActivityMetricTimeEfficiency(self, *args, **kwargs):
self.WorkforceManagement_controller.POSTActivityMetricTimeEfficiency(*args, **kwargs)
@DefaultFacade.public
def GETEmployeeId(self, *args, **kwargs):
"""TODO
"""Return by ID an Employee
"""
self.WorkforceManagement_controller.GETEmployeeId(*args, **kwargs)
@DefaultFacade.public
def POSTSchedule(self, *args, **kwargs):
"""TODO
"""Create a new Schedule
"""
self.WorkforceManagement_controller.POSTSchedule(*args, **kwargs)
@DefaultFacade.public
def DELETESchedule(self, *args, **kwargs):
"""TODO
"""Delete by ID a Schehdule
"""
self.WorkforceManagement_controller.DELETESchedule(*args, **kwargs)
@DefaultFacade.public
def GETSchedule(self, *args, **kwargs):
"""TODO
"""Returns a list of all Schedules
"""
self.WorkforceManagement_controller.GETSchedule(*args, **kwargs)
@DefaultFacade.public
def PATCHSchedule(self, *args, **kwargs):
"""TODO
"""Unpdate by ID a Schedule
"""
self.WorkforceManagement_controller.PATCHSchedule(*args, **kwargs)
@DefaultFacade.public
def GETRegionId(self, *args, **kwargs):
"""TODO
"""Return by ID a Region
"""
self.WorkforceManagement_controller.GETRegionId(*args, **kwargs)
@DefaultFacade.public
def GETScheduleId(self, *args, **kwargs):
"""TODO
"""Return by ID a Schedule
"""
self.WorkforceManagement_controller.GETScheduleId(*args, **kwargs)
@DefaultFacade.public
Expand All @@ -187,21 +187,21 @@ def POSTActivity(self, *args, **kwargs):
self.WorkforceManagement_controller.POSTActivity(*args, **kwargs)
@DefaultFacade.public
def DELETEActivity(self, *args, **kwargs):
"""TODO
"""Delete by ID an Activity
"""
self.WorkforceManagement_controller.DELETEActivity(*args, **kwargs)
@DefaultFacade.public
def GETActivity(self, *args, **kwargs):
"""TODO
"""Returns a list of all Activities
"""
self.WorkforceManagement_controller.GETActivity(*args, **kwargs)
@DefaultFacade.public
def PATCHActivity(self, *args, **kwargs):
"""TODO
"""Unpdate by ID an Activity
"""
self.WorkforceManagement_controller.PATCHActivity(*args, **kwargs)
@DefaultFacade.public
def GETActivityId(self, *args, **kwargs):
"""TODO
"""Return by ID an Activity
"""
self.WorkforceManagement_controller.GETActivityId(*args, **kwargs)
37 changes: 19 additions & 18 deletions src/configuration/WorkforceManagement-OAS.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
openapi: 3.0.1
info:
title: WorkforceManagement
version: '24.07.16.02'
version: '24.07.16.04'
description: >-
he Workforce Management (WFM) component within the Open Digital Architecture (ODA) framework is designed to optimize the management of an organization's human resources. It integrates various functionalities essential for efficient workforce planning, scheduling, and performance management, ensuring that the right people are in the right place at the right time, and their efforts align with the strategic goals of the enterprise.
new Levio version!!!
the Workforce Management (WFM) component within the Open Digital Architecture (ODA) framework is designed to optimize the management of an organization's human resources. It integrates various functionalities essential for efficient workforce planning, scheduling, and performance management, ensuring that the right people are in the right place at the right time, and their efforts align with the strategic goals of the enterprise.
Key Features:
Expand Down Expand Up @@ -104,7 +105,7 @@ paths:
tags:
- Region
description: >-
summary: TODO
summary: Create a new region
operationId: CreateRegion
requestBody:
$ref: '#/components/requestBodies/Region'
Expand All @@ -116,7 +117,7 @@ paths:
tags:
- Region
description: >-
summary: TODO
summary: Delete by ID a Region
operationId: DeleteRegion
parameters:
- $ref: '#/components/parameters/ID'
Expand All @@ -128,7 +129,7 @@ paths:
tags:
- Region
description: >-
summary: TODO
summary: Returns a list of all Regions
operationId: ListRegion
responses:
'200':
Expand All @@ -138,7 +139,7 @@ paths:
tags:
- Region
description: >-
summary: TODO
summary: Unpdate by ID a Region
operationId: PatchRegion
requestBody:
$ref: '#/components/requestBodies/Region'
Expand Down Expand Up @@ -223,7 +224,7 @@ paths:
tags:
- Employee
description: >-
summary: TODO
summary: Return by ID an Employee
operationId: RetreiveEmployee
parameters:
- $ref: '#/components/parameters/id'
Expand All @@ -236,7 +237,7 @@ paths:
tags:
- Schedule
description: >-
summary: TODO
summary: Create a new Schedule
operationId: CreateSchedule
requestBody:
$ref: '#/components/requestBodies/Schedule'
Expand All @@ -248,7 +249,7 @@ paths:
tags:
- Schedule
description: >-
summary: TODO
summary: Delete by ID a Schehdule
operationId: DeleteSchedule
parameters:
- $ref: '#/components/parameters/ID'
Expand All @@ -260,7 +261,7 @@ paths:
tags:
- Schedule
description: >-
summary: TODO
summary: Returns a list of all Schedules
operationId: ListSchedule
responses:
'200':
Expand All @@ -270,7 +271,7 @@ paths:
tags:
- Schedule
description: >-
summary: TODO
summary: Unpdate by ID a Schedule
operationId: PatchSchedule
requestBody:
$ref: '#/components/requestBodies/Schedule'
Expand All @@ -283,7 +284,7 @@ paths:
tags:
- Region
description: >-
summary: TODO
summary: Return by ID a Region
operationId: RetreiveRegion
parameters:
- $ref: '#/components/parameters/id'
Expand All @@ -296,7 +297,7 @@ paths:
tags:
- Schedule
description: >-
summary: TODO
summary: Return by ID a Schedule
operationId: RetreiveSchedule
parameters:
- $ref: '#/components/parameters/id'
Expand All @@ -321,7 +322,7 @@ paths:
tags:
- Activity
description: >-
summary: TODO
summary: Delete by ID an Activity
operationId: DeleteActivity
parameters:
- $ref: '#/components/parameters/ID'
Expand All @@ -333,17 +334,17 @@ paths:
tags:
- Activity
description: >-
summary: TODO
summary: Returns a list of all Activities
operationId: ListActivity
responses:
'200':
$ref: '#/components/responses/200Activity_get'
patch:
x-scope: public
tags:
- Employee
- Activity
description: >-
summary: TODO
summary: Unpdate by ID an Activity
operationId: PatchActivity
requestBody:
$ref: '#/components/requestBodies/Activity'
Expand All @@ -356,7 +357,7 @@ paths:
tags:
- Activity
description: >-
summary: TODO
summary: Return by ID an Activity
operationId: RetreiveActivity
parameters:
- $ref: '#/components/parameters/id'
Expand Down
Loading

0 comments on commit 2bb61b4

Please sign in to comment.