smrak API (v0.1.9)

Download OpenAPI specification:Download

/

Responses

/openapi.yml

Responses

/tags

Responses

Response samples

Content type
application/json
[
  • "string"
]

/categories

Responses

Response samples

Content type
application/json
[
  • "string"
]

/post/uuid/{uuid}

path Parameters
uuid
required
string

Responses

Response samples

Content type
application/json
{
  • "uuid": "fabe88b5-a35e-4954-bfd8-b5e88c585e7a",
  • "slug": "file_stem",
  • "title": "string",
  • "description": "string",
  • "category": "string",
  • "lang": "ja",
  • "tags": [
    ],
  • "body": "string",
  • "created_at": "2019-08-24",
  • "updated_at": "2019-08-24"
}

/post/slug

query Parameters
slug
required
string

Stem of filename

lang
string
Default: "ja"
Enum: "ja" "en"

Lang

Responses

Response samples

Content type
application/json
{
  • "uuid": "fabe88b5-a35e-4954-bfd8-b5e88c585e7a",
  • "slug": "file_stem",
  • "title": "string",
  • "description": "string",
  • "category": "string",
  • "lang": "ja",
  • "tags": [
    ],
  • "body": "string",
  • "created_at": "2019-08-24",
  • "updated_at": "2019-08-24"
}

/post/count

query Parameters
lang
string
category
string
tag
string

Responses

Response samples

Content type
application/json
{
  • "count": 10
}

get all posts

query Parameters
lang
string
category
string
tag
string
order
string
Enum: "asc" "desc"
order_by
string
Enum: "update_at" "created_at"

Responses

Response samples

Content type
application/json
[
  • {
    }
]

/search

query Parameters
query
string
limit
integer >= 0

Responses

Response samples

Content type
application/json
[
  • {
    }
]