Skip to content

Commit

Permalink
Adding version to public api endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
yngrdyn committed May 24, 2023
1 parent ee20beb commit ea99b9b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ API_ENDPOINT=$2
updateStepProgress() {
echo " GET $API_ENDPOINT/step/$1?status=$2"
curl --request GET \
--url "$API_ENDPOINT/step/$1?status=$2" \
--url "$API_ENDPOINT/step/$1?status=$2 2023-05-24" \
--header "Authorization: ApiKey $API_KEY_ENCODED" \
--header "Content-Type: application/json" \
--header "kbn-xsrf: true"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export function InstallElasticAgent() {
(callApi) => {
if (CurrentStep === InstallElasticAgent && installShipperSetup) {
return callApi(
'GET /api/observability_onboarding/elastic_agent/config',
'GET /api/observability_onboarding/elastic_agent/config 2023-05-24',
{
headers: {
authorization: `ApiKey ${installShipperSetup.apiKeyEncoded}`,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ const createApiKeyRoute = createObservabilityOnboardingServerRoute({
});

const stepProgressUpdateRoute = createObservabilityOnboardingServerRoute({
endpoint: 'GET /api/observability_onboarding/custom_logs/step/{name}',
endpoint:
'GET /api/observability_onboarding/custom_logs/step/{name} 2023-05-24',
options: { tags: [] },
params: t.type({
path: t.type({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { getESHosts } from '../custom_logs/get_es_hosts';
import { generateYml } from './generate_yml';

const generateConfig = createObservabilityOnboardingServerRoute({
endpoint: 'GET /api/observability_onboarding/elastic_agent/config',
endpoint: 'GET /api/observability_onboarding/elastic_agent/config 2023-05-24',
options: { tags: [] },
async handler(resources): Promise<string> {
const { core, plugins, request } = resources;
Expand Down

0 comments on commit ea99b9b

Please sign in to comment.