OpenAPI schema

GET {{baseUrl}}/schema

RESPONSES

status: OK

"openapi: '3.0.0'\ninfo:\n  version: '1.2.9'\n  title: 'A(i)ppealing Companies'\n  description: |-\n\n    API to create appealing images of company products made of chocolate, gold, plush or lego - generated by AI\n\n    ## Motivation\n\n    There are some amazing, visually appealing company products made of chocolate or lego\n\n    \u003cimg src=\"https://user-images.githubusercontent.com/1872314/208320977-06e18d27-4938-4be3-ab9d-8b2ffc2c85e1.png\" alt=\"Lexus%20made%20of%20chocolate\" width=\"197\"\u003e\n\n    \u003cimg src=\"https://user-images.githubusercontent.com/1872314/208321054-130afbaa-f7db-453e-8db1-114ebce97f4e.png\" alt=\"Flowers%20made%20of%20Lego\" width=\"239\"\u003e\n\n    Inspired by the image and text generation capabilities of [OpenAI](https://www.postman.com/devrel/workspace/openai/documentation/13183464-90abb798-cb85-43cb-ba3a-ae7941e968da), this API generates images of the products, companies are most known for, and turns them into gold, chocolate, lego or any other material.\n\n    #### Volkswagen / Porsche\n\n    \u003cimg src=\"https://user-images.githubusercontent.com/1872314/208321137-0ab3cdb9-a2d2-47ad-9f9e-172188a848d5.png\" alt=\"Porsche%20911%20made%20of%20Lego\" width=\"200\"\u003e\n\n    \u003cimg src=\"https://user-images.githubusercontent.com/1872314/208321209-9a82e2b5-47aa-4d9d-a267-1659e2964b0b.png\" alt=\"VW%20caravan%20made%20of%20Lego\" width=\"200\"\u003e\n\n    #### Allianz\n\n    \u003cimg src=\"https://user-images.githubusercontent.com/1872314/208321233-117ba82b-1c3b-4bab-860a-3fc94b9df407.png\" alt=\"Allianz%20Arena%20made%20of%20chocolate\" width=\"200\"\u003e\n\n    \u003cimg src=\"https://user-images.githubusercontent.com/1872314/208321469-9a3d2c0a-ced0-4568-b61e-45f5e46f4524.png\" alt=\"Allianz%20Arena%20made%20of%20Lego\" width=\"200\"\u003e\n\n    ### Mercedes-Benz\n\n    \u003cimg src=\"https://user-images.githubusercontent.com/1872314/208321375-19d9198a-858d-4fc9-b95c-6a31fe58096a.png\" alt=\"C-class%20made%20of%20gold\" width=\"200\"\u003e\n\n    \u003cimg src=\"https://user-images.githubusercontent.com/1872314/208321413-806d2afc-d3fb-4660-9299-7ca86be90e2f.png\" alt=\"C-class%20made%20of%20gold%20(second%20run)\" width=\"200\"\u003e\n\nservers:\n  - url: https://aippealing-companies.herokuapp.com\n    description: Production Server\n  - url: https://aippealing-companies-staging.herokuapp.com\n    description: Staging Server\n  - url: http://localhost:3000\n    description: Local test bed\npaths:\n  # get individual company\n  /companies/{companyId}:\n    get:\n      summary: Get company\n      description: Get company and its a(i)ppealing associations\n      operationId: getCompany\n      tags:\n        - companies\n      parameters:\n        - name: companyId\n          in: path\n          description: Company ID\n          required: true\n          schema:\n            type: string\n          example: daimler\n        - name: material\n          in: query\n          description: Material to use for the product\n          required: false\n          schema:\n            type: string\n            enum:\n              - chocolate\n              - lego\n              - gold\n              - plush\n              - platin\n            default: lego\n          example: plush\n        - name: mode\n          in: query\n          description: Mode to use for the product, exact and fuzzy operate on the curated list of products, ai uses AI to generate all aspects of the product\n          required: false\n          schema:\n            type: string\n            enum:\n              - exact\n              - ai\n              - fuzzy\n            default: fuzzy\n          example: fuzzy\n          \n      responses:\n        '200':\n          description: OK\n          content:\n            application/json:\n                schema:\n                    $ref: '#/components/schemas/Company'\n                example:\n                  id: yousendmeflowers\n                  name: 'Fleurop / yousendmeflowers / main'\n                  city: '{{$randomCity}}'\n                  motto: '{{$randomCatchPhrase}}'\n                  description: 'Fleurop is a flower delivery service with a network of florists in 140 countries. YouSendMeFlowers is a similar service in the US. Main is a flower delivery service in the Netherlands.'\n                  associations:\n                    - name: 'Flowers'\n                      type: 'product'\n                      material: 'lego'\n                      url: 'https://user-images.githubusercontent.com/1872314/208254526-fe40f349-5456-4549-b72d-e49fe341f8e7.png'\n        '404':\n          description: Not Found\n          content:\n            application/json:\n              schema:\n                $ref: '#/components/schemas/Error'\n        '500':\n          description: Internal Server Error\n          content:\n            application/json:\n              schema:\n                $ref: '#/components/schemas/Error'\n        '401':\n          description: Unauthorized\n          content:\n            application/json:\n              schema:\n                $ref: '#/components/schemas/Error'\n  /companies:\n    get:\n      summary: List all companies\n      description: List all companies and their a(i)ppealing associations\n      operationId: listCompanies\n      tags:\n        - companies\n      responses:\n        '200':\n          description: OK\n          content:\n            application/json:\n              schema:\n                $ref: '#/components/schemas/Companies'\n              example:\n                - id: yousendmeflowers\n                  name: 'Fleurop / yousendmeflowers / main'\n                  city: '{{$randomCity}}'\n                  motto: '{{$randomCatchPhrase}}'\n                  description: 'Fleurop is a flower delivery service with a network of florists in 140 countries. YouSendMeFlowers is a similar service in the US. Main is a flower delivery service in the Netherlands.'\n                  associations:\n                    - name: 'Flowers'\n                      type: 'product'\n                      material: 'lego'\n                      url: 'https://user-images.githubusercontent.com/1872314/208254526-fe40f349-5456-4549-b72d-e49fe341f8e7.png'\n                - id: \"volkswagen\"\n                  name: 'Volkswagen'\n                  description: 'Volkswagen AG is a German multinational automotive manufacturing company headquartered in Wolfsburg, Lower Saxony, Germany.'\n                  city: 'Wolfsburg'\n                  motto: 'Das Auto'\n                  associations:\n                    - name: 'VW Caravan'\n                      type: 'product'\n                      material: 'lego'\n                      url: 'https://user-images.githubusercontent.com/1872314/208270572-17d0d771-17d5-4e95-ab1c-6ebc86432bb9.png'\n                    - name: 'Porsche 911'\n                      type: 'product'\n                      material: 'lego'\n                      url: 'https://user-images.githubusercontent.com/1872314/208270526-6b8dd152-674e-4496-835f-671882e70d1b.png'\n                - id: 'lexus'\n                  name: 'Lexus'\n                  city: 'Toyota'\n                  motto: 'The Pursuit of Perfection'\n                  description: \"Lexus is the luxury vehicle division of the Japanese automaker Toyota. The Lexus brand is marketed in more than 70 countries and territories worldwide and has become Japan's largest-selling make of premium cars.\"\n                  associations:\n                    - name: 'Lexus UX'\n                      type: 'product'\n                      material: 'chocolate'\n                      url: 'https://user-images.githubusercontent.com/1872314/208254307-d1971475-31aa-4c10-ac8d-7b907579438d.png'\n                - id: 'allianz'\n                  name: 'Allianz'\n                  city: 'Munich'\n                  motto: 'Together. Stronger.'\n                  description: 'Allianz SE is a German multinational financial services company headquartered in Munich, Bavaria. It is the largest insurance company in the world by revenue.'\n                  associations:\n                    - name: 'Allianz Arena'\n                      type: 'product'\n                      material: 'chocolate'\n                      url: \"https://user-images.githubusercontent.com/1872314/208270631-87b3c79c-c6e8-47dd-9cf2-52451989b83b.png\"\n                - id: \"becks\"\n                  name: \"Becks\"\n                  city: \"Bremen\"\n                  motto: \"Make it your Beck's\"\n                  description: \"German brewing company founded in 1873\"\n                  associations:\n                    - name: \"beer\"\n                      type: \"product\"\n                      url: \"https://user-images.githubusercontent.com/1872314/209992238-fca4ddbe-3f11-4d92-a4e9-de568d9538b3.png\"\n                      material: \"gold\"\n                - id: \"daimler\"\n                  name: \"Daimler\"\n                  city: \"Stuttgart, Germany\"\n                  motto: \"The Best or Nothing\"\n                  description: \"a German multinational automotive corporation\"\n                  associations:\n                    - name: \"Mercedes e-class\"\n                      type: \"product\"\n                      url: \"https://user-images.githubusercontent.com/1872314/210013865-1a047e2b-f44a-4a1b-a0cc-dbbdce7ed724.png\"\n                      material: \"plush\"\n                \n        '400':\n          description: Bad Request\n          content:\n            application/json:\n              schema:\n                $ref: '#/components/schemas/Error'\n        '401':\n          description: Unauthorized\n          content:\n            application/json:\n              schema:\n                $ref: '#/components/schemas/Error'\n        '500':\n          description: Internal Server Error\n          content:\n            application/json:\n              schema:\n                $ref: '#/components/schemas/Error'\ncomponents:\n  schemas:\n    Companies:\n      type: array   \n      items:\n        $ref: '#/components/schemas/Company'\n    Company:\n      type: object\n      properties:\n        id:\n          type: string\n          description: The unique identifier of the company\n          example: yousendmeflowers\n        name:\n          type: string\n          description: The name of the company\n          example: \"YouSendMeFlowers / Fleurop\"\n        description:\n          type: string\n          description: The description of the company\n          example: 'Fleurop is a flower delivery service with a network of florists in 140 countries. YouSendMeFlowers is a similar service in the US.'\n        city:\n          type: string\n          description: City associated with company\n          example: 'Amsterdam'\n        motto:\n          type: string\n          description: Motto associated with company\n          example: 'Flowers across the globe'\n        associations:\n          type: array\n          items:\n            $ref: '#/components/schemas/Association'\n      required:\n        - name\n      example:\n        name: 'Lexus'\n        description: \"Lexus is the luxury vehicle division of the Japanese automaker Toyota. The Lexus brand is marketed in more than 70 countries and territories worldwide and has become Japan's largest-selling make of premium cars.\"\n        city: 'Toyota City'\n        motto: 'The Pursuit of Perfection'\n        associations:\n        - name: 'Lexus UX'\n          material: 'lego'\n          type: 'product'\n          url: 'https://user-images.githubusercontent.com/1872314/208254307-d1971475-31aa-4c10-ac8d-7b907579438d.png'    \n   \n    Association:\n      type: object\n      required:\n        - name\n      properties:\n        name:\n          type: string\n          description: The name of the association\n          example: \"Flowers\"\n        type:\n          type: string\n          description: The type of the association\n          enum:\n            - service\n            - product\n          example: product\n        description:\n          type: string\n          description: The description of the association\n          example: \"Flowers made of lego\"\n        material:\n          type: string\n          description: The material of the association\n          example: lego\n        url:\n          type: string\n          format: uri\n          description: The a(i)ppealing image generated with the association \n          example: 'https://user-images.githubusercontent.com/1872314/208254526-fe40f349-5456-4549-b72d-e49fe341f8e7.png'\n      example:\n        name: 'Lexus UX'\n        material: 'lego'\n        type: 'product'\n        url: 'https://user-images.githubusercontent.com/1872314/208254307-d1971475-31aa-4c10-ac8d-7b907579438d.png'\n    Error:\n      type: object\n      required:\n        - message\n      properties:\n        message:\n          description: A human readable error message\n          type: string\n          example: 'Company not found'\n  securitySchemes:\n    ApiKey:\n      type: apiKey\n      in: header\n      name: X-Api-Key\n      description: API key for this API is an OpenAI compatible key. You can get your key at https://beta.openai.com/\nsecurity:\n  - ApiKey: []\n"