ios-junior-engineer-codecheck-backend (1.0.1)

Download OpenAPI specification:Download

Fortune

Get fortune for given person

This endpoint returns the fortune of a person based on their name, birthday, and blood type, as well as the current date.

header Parameters
API-Version
string
Value: "v1"
Example: v1

API version you'd like to use in your sending request. Currently only v1 available. If you don't attach this parameter in your header, system will use the latest API version.

Request Body schema: application/json
name
required
string [ 1 .. 127 ] characters

Target's name.

required
object

Target's birthday.

blood_type
required
string
Enum: "a" "b" "ab" "o"

Target's blood type.

required
object

Today's date.

Responses

Request samples

Content type
application/json
{
  • "name": "ゆめみん",
  • "birthday": {
    },
  • "blood_type": "ab",
  • "today": {
    }
}

Response samples

Content type
application/json
{
  • "name": "富山県",
  • "brief": "富山県(とやまけん)は、日本の中部地方に位置する県。県庁所在地は富山市。\n中部地方の日本海側、新潟県を含めた場合の北陸地方のほぼ中央にある。\n※出典: フリー百科事典『ウィキペディア(Wikipedia)』",
  • "capital": "富山市",
  • "citizen_day": {
    },
  • "has_coast_line": true,
}