Created
April 26, 2019 19:44
-
-
Save weissjeffm/d9429f13b53878421bcf736d360389f8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#+BEGIN_SRC restclient | |
POST :base-url/reports/schedules/create | |
Content-Type: application/json | |
Accept: application/json | |
x-lg-session: :session-token | |
{"params": {"name": "jeff-vendor", | |
"final": 1655609567371, | |
"recipients": [{"type": "user", | |
"user-id": "5C!N<nPM6jCLbK]OzguatPN$Z"}], | |
"repeat": "quarterly", | |
"type": "scorecard", | |
"params": {"collection-id": "H00ytD{c>E4$p.1>f:>T98O_["}, | |
"workspace-id": "=;&zR/}LYNuOa%g$]nu(`BPMg"}} | |
#+end_src | |
#+RESULTS: | |
#+BEGIN_SRC js | |
{ | |
"ok": true, | |
"result": { | |
"final": 1655609567371, | |
"id": "fvO>q+7gN>(JO%ejzN!sV-R<n", | |
"name": "jeff-vendor", | |
"recipients": [ | |
{ | |
"type": "user", | |
"user-id": "5C!N<nPM6jCLbK]OzguatPN$Z" | |
} | |
], | |
"repeat": "quarterly", | |
"type": "scorecard", | |
"created-by": "5C!N<nPM6jCLbK]OzguatPN$Z", | |
"created-at": 1556301296341, | |
"params": { | |
"collection-id": "H00ytD{c>E4$p.1>f:>T98O_[" | |
} | |
} | |
} | |
// POST http://192.168.66.229:8080/reports/schedules/create | |
// HTTP/1.1 200 OK | |
// x-lg-host: archlinux.lg-routed | |
// Content-Type: application/json | |
// Content-Length: 332 | |
// Server: Jetty(9.4.12.v20180830) | |
// Request duration: 0.707487s | |
#+END_SRC | |
#+BEGIN_SRC restclient | |
POST :base-url/reports/schedules/update | |
Content-Type: application/json | |
Accept: application/json | |
x-lg-session: :session-token | |
{"params": {"schedule-id": ".!/+E1PI/u6BQ5.@nn9EW[DIs", | |
"field-updates": [{"field-name": "params", | |
"value": {"collection-id": "$CqX]Hv+S[UBmmsHK6jKRq+/x"}, | |
"operation": "set"}]}} | |
#+end_src | |
#+RESULTS: | |
#+BEGIN_SRC js | |
{ | |
"ok": true, | |
"result": { | |
"final": 1655609567371, | |
"id": ".!/+E1PI/u6BQ5.@nn9EW[DIs", | |
"name": "jeff-vendor", | |
"recipients": [ | |
{ | |
"type": "user", | |
"user-id": "5C!N<nPM6jCLbK]OzguatPN$Z" | |
} | |
], | |
"repeat": "quarterly", | |
"type": "vendor-scorecard", | |
"created-by": "5C!N<nPM6jCLbK]OzguatPN$Z", | |
"created-at": 1556197588243 | |
} | |
} | |
// POST http://192.168.66.229:8080/reports/schedules/update | |
// HTTP/1.1 200 OK | |
// x-lg-host: archlinux.lg-routed | |
// Content-Type: application/json | |
// Content-Length: 284 | |
// Server: Jetty(9.4.12.v20180830) | |
// Request duration: 0.113299s | |
#+END_SRC | |
#+BEGIN_SRC restclient | |
POST :base-url/reports/schedules/delete | |
Content-Type: application/json | |
Accept: application/json | |
x-lg-session: :session-token | |
{"params": {"schedule-id": ".!/+E1PI/u6BQ5.@nn9EW[DIs"}} | |
#+end_src | |
#+RESULTS: | |
#+BEGIN_SRC js | |
{ | |
"ok": true, | |
"result": null | |
} | |
// POST http://192.168.66.229:8080/reports/schedules/delete | |
// HTTP/1.1 200 OK | |
// x-lg-host: archlinux.lg-routed | |
// Content-Type: application/json | |
// Content-Length: 25 | |
// Server: Jetty(9.4.12.v20180830) | |
// Request duration: 0.324081s | |
#+END_SRC | |
#+BEGIN_SRC restclient | |
POST :base-url/reports/schedules/get | |
Content-Type: application/json | |
Accept: application/json | |
x-lg-session: :session-token | |
{"params": {"schedule-id": "YJ8Ydx[iuGBCvBMruhF2q=z)D"}} | |
#+end_src | |
#+RESULTS: | |
#+BEGIN_SRC js | |
{ | |
"ok": true, | |
"result": { | |
"id": "YJ8Ydx[iuGBCvBMruhF2q=z)D", | |
"name": "far", | |
"recipients": [ | |
{ | |
"type": "user", | |
"user-id": "W>U06Y4<pgo7(V,N-&B@1;pms" | |
} | |
], | |
"repeat": "weekly", | |
"type": "test", | |
"created-by": "W>U06Y4<pgo7(V,N-&B@1;pms", | |
"created-at": 1554833471013 | |
} | |
} | |
// POST http://192.168.66.229:8080/reports/schedules/get | |
// HTTP/1.1 200 OK | |
// x-lg-host: archlinux.lg-routed | |
// Content-Type: application/json | |
// Content-Length: 239 | |
// Server: Jetty(9.4.12.v20180830) | |
// Request duration: 0.110954s | |
#+END_SRC | |
#+BEGIN_SRC restclient | |
POST :base-url/reports/schedules/get-by-workspace | |
Content-Type: application/json | |
Accept: application/json | |
x-lg-session: :session-token | |
{"params": {"workspace-id": "=;&zR/}LYNuOa%g$]nu(`BPMg"}} | |
#+end_src | |
#+RESULTS: | |
#+BEGIN_SRC js | |
{ | |
"ok": true, | |
"result": [ | |
{ | |
"final": 1655609567371, | |
"id": ".!/+E1PI/u6BQ5.@nn9EW[DIs", | |
"name": "jeff-vendor", | |
"recipients": [ | |
{ | |
"type": "user", | |
"user-id": "5C!N<nPM6jCLbK]OzguatPN$Z" | |
} | |
], | |
"repeat": "quarterly", | |
"type": "vendor-scorecard", | |
"created-by": "5C!N<nPM6jCLbK]OzguatPN$Z", | |
"created-at": 1556197588243, | |
"params": { | |
"collection-id": "$CqX]Hv+S[UBmmsHK6jKRq+/x" | |
} | |
} | |
] | |
} | |
// POST http://192.168.66.229:8080/reports/schedules/get-by-workspace | |
// HTTP/1.1 200 OK | |
// x-lg-host: archlinux.lg-routed | |
// Content-Type: application/json | |
// Content-Length: 341 | |
// Server: Jetty(9.4.12.v20180830) | |
// Request duration: 0.212971s | |
#+END_SRC |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment