The Fluid Attacks API is built as a GraphQL service where you can consume data using a common query language.
GraphQL provides a single endpoint (https://app.fluidattacks.com/api
)
for making requests using queries (to fetch data) and mutations (to create, update, or delete data). If you are already familiar with GraphQL, feel free to jump ahead to Learn the basics of the Fluid Attacks API.
Here are some recommendations for developers unfamiliar with GraphQL:
This example is to retrieve your role in the Fluid Attacks platform. Before proceeding, you should login at app.fluidattacks.com.
query {
me {
role
}
}
This example enhances the previous query to retrieve information about your groups. Since groups are a list of projects (which are GraphQL entities), you must specify the desired information from them (in this case, their names).
query {
me {
organizations {
groups {
name
}
}
}
}