-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
836127e
commit 0d4c926
Showing
8 changed files
with
72 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
node_modules | ||
.env | ||
static | ||
.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"schema_version": "v1", | ||
"name_for_human": "Category Taxonomy", | ||
"name_for_model": "category_taxonomy", | ||
"description_for_human": "Plugin to classify products into categories of well-known e-commerce platforms.", | ||
"description_for_model": "Plugin to classify products into categories of well-known e-commerce platforms.", | ||
"auth": { "type": "none" }, | ||
"api": { | ||
"type": "openapi", | ||
"url": "http://localhost:6006/openapi.yaml", | ||
"is_user_authenticated": false | ||
}, | ||
"logo_url": "http://localhost:6006/logo.png", | ||
"contact_email": "[email protected]", | ||
"legal_info_url": "http://localhost:6006/legal" | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
openapi: 3.0.1 | ||
info: | ||
title: Category Prediction API | ||
version: '1.0' | ||
servers: | ||
- url: 'http://localhost:6006' | ||
paths: | ||
/v2/category/predict/{platform}: | ||
post: | ||
summary: Predict the category for a given platform | ||
operationId: predictCategory | ||
parameters: | ||
- name: platform | ||
in: path | ||
description: The name of the platform to make a prediction for | ||
required: true | ||
schema: | ||
type: string | ||
enum: [trendyol, hepsiburada, ciceksepeti] | ||
- name: input | ||
in: query | ||
description: The name of the product | ||
required: true | ||
schema: | ||
type: string | ||
- name: deepSearch | ||
in: query | ||
description: Flag to indicate whether a deep search should be performed or not | ||
required: true | ||
schema: | ||
type: boolean | ||
responses: | ||
'200': | ||
description: Successful operation | ||
'400': | ||
description: Bad request. User input is invalid. | ||
'500': | ||
description: Internal server error. |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.