Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Knative Apis API

The Apis API from Knative — 2 operation(s) for apis.

Knative Apis API is one of 13 APIs that Knative publishes on the APIs.io network, described by a machine-readable OpenAPI specification and an AsyncAPI event-driven specification.

This API exposes 2 JSON Schema definitions.

Tagged areas include Apis. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, an API reference, a GitHub repository, an AsyncAPI specification, and 2 JSON Schemas.

This API exposes 5 operations across 2 paths, and defines 8 schemas. It is described by OpenAPI 3.1.0, at version 1.0.

Requests are made against a single base URL, https://kubernetes.default.svc.

5 operations 2 paths 8 schemas 1 DELETE2 GET1 POST1 PUT

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.1.0
API Version
1.0
Server
https://kubernetes.default.svc
Authentication
HTTP Bearer
Resource Areas
1

Authentication & Security 1

Knative Apis API declares 1 security scheme for authenticating requests. It accepts HTTP bearer tokens (JWT) (bearerAuth). By default, every request must be authenticated.

  • bearerAuth — Kubernetes service account token or user bearer token. RBAC policies control access to Knative Eventing resources.

Paths & Operations 5

Across 2 paths, the API surfaces 5 operations — 1 DELETE, 2 GET, 1 POST, 1 PUT. Each is listed below with its method, path, parameters, and response codes.

Apis 5
GET
/apis/serving.knative.dev/v1/namespaces/{namespace}/services
List Knative Services
listServices 4 params → 200401
POST
/apis/serving.knative.dev/v1/namespaces/{namespace}/services
Create a Knative Service
createService 1 param body → 201400401409
GET
/apis/serving.knative.dev/v1/namespaces/{namespace}/services/{name}
Get a Knative Service
getService 2 params → 200401404
PUT
/apis/serving.knative.dev/v1/namespaces/{namespace}/services/{name}
Replace a Knative Service
replaceService 2 params body → 200400401404
DELETE
/apis/serving.knative.dev/v1/namespaces/{namespace}/services/{name}
Delete a Knative Service
deleteService 2 params → 200401404

Schemas 8

The contract defines 8 schemas that model the data the API accepts and returns. The most detailed are ObjectMeta (10 properties), Container (8 properties), TrafficTarget (6 properties), Status (6 properties). Each schema is shown below with its type and property counts.

TrafficTarget
object
A traffic target that routes a percentage of traffic to a specific Revision or the latest ready Revision.
6 properties
RevisionTemplate
object
Template for creating Knative Revisions. The template includes container spec, scaling configuration, and other pod-level settings. Each unique combination of…
2 properties
Service
object
A Knative Service that manages the full lifecycle of a serverless workload including its Route, Configuration, and Revisions. Service is the primary API for de…
5 properties 4 required
ObjectMeta
object
Standard Kubernetes object metadata.
10 properties 1 required
Condition
object
A status condition on a Knative resource.
5 properties 2 required
ServiceList
object
A list of Knative Service resources.
4 properties 3 required
Container
object
A container definition for a Knative Revision.
8 properties 1 required
Status
object
Kubernetes API Status response for errors and operation results.
6 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

knative-apis-api-openapi.yml Raw ↑

Other APIs Knative publishes across the network.

Knative Functions
Knative CLI (kn)
Knative Brokers API
Knative Channels API
Knative Configurations API
Knative DomainMappings API
Knative EventSources API
Knative EventTypes API
Knative Revisions API
Knative Routes API
Knative Subscriptions API
Knative Triggers API