Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jade-42/b47282c74415ceb81d3d to your computer and use it in GitHub Desktop.
Save jade-42/b47282c74415ceb81d3d to your computer and use it in GitHub Desktop.
GET /v5/assignments?refresh=false HTTP/1.1
Cookie: ASP.NET_SessionId=h4aqseqfgaxu4jik4z00cg23; ARRAffinity=3178ec5da365eae1eecdb9c87f61fdc445f40cde68e0b9bef9a56a15aef8656b
Authorization: Bearer ea867198-81b0-4ee8-9740-cf9411a7d983
User-Agent: Dalvik/2.1.0 (Linux; U; Android 6.0; PREVIEW - Google Nexus 5X - 6.0.0 - API 23 - 1080x1920 Build/MRA58K)
Host: stage-measurements.global-registry.org
Connection: Keep-Alive
Accept-Encoding: gzip
HTTP/1.1 200 OK
Server: nginx/0.7.67
Date: Tue, 05 Jan 2016 17:34:17 GMT
Content-Type: application/json; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
Cache-Control: no-cache
Pragma: no-cache
Expires: -1
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Access-Control-Allow-Credentials: true
Strict-Transport-Security: max-age=15768000
Content-Encoding: gzip
[{
"id": "cd1b464a-ee75-11e4-bfa4-12c37bb2d521",
"team_role": "self_assigned",
"ministry_id": "69418776-da0b-11e3-bc95-12725f8f377c",
"name": "Justin's Test Team 5",
"min_code": "",
"lmi_show": [],
"lmi_hide": [],
"parent_id": "124a6c86-da0a-11e3-b387-12725f8f377c",
"mccs": [],
"hide_reports_tab": false
}, {
"id": "10c7a136-ee76-11e4-ac80-12c37bb2d521",
"team_role": "self_assigned",
"ministry_id": "668cc3cc-d6ac-11e3-a755-12725f8f377c",
"name": "Congo, the Democratic Republic of the",
"min_code": "DRC",
"lmi_show": [],
"lmi_hide": [],
"parent_id": "6cbb31a2-d6ac-11e3-9037-12725f8f377c",
"mccs": ["slm", "llm", "gcm", "ds"],
"hide_reports_tab": false
}]
PUT /v5/assignments/cd1b464a-ee75-11e4-bfa4-12c37bb2d521 HTTP/1.1
Content-Type: application/json
Cookie: ASP.NET_SessionId=h4aqseqfgaxu4jik4z00cg23; ARRAffinity=3178ec5da365eae1eecdb9c87f61fdc445f40cde68e0b9bef9a56a15aef8656b
Authorization: Bearer ea867198-81b0-4ee8-9740-cf9411a7d983
Content-Length: 22
User-Agent: Dalvik/2.1.0 (Linux; U; Android 6.0; PREVIEW - Google Nexus 5X - 6.0.0 - API 23 - 1080x1920 Build/MRA58K)
Host: stage-measurements.global-registry.org
Connection: Keep-Alive
Accept-Encoding: gzip
{"team_role":"member"}
HTTP/1.1 401 Unauthorized
Server: nginx/0.7.67
Date: Tue, 05 Jan 2016 17:34:17 GMT
Content-Type: application/json
Connection: keep-alive
Cache-Control: no-cache
Pragma: no-cache
Content-Length: 160
Expires: -1
WWW-Authenticate: Unauthorized realm="api"
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Access-Control-Allow-Credentials: true
{"status": "denied", "reason": "INSUFFICIENT_RIGHTS - You must be a member of one of the following roles: leader, inherited_leader, admin, inherited_admin, ."}
PUT /v5/assignments/10c7a136-ee76-11e4-ac80-12c37bb2d521 HTTP/1.1
Content-Type: application/json
Cookie: ASP.NET_SessionId=h4aqseqfgaxu4jik4z00cg23; ARRAffinity=3178ec5da365eae1eecdb9c87f61fdc445f40cde68e0b9bef9a56a15aef8656b
Authorization: Bearer ea867198-81b0-4ee8-9740-cf9411a7d983
Content-Length: 22
User-Agent: Dalvik/2.1.0 (Linux; U; Android 6.0; PREVIEW - Google Nexus 5X - 6.0.0 - API 23 - 1080x1920 Build/MRA58K)
Host: stage-measurements.global-registry.org
Connection: Keep-Alive
Accept-Encoding: gzip
{"team_role":"member"}
HTTP/1.1 401 Unauthorized
Server: nginx/0.7.67
Date: Tue, 05 Jan 2016 17:34:18 GMT
Content-Type: application/json
Connection: keep-alive
Cache-Control: no-cache
Pragma: no-cache
Content-Length: 160
Expires: -1
WWW-Authenticate: Unauthorized realm="api"
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Access-Control-Allow-Credentials: true
{"status": "denied", "reason": "INSUFFICIENT_RIGHTS - You must be a member of one of the following roles: leader, inherited_leader, admin, inherited_admin, ."}
POST /v5/stories HTTP/1.1
Content-Type: application/json
Cookie: ASP.NET_SessionId=h4aqseqfgaxu4jik4z00cg23; ARRAffinity=3178ec5da365eae1eecdb9c87f61fdc445f40cde68e0b9bef9a56a15aef8656b
Authorization: Bearer ea867198-81b0-4ee8-9740-cf9411a7d983
Content-Length: 203
User-Agent: Dalvik/2.1.0 (Linux; U; Android 6.0; PREVIEW - Google Nexus 5X - 6.0.0 - API 23 - 1080x1920 Build/MRA58K)
Host: stage-measurements.global-registry.org
Connection: Keep-Alive
Accept-Encoding: gzip
{
"ministry_id": "668cc3cc-d6ac-11e3-a755-12725f8f377c",
"title": "",
"content": "We ...",
"privacy": "public",
"state": "published",
"location": {
"latitude": 8.988465674311579E307,
"longitude": 8.988465674311579E307
}
}
HTTP/1.1 401 Unauthorized
Server: nginx/0.7.67
Date: Tue, 05 Jan 2016 17:34:28 GMT
Content-Type: application/json
Connection: keep-alive
Cache-Control: no-cache
Pragma: no-cache
Content-Length: 168
Expires: -1
WWW-Authenticate: Unauthorized realm="api"
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Access-Control-Allow-Credentials: true
{
"status": "denied",
"reason": "INSUFFICIENT_RIGHTS - You must be a member of one of the following roles: leader, inherited_leader, admin, inherited_admin, member, ."
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment