ImasCordHub Backend API Specification (0.0.1)

Download OpenAPI specification:Download

(Caution) This API Specification is under development! Please excuse that some of the information and features are not available, enough, and correct. We are currently working very hard to develop this API now. Thank you for your understanding!

This is the specification for the ImasCordHub Backend API. ImasCordHub App uses this API to get all of informations of servers and fansites. And also it is available for those who need such informations as the developer through this API. The source code of this API is open at GitHub Repository. If you have any questions, please contact developer team through link below.

meta

Everything about the API itself.

health check for API.

Responses

Response samples

Content type
application/json
{
  • "status": "up"
}

server

All Discord Server operations.

get all server information.

query Parameters
pretty
boolean
Default: false
Example: pretty=true

Whether to pretty print the response or not. (default false, true is recommended for faster response)

fields
string
Example: fields=id,name,description

The fields to be output. (default all fields, comma separated, unselected fields of value will be null)

Responses

Response samples

Content type
application/json
[
  • {
    }
]

submit a new server information. **(Not implemented yet)**

Responses

Response samples

Content type
application/json
{
  • "reserved": "00000000-0000-0000-0000-000000000000",
  • "validation": "00000000-0000-0000-0000-000000000000",
  • "rel": {
    }
}

get a server information with internal id.

query Parameters
serverId
required
string <UUID>
Example: serverId=00000000-0000-0000-0000-000000000000

The internal id of the server.

pretty
boolean
Default: false
Example: pretty=true

Whether to pretty print the response or not. (default false, true is recommended for faster response)

fields
string
Example: fields=id,name,description

The fields to be output. (default all fields, comma separated, unselected fields of value will be null)

Responses

Response samples

Content type
application/json
{
  • "id": "00000000-0000-0000-0000-000000000000",
  • "name": "ImasCordHub Official (Not exist!)",
  • "ip": "765as",
  • "waifu": [
    ],
  • "description": "This is the official server of ImasCordHub. We are providing the information of servers and fansites of THE IDOLM@STER series!",
  • "splash": "string"
}

delete a server information with internal id. **(Not implemented yet)**

query Parameters
serverId
required
string <UUID>
Example: serverId=00000000-0000-0000-0000-000000000000

The internal id of the server.

header Parameters
validation_uuid
required
string

The validation UUID code for your server. You can use this ID to check the submit status of your server.

Responses

Response samples

Content type
application/json
{
  • "error": "Invalid request."
}

get multiple server information with name.

query Parameters
name
required
string
Example: name=My Server

The name of the server.

pretty
boolean
Default: false
Example: pretty=true

Whether to pretty print the response or not. (default false, true is recommended for faster response)

fields
string
Example: fields=id,name,description

The fields to be output. (default all fields, comma separated, unselected fields of value will be null)

Responses

Response samples

Content type
application/json
[
  • {
    }
]

get multiple server information with ip.

query Parameters
ip
required
string
Example: ip=765as

The ip of the server.

pretty
boolean
Default: false
Example: pretty=true

Whether to pretty print the response or not. (default false, true is recommended for faster response)

fields
string
Example: fields=id,name,description

The fields to be output. (default all fields, comma separated, unselected fields of value will be null)

Responses

Response samples

Content type
application/json
[
  • {
    }
]

get multiple server information with waifu.

query Parameters
waifu
required
string
Example: waifu=My Waifu

The waifu of the server.

pretty
boolean
Default: false
Example: pretty=true

Whether to pretty print the response or not. (default false, true is recommended for faster response)

fields
string
Example: fields=id,name,description

The fields to be output. (default all fields, comma separated, unselected fields of value will be null)

Responses

Response samples

Content type
application/json
[
  • {
    }
]

get a server information with validation UUID code. **(Not implemented yet)**

query Parameters
serverId
required
string <UUID>
Example: serverId=00000000-0000-0000-0000-000000000000

The internal id of the server.

pretty
boolean
Default: false
Example: pretty=true

Whether to pretty print the response or not. (default false, true is recommended for faster response)

fields
string
Example: fields=id,name,description

The fields to be output. (default all fields, comma separated, unselected fields of value will be null)

header Parameters
validation_uuid
required
string

The validation UUID code for your server. You can use this ID to check the submit status of your server.

Responses

Response samples

Content type
application/json
{
  • "error": "The requested resource was not found."
}

fansite

All Fansite operations.

get all fansite information.

query Parameters
pretty
boolean
Default: false
Example: pretty=true

Whether to pretty print the response or not. (default false, true is recommended for faster response)

fields
string
Example: fields=id,name,description

The fields to be output. (default all fields, comma separated, unselected fields of value will be null)

Responses

Response samples

Content type
application/json
[
  • {
    }
]

submit a new fansite information. **(Not implemented yet)**

Responses

Response samples

Content type
application/json
{
  • "reserved": "00000000-0000-0000-0000-000000000000",
  • "validation": "00000000-0000-0000-0000-000000000000",
  • "rel": {
    }
}

get a fansite information with internal id.

query Parameters
fansiteId
required
string <UUID>
Example: fansiteId=00000000-0000-0000-0000-000000000000

The internal id of the fansite.

pretty
boolean
Default: false
Example: pretty=true

Whether to pretty print the response or not. (default false, true is recommended for faster response)

fields
string
Example: fields=id,name,description

The fields to be output. (default all fields, comma separated, unselected fields of value will be null)

Responses

Response samples

Content type
application/json
{
  • "id": "00000000-0000-0000-0000-000000000000",
  • "name": "ImasCordHub",
  • "waifu": "天海春香",
  • "description": "This is the official server of ImasCordHub. We are providing the information of servers and fansites of THE IDOLM@STER series!",
}

delete a fansite information with internal id. **(Not implemented yet)**

query Parameters
fansiteId
required
string <UUID>
Example: fansiteId=00000000-0000-0000-0000-000000000000

The internal id of the fansite.

header Parameters
validation_uuid
required
string

The validation UUID code for your server. You can use this ID to check the submit status of your server.

Responses

Response samples

Content type
application/json
{
  • "error": "Invalid request."
}

get multiple fansites information with name.

query Parameters
name
required
string
Example: name=My Server

The name of the server.

pretty
boolean
Default: false
Example: pretty=true

Whether to pretty print the response or not. (default false, true is recommended for faster response)

fields
string
Example: fields=id,name,description

The fields to be output. (default all fields, comma separated, unselected fields of value will be null)

Responses

Response samples

Content type
application/json
[
  • {
    }
]

get multiple fansite information with waifu.

query Parameters
waifu
required
string
Example: waifu=My Waifu

The waifu of the server.

pretty
boolean
Default: false
Example: pretty=true

Whether to pretty print the response or not. (default false, true is recommended for faster response)

fields
string
Example: fields=id,name,description

The fields to be output. (default all fields, comma separated, unselected fields of value will be null)

Responses

Response samples

Content type
application/json
[
  • {
    }
]

get a fansite information with validation UUID code. **(Not implemented yet)**

query Parameters
fansiteId
required
string <UUID>
Example: fansiteId=00000000-0000-0000-0000-000000000000

The internal id of the fansite.

pretty
boolean
Default: false
Example: pretty=true

Whether to pretty print the response or not. (default false, true is recommended for faster response)

fields
string
Example: fields=id,name,description

The fields to be output. (default all fields, comma separated, unselected fields of value will be null)

header Parameters
validation_uuid
required
string

The validation UUID code for your server. You can use this ID to check the submit status of your server.

Responses

Response samples

Content type
application/json
{
  • "error": "The requested resource was not found."
}