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

Developer API #94

Closed
mefellows opened this issue Feb 23, 2023 · 5 comments
Closed

Developer API #94

mefellows opened this issue Feb 23, 2023 · 5 comments
Labels
Q4 Initiative is planned for a Q4 launch

Comments

@mefellows
Copy link
Contributor

mefellows commented Feb 23, 2023

PactFlow has a feature complete API that our customers can build custom solutions upon - this feature documents and exposes that API to the world 🌏.

The APIs will span the following areas of the system:

  • Admin
    • Permissions
    • Roles
    • System Accounts (incl. token management)
    • Teams
    • Users
  • Application (Pacticipant) Management
  • Audit
  • Can I Deploy
  • Consumer Contracts
  • Environments
  • Integrations
  • Matrix
  • Metrics
  • Network Information
  • Preferences
    • Current User
    • System
    • Teams
  • Provider Contracts
  • Released Versions
  • Secret Management
  • User Token Management
  • Webhook Management
  • Verification Results
@mefellows mefellows added the Q2 Initiative is planned for a Q2 launch label Mar 14, 2023
@mefellows mefellows removed the Q2 Initiative is planned for a Q2 launch label Jul 4, 2023
@mefellows mefellows added the Q3 Initiative is planned for a Q3 launch label Aug 8, 2023
@mefellows mefellows changed the title Public API Developer API Oct 30, 2023
@mefellows mefellows added Q4 Initiative is planned for a Q4 launch Q1 Initiative is planned for a Q1 launch and removed Q3 Initiative is planned for a Q3 launch Q4 Initiative is planned for a Q4 launch labels Nov 14, 2023
@mefellows mefellows added Q4 Initiative is planned for a Q4 launch and removed Q1 Initiative is planned for a Q1 launch labels Nov 21, 2023
@YOU54F
Copy link
Member

YOU54F commented Feb 21, 2024

You can now view our PactFlow Developer API via the SmartBear Portal

https://smartbear.portal.swaggerhub.com/pactflow/default/getting-started

The API documentation is updated with our SaaS release.

If you would like to see anything additional exposed via the API, please feel free to let us know via the issue, or you are welcome to raise a new one

@JamesFraser-FD
Copy link

Adding an endpoint to view the OpenAPI Spec for a provider service would be really valuable for us - ideally it would be able to take a commit, branch/tag or environment and return the associated specification.
Currently Pactflow is the only place where all of our OpenAPI Specs are stored and versioned, so it would be immensely useful to have an endpoint where we can query them.
Thanks!

@mefellows
Copy link
Contributor Author

Every time I think I close an issue, I find out that moving it to "shipped" is not the same as closing!

Screenshot 2024-02-22 at 9 08 31 pm

I'll close this issue, and open up a separate tracking one for you @JamesFraser-FD .

@mefellows
Copy link
Contributor Author

@JamesFraser-FD to answer your question for now. You can get the version of the contract you need by following these steps:

  1. Hit the root resource /
  2. Follow the link to list the integrations (pb:integration which should give you /integrations)
  3. Find the integration you need (e.g. /dashboard/provider/:provider/consumer/:consumer)
  4. Find the provider version in that resource, and get the cross-contract verification results:
    /contracts/bi-directional/provider/:provider/version/:provider-version/consumer/:consumer/version/:consumer-version/cross-contract-verification-results

^^ This URL won't work, it needs to be prepended with /internal put in front of it.

Any endpoint prefixed with /internal has no long term stability guarantees, but might get you going for now.

@JamesFraser-FD
Copy link

Thanks Matt, appreciate the help!
Yousaf also pointed me to the internal API so we've managed to string a few calls together to get working, just registering my interest in a maintained endpoint 🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Q4 Initiative is planned for a Q4 launch
Projects
Status: Shipped 🚀
Development

No branches or pull requests

3 participants