Skip to content

Instantly share code, notes, and snippets.

@sbespalov
Created November 7, 2017 08:01
Show Gist options
  • Save sbespalov/2a26a117af5e96f29b705245d5eb1b99 to your computer and use it in GitHub Desktop.
Save sbespalov/2a26a117af5e96f29b705245d5eb1b99 to your computer and use it in GitHub Desktop.
curl -X PUT \
http://localhost:8080/vankor-web-core/api/v1/planning/production/operation/plan \
-H 'authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJWQU5LT1IiLCJqdGkiOiJPVzBiUFYtWHFYZmpYZnBiWDBoNlZBIiwic3ViIjoieW9zaW5raW4ifQ.36FOYGVjzK_fZMogwaZGqYXgs3GKEPlLYmlXN0Zwk10' \
-H 'content-type: application/json' \
-d '{"operationId":"1008756", "periodDate" : "2017-12-09", "periodDateStart" : "2017-12-09", "periodDateEnd":"2018-01-12", "relativeWorkload" : "10"}'
{
//идентификатор операции
"operationId":"1008756",
//текущая дата
"periodDate" : "2017-12-09",
//начало периода планирования (больше текущей даты)
"periodDateStart" : "2017-12-09",
//конец периода планирования
"periodDateEnd":"2018-01-12",
//плановый процент трудозатрат за период по операции
"relativeWorkload" : "10"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment