Skip to content

Latest commit

 

History

History
78 lines (60 loc) · 1.77 KB

single.rst

File metadata and controls

78 lines (60 loc) · 1.77 KB

Single group

Retrieve the info of a certain group.

Request parameters

  • id (int) - The group's ID.

Example request

shell

curl -i http://example.com/api/v1/groups/1 -H 'If-None-Match: 820727be5a235d089af4ad66ffeae017'

Example response

http

HTTP/1.1 200 OK Date: Tue, 28 Aug 2018 09:35:27 GMT Server: WSGIServer/0.2 CPython/3.7.0 Content-Type: application/json ETag: "37fef7866db8e2a0020d2a4ea519fa75" X-Frame-Options: SAMEORIGIN Content-Length: 284

{

"id": 1, "name": "Group", "description": "An example group", "website": "https://example.com", "discord": "https://discord.me/examplegroup", "twitter": "ExampleGroup", "logo": "https://example.com/media/groups/1/logo.png", "members": [ { "id": 1, "name": "John Doe", "roles": ["Leader"], "twitter": "JohnDoe_1234", "discord": "John Doe#1234" }, ], "series": [ { "slug": "some-manga", "title": "Some manga", "aliases": ["Some mango"] } ]

}

Response body

The response body is a JSON object which contains the following: