forked from dev-magdy/Shreyash-specs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
agify.yaml
38 lines (38 loc) · 1.02 KB
/
agify.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
37
38
openapi: 3.0.1
info:
title: Agify API
description: API that predicts Age based on name and/or region
version: "1"
servers:
- url: https://api.agify.io
paths:
/:
get:
operationId: predictAge
description: Send a name as the name parameter to predict the age, also can use country_id to improve accuracy with localization, the api follows ISO 3166-1 alpha 2 for country codes
parameters:
- name: name
in: query
required: true
style: form
explode: true
schema:
type: string
example: michael
- name: country_id
in: query
required: false
style: form
explode: true
schema:
type: string
example: US
responses:
"200":
description: Age Number prediction given the input to the API
content:
application/json; charset=utf-8:
schema:
type: string
examples: {}
components: {}