Switches to latest, updates API
This commit is contained in:
parent
e0755a1101
commit
3c7892e4be
|
@ -10,7 +10,7 @@ namespace CodexPlugin
|
||||||
public class ApiChecker
|
public class ApiChecker
|
||||||
{
|
{
|
||||||
// <INSERT-OPENAPI-YAML-HASH>
|
// <INSERT-OPENAPI-YAML-HASH>
|
||||||
private const string OpenApiYamlHash = "09-53-C3-A6-31-A5-0C-8B-53-1C-3D-C7-2B-1E-85-C7-17-60-54-43-01-C4-49-4E-D9-68-35-7D-F7-41-13-B5";
|
private const string OpenApiYamlHash = "34-B5-DA-26-40-76-B8-D8-8E-7D-9C-17-85-C6-B0-63-55-8D-C6-01-0B-96-BB-7C-BD-53-E5-32-07-ED-29-92";
|
||||||
private const string OpenApiFilePath = "/codex/openapi.yaml";
|
private const string OpenApiFilePath = "/codex/openapi.yaml";
|
||||||
private const string DisableEnvironmentVariable = "CODEXPLUGIN_DISABLE_APICHECK";
|
private const string DisableEnvironmentVariable = "CODEXPLUGIN_DISABLE_APICHECK";
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@ namespace CodexPlugin
|
||||||
{
|
{
|
||||||
public class CodexContainerRecipe : ContainerRecipeFactory
|
public class CodexContainerRecipe : ContainerRecipeFactory
|
||||||
{
|
{
|
||||||
private const string DefaultDockerImage = "codexstorage/nim-codex:0.1.8-dist-tests";
|
private const string DefaultDockerImage = "codexstorage/nim-codex:latest-dist-tests";
|
||||||
public const string ApiPortTag = "codex_api_port";
|
public const string ApiPortTag = "codex_api_port";
|
||||||
public const string ListenPortTag = "codex_listen_port";
|
public const string ListenPortTag = "codex_listen_port";
|
||||||
public const string MetricsPortTag = "codex_metrics_port";
|
public const string MetricsPortTag = "codex_metrics_port";
|
||||||
|
|
|
@ -182,8 +182,8 @@ namespace CodexPlugin
|
||||||
return new Manifest
|
return new Manifest
|
||||||
{
|
{
|
||||||
BlockSize = new ByteSize(Convert.ToInt64(manifest.BlockSize)),
|
BlockSize = new ByteSize(Convert.ToInt64(manifest.BlockSize)),
|
||||||
OriginalBytes = new ByteSize(Convert.ToInt64(manifest.OriginalBytes)),
|
OriginalBytes = new ByteSize(Convert.ToInt64(manifest.DatasetSize)),
|
||||||
RootHash = manifest.RootHash,
|
RootHash = manifest.TreeCid,
|
||||||
Protected = manifest.Protected
|
Protected = manifest.Protected
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -344,10 +344,10 @@ components:
|
||||||
ManifestItem:
|
ManifestItem:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
rootHash:
|
treeCid:
|
||||||
$ref: "#/components/schemas/Cid"
|
$ref: "#/components/schemas/Cid"
|
||||||
description: "Root hash of the content"
|
description: "Unique data identifier"
|
||||||
originalBytes:
|
datasetSize:
|
||||||
type: integer
|
type: integer
|
||||||
format: int64
|
format: int64
|
||||||
description: "Length of original content in bytes"
|
description: "Length of original content in bytes"
|
||||||
|
@ -359,15 +359,18 @@ components:
|
||||||
description: "Indicates if content is protected by erasure-coding"
|
description: "Indicates if content is protected by erasure-coding"
|
||||||
filename:
|
filename:
|
||||||
type: string
|
type: string
|
||||||
|
nullable: true
|
||||||
description: "The original name of the uploaded content (optional)"
|
description: "The original name of the uploaded content (optional)"
|
||||||
example: codex.png
|
example: codex.png
|
||||||
mimetype:
|
mimetype:
|
||||||
type: string
|
type: string
|
||||||
|
nullable: true
|
||||||
description: "The original mimetype of the uploaded content (optional)"
|
description: "The original mimetype of the uploaded content (optional)"
|
||||||
example: image/png
|
example: image/png
|
||||||
uploadedAt:
|
uploadedAt:
|
||||||
type: integer
|
type: integer
|
||||||
format: int64
|
format: int64
|
||||||
|
nullable: true
|
||||||
description: "The UTC upload timestamp in seconds"
|
description: "The UTC upload timestamp in seconds"
|
||||||
example: 1729244192
|
example: 1729244192
|
||||||
|
|
||||||
|
|
|
@ -66,7 +66,7 @@ namespace BiblioTech
|
||||||
success: true,
|
success: true,
|
||||||
title: $"Success: '{content.Cid}'",
|
title: $"Success: '{content.Cid}'",
|
||||||
error: "",
|
error: "",
|
||||||
$"size: {content.Manifest.OriginalBytes} bytes",
|
$"size: {content.Manifest.DatasetSize} bytes",
|
||||||
$"blockSize: {content.Manifest.BlockSize} bytes",
|
$"blockSize: {content.Manifest.BlockSize} bytes",
|
||||||
$"protected: {content.Manifest.Protected}"
|
$"protected: {content.Manifest.Protected}"
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue