Skip to content

Microcks API v1.7 API

by microcks.local

OAuthHTTPSDevelopment
Open documentation ↗

Overview

API offered by Microcks, the Kuebrnetes native tools for API and microservices mocking and testing (microcks.io)

Microcks API v1.7 is a development API from microcks.local. Requests are authenticated with OAuth. It is served over HTTPS. Its OpenAPI description documents 44 endpoints.

At a glance

Authentication
OAuth
HTTPS
Yes
CORS
Unknown
Category
Development
Base URL
http://microcks.local
Version
1.7.0
Endpoints
44
Spec updated
2023-04-05

Make a first request

Replace the placeholders; the documentation says exactly where credentials go.

cURL
curl -X GET "http://microcks.local/export" \
  -H "Accept: application/json" \
  -H "Authorization: Bearer YOUR_TOKEN"
JavaScript
const response = await fetch("http://microcks.local/export", {
  method: "GET",
  headers: {
    "Accept": "application/json",
    "Authorization": "Bearer YOUR_TOKEN",
  },
});
const data = await response.json();
console.log(data);
Python
import requests

response = requests.request(
    "GET",
    "http://microcks.local/export",
    headers={
    "Accept": "application/json",
    "Authorization": "Bearer YOUR_TOKEN",
    },
    timeout=30,
)
print(response.json())

Endpoints

MethodPathWhat it does
POST/artifact/uploadUpload an artifact
GET/exportExport a snapshot
GET/features/configGet features configuration
POST/importImport a snapshot
GET/jobsGet ImportJobs
POST/jobsCreate ImportJob
GET/jobs/countGet the ImportJobs counter
GET/jobs/{id}Get ImportJob
POST/jobs/{id}Update ImportJob
DELETE/jobs/{id}Delete ImportJob
PUT/jobs/{id}/activateActivate an ImportJob
PUT/jobs/{id}/startStart an ImportJob
PUT/jobs/{id}/stopStop an ImportJob
GET/keycloak/configGet authentification configuration
GET/metrics/conformance/aggregateGet aggregation of conformance metrics
GET/metrics/conformance/service/{serviceId}Get conformance metrics for a Service
GET/metrics/invocations/globalGet aggregated invocation statistics for a day
GET/metrics/invocations/global/latestGet aggregated invocations statistics for latest days
GET/metrics/invocations/topGet top invocation statistics for a day
GET/metrics/invocations/{serviceName}/{serviceVersion}Get invocation statistics for Service
GET/metrics/tests/latestGet latest tests results
GET/resources/service/{serviceId}Get Resources by Service
GET/resources/{name}Get Resource
GET/secretsGet Secrets
POST/secretsCreate a new Secret
GET/secrets/countGet the Secrets counter
GET/secrets/{id}Get Secret
PUT/secrets/{id}Update Secret
DELETE/secrets/{id}Delete Secret
GET/servicesGet Services and APIs
GET/services/countGet the Services counter
GET/services/labelsGet the already used labels for Services
GET/services/searchSearch for Services and APIs
GET/services/{id}Get Service
DELETE/services/{id}Delete Service
PUT/services/{id}/metadataUpdate Service Metadata
PUT/services/{id}/operationOverride Service Operation
POST/testsCreate a new Test
GET/tests/service/{serviceId}Get TestResults by Service
GET/tests/service/{serviceId}/countGet the TestResults for Service counter
GET/tests/{id}Get TestResult
GET/tests/{id}/events/{testCaseId}Get events for TestCase
GET/tests/{id}/messages/{testCaseId}Get messages for TestCase
POST/tests/{id}/testCaseResultReport and create a new TestCaseResult

Questions

Does the Microcks API v1.7 API need an API key?

Yes. The Microcks API v1.7 API uses OAuth authentication; the documentation explains how to get credentials.

Does the Microcks API v1.7 API support HTTPS?

Yes, the Microcks API v1.7 API is served over HTTPS.

How many endpoints does the Microcks API v1.7 API have?

Its OpenAPI description lists 44 endpoints in version 1.7.0. All of them are shown on this page.

What are alternatives to the Microcks API v1.7 API?

Other Development APIs include Cloudflare, Azure DevOps, IPify, App Store Connect API, StackExchange.

Compare alternatives →

Listed from APIs.guru (CC0).