Skip to content

Commit 2001a09

Browse files
committed
add search
1 parent 3731439 commit 2001a09

File tree

1 file changed

+57
-1
lines changed

1 file changed

+57
-1
lines changed

oas3-api.json

Lines changed: 57 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,12 +404,48 @@
404404
"Users"
405405
]
406406
}
407+
},
408+
"/users/search/{query}": {
409+
"get": {
410+
"operationId": "search",
411+
"parameters": [
412+
{
413+
"name": "query",
414+
"required": true,
415+
"in": "path",
416+
"schema": {
417+
"type": "string"
418+
}
419+
}
420+
],
421+
"responses": {
422+
"200": {
423+
"description": "",
424+
"content": {
425+
"application/json": {
426+
"schema": {
427+
"$ref": "#/components/schemas/UsersSearchResponse"
428+
}
429+
}
430+
}
431+
},
432+
"401": {
433+
"description": ""
434+
},
435+
"403": {
436+
"description": ""
437+
}
438+
},
439+
"tags": [
440+
"Users"
441+
]
442+
}
407443
}
408444
},
409445
"info": {
410446
"title": "Namet.ag API",
411447
"description": "Namet.ag public API documentation",
412-
"version": "0.0.1",
448+
"version": "0.0.2",
413449
"contact": {}
414450
},
415451
"tags": [],
@@ -778,6 +814,26 @@
778814
"capes",
779815
"processTime"
780816
]
817+
},
818+
"UsersSearchResponse": {
819+
"type": "object",
820+
"properties": {
821+
"profiles": {
822+
"description": "The Profiles found matching the search query",
823+
"type": "array",
824+
"items": {
825+
"$ref": "#/components/schemas/Profile"
826+
}
827+
},
828+
"processTime": {
829+
"type": "number",
830+
"description": "The number of milliseconds that Namet.ag took to complete the query"
831+
}
832+
},
833+
"required": [
834+
"profiles",
835+
"processTime"
836+
]
781837
}
782838
}
783839
}

0 commit comments

Comments
 (0)