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

Add Entitlement API Proxy #102

Closed
wants to merge 1 commit into from
Closed

Add Entitlement API Proxy #102

wants to merge 1 commit into from

Conversation

mr-vara
Copy link
Contributor

@mr-vara mr-vara commented Sep 24, 2024

Proposed changes

This PR adds proxy API call to the Hiive API sites/v1/entitlements

The Rest API:
GET /newfold-data/v1/entitlements

Response:

{
    "solution": null,
    "entitlements": [],
    "categories": [],
    "solutions": [
        {
            "name": "Commerce",
            "sku": "SOLUTIONS_COMMERCE",
            "description": "Incidunt deleniti veritatis consectetur odio beatae dolores voluptatem. Temporibus eaque sunt aut consequuntur. Aut magni voluptatem minus temporibus distinctio et voluptatem.",
            "price": "22.92",
            "fullPrice": "35.08",
            "url": "http://www.schumm.info/quaerat-asperiores-velit-consequuntur-iure-sequi-aut-deleniti",
            "ctbId": null,
            "features": null
        },
        {
            "name": "Agency",
            "sku": "SOLUTIONS_SERVICE",
            "description": "Qui saepe et sunt dignissimos autem nam. Quo occaecati ea iste ducimus. Hic mollitia sequi rerum eum error. Quo at sed suscipit tempore qui sequi.",
            "price": "24.09",
            "fullPrice": "33.30",
            "url": "http://boyer.com/odit-nobis-ut-est",
            "ctbId": null,
            "features": null
        },
        {
            "name": "Creator",
            "sku": "SOLUTIONS_CONTENT",
            "description": "Consequatur accusantium incidunt quod aut earum vero. Velit rerum sit quibusdam eligendi esse placeat. Molestias aperiam doloremque quo id accusantium ut et sapiente. Ut neque fugiat dolores.",
            "price": "27.29",
            "fullPrice": "39.76",
            "url": "https://www.hegmann.com/maxime-odit-blanditiis-cumque-qui",
            "ctbId": null,
            "features": null
        }
    ]
}

Type of Change

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation Update (if none of the other choices apply)

Video

Checklist

  • I have read the CONTRIBUTING doc
  • I have viewed my change in a web-browser
  • Linting and tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

Further comments

@girish-lokapure
Copy link

have moved it to wp-module-solutions module.
newfold-labs/wp-module-solutions#2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants