Tools or Specs that can help define API workflows #10
Replies: 3 comments 1 reply
-
The schemathesis test frameworks already use openAPI links to model dependencies between calls. We talked last time about this possibility. This tool has already a kind of workflow engine based on this rule based state engine |
Beta Was this translation helpful? Give feedback.
-
Rough example of In essence, the proposal introduces the concept of Procedures (name not important for now) which define a set of actions over one or more APIs to achieve an objective. A procedure defines:
Each step describes:
The following described two procedures (a.k.a workflows), the first for logging in and retrieving user details and the second for purchasing a pet
Below is the Petstore OpenAPI specification with the additional extension at the end.
|
Beta Was this translation helpful? Give feedback.
-
Here is an attempt at representing a sequence of calls that make up an OpenID Connect flow, specifically an Authorization code flow with a Pushed Authorization Request. I have tried to make it a accurate as possible but there may be a few errors here an there. This is not to be used as the basis for OIDC documentation! Also there are probably things that are in the existing OAI spec that could help with this example but I am not yet expert in OAI. I have taken a lot of inspiration from the contribution above but a number of aspects either didn't quite work or just didn't feel right in the context of the example presented. Some of these issues are addressed with changes and others I have not come up with a reasonable idea for yet. Also as per comment above names of elements are not terribly important for now. Things adjusted between the petstore example and this:
Things I am concerned about but have not addressed
AuthenticationAPI-v3.0.0-procedure-PAR&OIDCalpha2.yaml.txt apparently not allowed to upload |
Beta Was this translation helpful? Give feedback.
-
We may not want to reinvent the wheel, so let's share some thoughts on specifications or existing mechanisms that warrant some discussion and considerations as part of this SIG.
Examples:
Also what learnings can we take from the likes of
etc.
Beta Was this translation helpful? Give feedback.
All reactions