-
Notifications
You must be signed in to change notification settings - Fork 16
/
text-count.modelxy.com.yaml
36 lines (36 loc) · 1.06 KB
/
text-count.modelxy.com.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
openapi: 3.0.1
info:
title: Word Count and Character Count
description: Count the number of words and characters in a given text.
version: '1.0.0'
servers:
- url: https://text-count.modelxy.com
paths:
/text-count:
post:
operationId: textCount
summary: Get the word count and character count of a text.
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
text:
type: string
description: The input text to count the words and characters.
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
properties:
wordCount:
type: integer
description: The number of words in the input text.
characterCount:
type: integer
description: The number of characters in the input text.