Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: product feed crud #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion admin/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<div id="container"></div>
<script src="https://cdn.jsdelivr.net/npm/redoc@next/bundles/redoc.standalone.js"></script>
<script>
Redoc.init('/admin/openapi-1.1.6.yaml?v=16', {
Redoc.init('/admin/openapi-1.1.7.yaml?v=17', {
scrollYOffset: 50
}, document.getElementById('container'))
</script>
Expand Down
375 changes: 375 additions & 0 deletions admin/openapi-1.1.6.yaml → admin/openapi-1.1.7.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1590,6 +1590,381 @@ paths:
required:
- campaignIds
- fields
/v2/productFeed:
post:
summary: Create new product feed setting
operationId: post-v2-create-product-feed
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
message:
type: string
'400':
description: Bad Request
content:
application/json:
schema:
type: object
properties:
errors:
$ref: ./models/error.v1.yaml
tags:
- Product Feed
description: Use this endpoint to create product feed
security:
- API Key Param: []
requestBody:
content:
application/json:
schema:
type: object
properties:
org_id:
type: string
user_id:
type: string
adv_id:
type: string
src:
type: string
enum:
- feed
- api
feed_config:
type: object
properties:
url:
type: string
username:
type: string
password:
type: string
api_config:
type: object
data_mapping:
type: object
sample_file_name:
type: string
sample_file_path:
type: string
frequency:
type: integer
whitelist_pubs:
type: array
items:
type: string
blacklist_pubs:
type: array
items:
type: string
status:
type: string
enum:
- active
- inactive
rt:
type: string
required:
- org_id
- user_id
- adv_id
- src
- frequency
- status
- rt
/v2/productFeed/:id:
parameters:
- schema:
type: string
name: id
in: path
required: true
description: productFeedId
get:
summary: Get Product Feed
operationId: get-v2-product-feed
tags:
- Product Feed
description: Use this endpoint to get Product Feed
security:
- API Key Param: []
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
properties:
product_feed:
type: object
properties:
org_id:
type: string
user_id:
type: string
adv_id:
type: string
src:
type: string
enum:
- feed
- api
feed_config:
type: object
properties:
url:
type: string
username:
type: string
password:
type: string
api_config:
type: object
sample_file_name:
type: string
sample_file_path:
type: string
data_mapping:
type: object
status:
type: string
enum:
- active
- inactive
frequency:
type: integer
whitelist_pubs:
type: array
items:
type: string
blacklist_pubs:
type: array
items:
type: string
'400':
description: Bad Request
content:
application/json:
schema:
type: object
properties:
errors:
$ref: ./models/error.v1.yaml
delete:
summary: Delete Product Feed
operationId: delete-v2-product-feed
tags:
- Product Feed
description: Use this endpoint to delete Product Feed
security:
- API Key Param: []
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
message:
type: string
'400':
description: Bad Request
content:
application/json:
schema:
type: object
properties:
errors:
$ref: ./models/error.v1.yaml
post:
summary: Edit Product Feed
operationId: update-v2-product-feed
tags:
- Product Feed
description: Use this endpoint to edit Product Feed
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
product_feed:
type: object
properties:
org_id:
type: string
user_id:
type: string
adv_id:
type: string
src:
type: string
enum:
- feed
- api
feed_config:
type: object
properties:
url:
type: string
username:
type: string
password:
type: string
api_config:
type: object
sample_file_name:
type: string
sample_file_path:
type: string
data_mapping:
type: object
status:
type: string
enum:
- active
- inactive
frequency:
type: integer
whitelist_pubs:
type: array
items:
type: string
blacklist_pubs:
type: array
items:
type: string
rt:
type: string
security:
- API Key Param: []
requestBody:
content:
application/json:
schema:
type: object
properties:
feed_config:
type: object
properties:
url:
type: string
username:
type: string
password:
type: string
api_config:
type: object
data_mapping:
type: object
sample_file_name:
type: string
sample_file_path:
type: string
frequency:
type: integer
whitelist_pubs:
type: array
items:
type: string
blacklist_pubs:
type: array
items:
type: string
status:
type: string
enum:
- active
- inactive
/v2/productFeeds:
get:
summary: Get Product Feeds
operationId: get-v2-product-feeds
tags:
- Product Feed
description: Use this endpoint to fetch Product Feeds
security:
- API Key Param: []
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
properties:
product_feeds:
type: array
items:
type: object
properties:
org_id:
type: string
user_id:
type: string
adv_id:
type: string
src:
type: string
enum:
- feed
- api
feed_config:
type: object
properties:
url:
type: string
username:
type: string
password:
type: string
api_config:
type: object
sample_file_name:
type: string
sample_file_path:
type: string
data_mapping:
type: object
status:
type: string
enum:
- active
- inactive
frequency:
type: integer
whitelist_pubs:
type: array
items:
type: string
blacklist_pubs:
type: array
items:
type: string
'400':
description: Bad Request
content:
application/json:
schema:
type: object
properties:
errors:
$ref: ./models/error.v1.yaml
/v2/signupfields/publisher:
get:
summary: Publisher Signup Questions
Expand Down