Get work skills

get

/rest/ofscCore/v1/resources/{resourceId}/workSkills

This operation retrieves the details about the work skills assigned to the specified resource.

Request

Path Parameters
Query Parameters
  • The work skills, which are active starting from the specified date, are retrieved in the response. Specify the date in YYYY-MM-DD format.
  • The work skills, which are active starting from the date in the dateFrom parameter till the specified date, are retrieved in the response. Specify the date in YYYY-MM-DD format. If you specify the dateTo parameter, then you must also specify the dateFrom parameter.
Back to Top

Response

Supported Media Types

200 Response

This section describes the 200 status response for this operation.
Body ()
Root Schema : Work Skills
Type: object
Title: Work Skills
The collection of resource work skill items.
Show Source
Nested Schema : Items
Type: array
Title: Items
An array of objects containing the details of the work skills of the resource.
Show Source
Nested Schema : Work Skill
Type: object
Title: Work Skill
Show Source
  • Title: End Date
    The date until when the work skill is effective. Specify the date in 'YYYY-MM-DD' format.
  • Title: Ratio
    Minimum Value: 0
    Maximum Value: 100
    The skill level of the resource.
  • Title: Start Date
    The date when the work skill takes effect. Specify the date in 'YYYY-MM-DD' format.
  • Title: Work Skill Label
    Maximum Length: 40
    The label of the work skill.

Default Response

This section describes the default error response for this operation.
Body ()
Root Schema : Error
Type: object
Show Source
Back to Top

Examples

The following example shows how to get work skills for a resource by submitting a GET request on the REST resource.

Example of Request Header

The following shows an example of the request header.

GET /rest/ofscCore/v1/resources/33011/workSkills HTTP/1.0

Example of Response Header

The following shows an example of the response header.

HTTP/1.1 200 OK

Example of Response Body

The following example shows the contents of the response body in JSON format.

{
	"items": [
		{
			"workSkill": "NP",
			"ratio": 50,
			"startDate": "2016-07-06"
		},
		{
			"workSkill": "Routing",
			"ratio": 100,
			"startDate": "2016-07-08",
			"endDate": "2016-07-09"
		}
	],
	"totalResults": 2,
	"links": [
		{
			"rel": "canonical",
			"href": "http://<instance_name>.fs.ocs.oraclecloud.com/rest/ofscCore/v1/resources/john.smith/workSkills"
		}
	]
}
Back to Top