openapi: 3.2.0 info: title: Online Store Blog Posts API version: '1.0' description: Online Store API servers: - url: https://www.yoursite.com/api/v1 description: '' security: - X-AC-Auth-Token: [] tags: - name: Blog Posts paths: /blog_posts: get: summary: Get Blog Posts tags: - Blog Posts responses: '200': description: OK content: application/json: schema: type: object properties: total_count: type: integer blog_posts: type: array items: $ref: '#/components/schemas/blog_posts' operationId: get-blog_posts description: Gets an array of blog posts. post: summary: Create a Blog Post operationId: post-blog_posts responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/blog_posts' description: 'Creates a blog posts. ' requestBody: content: application/json: schema: description: '' type: object x-examples: example-1: id: 15 blog_id: 1 title: Hello There keywords: '' description: '' content: My Content published_at: '2019-11-06T11:27:00-06:00' updated_at: '2019-11-06T11:27:46.87-06:00' created_at: '2019-11-06T11:27:46.87-06:00' teaser_title: '' teaser_description: '' post_image_url: '' teaser_image_url: '' author_profile_id: 2 are_comments_enabled: true is_featured: false is_stickied: false are_comments_locked: false view_count: 140 store_id: 1 head_tags: '' url_rewrite: /blog/Hello-There page_content_type: BlogPost properties: blog_id: type: integer title: type: string keywords: type: string description: type: string content: type: string published_at: type: string teaser_title: type: string teaser_description: type: string post_image_url: type: string teaser_image_url: type: string author_profile_id: type: integer are_comments_enabled: type: boolean is_featured: type: boolean is_stickied: type: boolean are_comments_locked: type: boolean view_count: type: integer store_id: type: integer head_tags: type: string url_rewrite: type: string page_title: type: string page_content_type: type: string required: - blog_id - store_id examples: Example: value: blog_id: 1 title: Hello There keywords: '' description: '' content: '' published_at: '2023-05-17T12:08:00-05:00' teaser_title: '' teaser_description: '' post_image_url: '' teaser_image_url: '' author_profile_id: 0 are_comments_enabled: false is_featured: false is_stickied: false are_comments_locked: false view_count: 0 store_id: 4 head_tags: '' url_rewrite: /blog/Hello-There page_title: '' page_content_type: BlogPost tags: - Blog Posts /blog_posts/{id}: parameters: - schema: type: integer name: id in: path required: true description: The ID of the `blog_post` put: summary: Update a Blog Post operationId: put-blog_post-id responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/blog_posts' description: 'Updates a Blog Post. ' requestBody: content: application/json: schema: description: '' type: object x-examples: example-1: id: 43 blog_id: 1 title: Hello There keywords: '' description: '' content: '' published_at: null updated_at: '2021-10-06T12:27:36.8249258-05:00' created_at: '2021-10-06T12:27:36.8249258-05:00' teaser_title: '' teaser_description: '' post_image_url: '' teaser_image_url: '' author_profile_id: 0 are_comments_enabled: false is_featured: false is_stickied: false are_comments_locked: false view_count: 0 store_id: 4 head_tags: '' url_rewrite: /blog/Hello-There3 page_content_type: BlogPost properties: id: type: integer readOnly: true blog_id: type: integer title: type: string keywords: type: string description: type: string content: type: string published_at: type: string updated_at: type: string created_at: type: string teaser_title: type: string teaser_description: type: string post_image_url: type: string teaser_image_url: type: string author_profile_id: type: integer are_comments_enabled: type: boolean is_featured: type: boolean is_stickied: type: boolean are_comments_locked: type: boolean view_count: type: integer store_id: type: integer head_tags: type: string url_rewrite: type: string page_title: type: string page_content_type: type: string examples: Example: value: id: 43 blog_id: 1 title: Hello There keywords: '' description: '' content: '' published_at: null updated_at: '2021-10-06T12:27:36.8249258-05:00' created_at: '2021-10-06T12:27:36.8249258-05:00' teaser_title: '' teaser_description: '' post_image_url: '' teaser_image_url: '' author_profile_id: 0 are_comments_enabled: false is_featured: false is_stickied: false are_comments_locked: false view_count: 0 store_id: 4 head_tags: '' url_rewrite: /blog/Hello-There page_title: '' page_content_type: BlogPost application/xml: schema: description: '' type: object x-examples: example-1: id: 43 blog_id: 1 title: Hello There keywords: '' description: '' content: '' published_at: null updated_at: '2021-10-06T12:27:36.8249258-05:00' created_at: '2021-10-06T12:27:36.8249258-05:00' teaser_title: '' teaser_description: '' post_image_url: '' teaser_image_url: '' author_profile_id: 0 are_comments_enabled: false is_featured: false is_stickied: false are_comments_locked: false view_count: 0 store_id: 4 head_tags: '' url_rewrite: /blog/Hello-There3 page_content_type: BlogPost properties: id: type: integer readOnly: true blog_id: type: integer title: type: string keywords: type: string description: type: string content: type: string published_at: {} updated_at: type: string created_at: type: string teaser_title: type: string teaser_description: type: string post_image_url: type: string teaser_image_url: type: string author_profile_id: type: integer are_comments_enabled: type: boolean is_featured: type: boolean is_stickied: type: boolean are_comments_locked: type: boolean view_count: type: integer store_id: type: integer head_tags: type: string url_rewrite: type: string page_content_type: type: string required: - id description: '' tags: - Blog Posts delete: summary: Delete a Blog Post operationId: delete-blog_post-id responses: '200': description: OK '404': $ref: '#/components/responses/404' description: Deletes a blog post. tags: - Blog Posts components: responses: '404': description: Resource Not Found content: application/json: schema: description: Not Found type: object x-examples: example-1: status_code: 404 message: Not Found details: No resource found properties: status_code: type: number message: type: string details: type: string examples: {} headers: {} schemas: blog_posts: type: object properties: id: type: integer blog_id: type: integer title: type: string keywords: type: string description: type: string content: type: string published_at: type: string updated_at: type: string created_at: type: string teaser_title: type: string teaser_description: type: string post_image_url: type: string teaser_image_url: type: string author_profile_id: type: integer are_comments_enabled: type: boolean is_featured: type: boolean is_stickied: type: boolean are_comments_locked: type: boolean view_count: type: integer store_id: type: integer head_tags: type: string url_rewrite: type: string page_title: type: string page_content_type: type: string securitySchemes: X-AC-Auth-Token: name: X-AC-Auth-Token type: apiKey in: header