mirror of https://github.com/Squidex/squidex.git
Browse Source
* Update client library. * Fix tests. * Another fix. * Update packages. * Fix tests * Fix? * Fix URLs * Revert test * Another identity test. * Simplify configs.pull/981/head
committed by
GitHub
136 changed files with 1422 additions and 1578 deletions
@ -0,0 +1,40 @@ |
|||||
|
// ==========================================================================
|
||||
|
// Squidex Headless CMS
|
||||
|
// ==========================================================================
|
||||
|
// Copyright (c) Squidex UG (haftungsbeschraenkt)
|
||||
|
// All rights reserved. Licensed under the MIT license.
|
||||
|
// ==========================================================================
|
||||
|
|
||||
|
using MongoDB.Bson.Serialization.Serializers; |
||||
|
using MongoDB.Bson.Serialization; |
||||
|
using MongoDB.Driver; |
||||
|
using MongoDB.Driver.Linq; |
||||
|
using Squidex.Infrastructure.Json.Objects; |
||||
|
|
||||
|
namespace Squidex.Infrastructure.MongoDb; |
||||
|
|
||||
|
public static class MongoClientFactory |
||||
|
{ |
||||
|
public static MongoClient Create(string? connectionString, Action<MongoClientSettings>? configure = null) |
||||
|
{ |
||||
|
// Allow all types, independent from the actual assembly.
|
||||
|
BsonSerializer.TryRegisterSerializer(new ObjectSerializer(type => true)); |
||||
|
|
||||
|
BsonDefaultConventions.Register(); |
||||
|
BsonDomainIdSerializer.Register(); |
||||
|
BsonEscapedDictionarySerializer<JsonValue, JsonObject>.Register(); |
||||
|
BsonInstantSerializer.Register(); |
||||
|
BsonJsonValueSerializer.Register(); |
||||
|
BsonStringSerializer<RefToken>.Register(); |
||||
|
|
||||
|
var clientSettings = MongoClientSettings.FromConnectionString(connectionString); |
||||
|
|
||||
|
// The current version of the linq provider has some issues with base classes.
|
||||
|
clientSettings.LinqProvider = LinqProvider.V2; |
||||
|
|
||||
|
// If we really need custom config.
|
||||
|
configure?.Invoke(clientSettings); |
||||
|
|
||||
|
return new MongoClient(clientSettings); |
||||
|
} |
||||
|
} |
||||
@ -1,68 +1,68 @@ |
|||||
{ |
{ |
||||
id: Guid_1, |
Id: Guid_1, |
||||
name: Guid_2, |
Name: Guid_2, |
||||
version: 2, |
Version: 2, |
||||
canAccessContent: true, |
CanAccessContent: true, |
||||
_links: { |
_links: { |
||||
assets: { |
assets: { |
||||
method: GET |
Method: GET |
||||
}, |
}, |
||||
assets/create: { |
assets/create: { |
||||
method: POST |
Method: POST |
||||
}, |
}, |
||||
assets/scripts: { |
assets/scripts: { |
||||
method: DELETE |
Method: DELETE |
||||
}, |
}, |
||||
backups: { |
backups: { |
||||
method: GET |
Method: GET |
||||
}, |
}, |
||||
clients: { |
clients: { |
||||
method: GET |
Method: GET |
||||
}, |
}, |
||||
contributors: { |
contributors: { |
||||
method: GET |
Method: GET |
||||
}, |
}, |
||||
delete: { |
delete: { |
||||
method: DELETE |
Method: DELETE |
||||
}, |
}, |
||||
image/delete: { |
image/delete: { |
||||
method: DELETE |
Method: DELETE |
||||
}, |
}, |
||||
image/upload: { |
image/upload: { |
||||
method: POST |
Method: POST |
||||
}, |
}, |
||||
languages: { |
languages: { |
||||
method: GET |
Method: GET |
||||
}, |
}, |
||||
ping: { |
ping: { |
||||
method: GET |
Method: GET |
||||
}, |
}, |
||||
plans: { |
plans: { |
||||
method: GET |
Method: GET |
||||
}, |
}, |
||||
roles: { |
roles: { |
||||
method: GET |
Method: GET |
||||
}, |
}, |
||||
rules: { |
rules: { |
||||
method: GET |
Method: GET |
||||
}, |
}, |
||||
schemas: { |
schemas: { |
||||
method: GET |
Method: GET |
||||
}, |
}, |
||||
schemas/create: { |
schemas/create: { |
||||
method: POST |
Method: POST |
||||
}, |
}, |
||||
settings: { |
settings: { |
||||
method: GET |
Method: GET |
||||
}, |
}, |
||||
transfer: { |
transfer: { |
||||
method: PUT |
Method: PUT |
||||
}, |
}, |
||||
update: { |
update: { |
||||
method: PUT |
Method: PUT |
||||
}, |
}, |
||||
workflows: { |
workflows: { |
||||
method: GET |
Method: GET |
||||
} |
} |
||||
} |
} |
||||
} |
} |
||||
@ -1,68 +1,68 @@ |
|||||
{ |
{ |
||||
id: Guid_1, |
Id: Guid_1, |
||||
name: Guid_2, |
Name: Guid_2, |
||||
version: 2, |
Version: 2, |
||||
canAccessContent: true, |
CanAccessContent: true, |
||||
_links: { |
_links: { |
||||
assets: { |
assets: { |
||||
method: GET |
Method: GET |
||||
}, |
}, |
||||
assets/create: { |
assets/create: { |
||||
method: POST |
Method: POST |
||||
}, |
}, |
||||
assets/scripts: { |
assets/scripts: { |
||||
method: DELETE |
Method: DELETE |
||||
}, |
}, |
||||
backups: { |
backups: { |
||||
method: GET |
Method: GET |
||||
}, |
}, |
||||
clients: { |
clients: { |
||||
method: GET |
Method: GET |
||||
}, |
}, |
||||
contributors: { |
contributors: { |
||||
method: GET |
Method: GET |
||||
}, |
}, |
||||
delete: { |
delete: { |
||||
method: DELETE |
Method: DELETE |
||||
}, |
}, |
||||
image/delete: { |
image/delete: { |
||||
method: DELETE |
Method: DELETE |
||||
}, |
}, |
||||
image/upload: { |
image/upload: { |
||||
method: POST |
Method: POST |
||||
}, |
}, |
||||
languages: { |
languages: { |
||||
method: GET |
Method: GET |
||||
}, |
}, |
||||
ping: { |
ping: { |
||||
method: GET |
Method: GET |
||||
}, |
}, |
||||
plans: { |
plans: { |
||||
method: GET |
Method: GET |
||||
}, |
}, |
||||
roles: { |
roles: { |
||||
method: GET |
Method: GET |
||||
}, |
}, |
||||
rules: { |
rules: { |
||||
method: GET |
Method: GET |
||||
}, |
}, |
||||
schemas: { |
schemas: { |
||||
method: GET |
Method: GET |
||||
}, |
}, |
||||
schemas/create: { |
schemas/create: { |
||||
method: POST |
Method: POST |
||||
}, |
}, |
||||
settings: { |
settings: { |
||||
method: GET |
Method: GET |
||||
}, |
}, |
||||
transfer: { |
transfer: { |
||||
method: PUT |
Method: PUT |
||||
}, |
}, |
||||
update: { |
update: { |
||||
method: PUT |
Method: PUT |
||||
}, |
}, |
||||
workflows: { |
workflows: { |
||||
method: GET |
Method: GET |
||||
} |
} |
||||
} |
} |
||||
} |
} |
||||
@ -1,14 +1,14 @@ |
|||||
{ |
{ |
||||
id: Guid_1, |
Id: Guid_1, |
||||
name: Guid_1, |
Name: Guid_1, |
||||
role: Editor, |
Role: Editor, |
||||
allowAnonymous: false, |
AllowAnonymous: false, |
||||
_links: { |
_links: { |
||||
delete: { |
delete: { |
||||
method: DELETE |
Method: DELETE |
||||
}, |
}, |
||||
update: { |
update: { |
||||
method: PUT |
Method: PUT |
||||
} |
} |
||||
} |
} |
||||
} |
} |
||||
@ -1,26 +1,26 @@ |
|||||
{ |
{ |
||||
items: [ |
Items: [ |
||||
{ |
{ |
||||
id: default, |
Id: default, |
||||
name: default, |
Name: default, |
||||
role: Owner, |
Role: Owner, |
||||
allowAnonymous: false, |
AllowAnonymous: false, |
||||
_links: { |
_links: { |
||||
delete: { |
delete: { |
||||
method: DELETE |
Method: DELETE |
||||
}, |
}, |
||||
update: { |
update: { |
||||
method: PUT |
Method: PUT |
||||
} |
} |
||||
} |
} |
||||
} |
} |
||||
], |
], |
||||
_links: { |
_links: { |
||||
create: { |
create: { |
||||
method: POST |
Method: POST |
||||
}, |
}, |
||||
self: { |
self: { |
||||
method: GET |
Method: GET |
||||
} |
} |
||||
} |
} |
||||
} |
} |
||||
@ -1,42 +1,42 @@ |
|||||
{ |
{ |
||||
items: [ |
Items: [ |
||||
{ |
{ |
||||
id: default, |
Id: default, |
||||
name: default, |
Name: default, |
||||
role: Owner, |
Role: Owner, |
||||
allowAnonymous: false, |
AllowAnonymous: false, |
||||
_links: { |
_links: { |
||||
delete: { |
delete: { |
||||
method: DELETE |
Method: DELETE |
||||
}, |
}, |
||||
update: { |
update: { |
||||
method: PUT |
Method: PUT |
||||
} |
} |
||||
} |
} |
||||
}, |
}, |
||||
{ |
{ |
||||
id: Guid_1, |
Id: Guid_1, |
||||
name: My Client, |
Name: My Client, |
||||
role: Owner, |
Role: Owner, |
||||
apiCallsLimit: 100, |
ApiCallsLimit: 100, |
||||
apiTrafficLimit: 200, |
ApiTrafficLimit: 200, |
||||
allowAnonymous: true, |
AllowAnonymous: true, |
||||
_links: { |
_links: { |
||||
delete: { |
delete: { |
||||
method: DELETE |
Method: DELETE |
||||
}, |
}, |
||||
update: { |
update: { |
||||
method: PUT |
Method: PUT |
||||
} |
} |
||||
} |
} |
||||
} |
} |
||||
], |
], |
||||
_links: { |
_links: { |
||||
create: { |
create: { |
||||
method: POST |
Method: POST |
||||
}, |
}, |
||||
self: { |
self: { |
||||
method: GET |
Method: GET |
||||
} |
} |
||||
} |
} |
||||
} |
} |
||||
@ -1,11 +1,11 @@ |
|||||
{ |
{ |
||||
role: Developer, |
Role: Developer, |
||||
_links: { |
_links: { |
||||
delete: { |
delete: { |
||||
method: DELETE |
Method: DELETE |
||||
}, |
}, |
||||
update: { |
update: { |
||||
method: POST |
Method: POST |
||||
} |
} |
||||
} |
} |
||||
} |
} |
||||
@ -1,11 +1,11 @@ |
|||||
{ |
{ |
||||
maxContributors: -1, |
MaxContributors: -1, |
||||
_links: { |
_links: { |
||||
create: { |
create: { |
||||
method: POST |
Method: POST |
||||
}, |
}, |
||||
self: { |
self: { |
||||
method: GET |
Method: GET |
||||
} |
} |
||||
} |
} |
||||
} |
} |
||||
@ -1 +0,0 @@ |
|||||
|
|
||||
@ -1,68 +1,68 @@ |
|||||
{ |
{ |
||||
id: Guid_1, |
Id: Guid_1, |
||||
name: Guid_2, |
Name: Guid_2, |
||||
version: 2, |
Version: 2, |
||||
canAccessContent: true, |
CanAccessContent: true, |
||||
_links: { |
_links: { |
||||
assets: { |
assets: { |
||||
method: GET |
Method: GET |
||||
}, |
}, |
||||
assets/create: { |
assets/create: { |
||||
method: POST |
Method: POST |
||||
}, |
}, |
||||
assets/scripts: { |
assets/scripts: { |
||||
method: DELETE |
Method: DELETE |
||||
}, |
}, |
||||
backups: { |
backups: { |
||||
method: GET |
Method: GET |
||||
}, |
}, |
||||
clients: { |
clients: { |
||||
method: GET |
Method: GET |
||||
}, |
}, |
||||
contributors: { |
contributors: { |
||||
method: GET |
Method: GET |
||||
}, |
}, |
||||
delete: { |
delete: { |
||||
method: DELETE |
Method: DELETE |
||||
}, |
}, |
||||
image/delete: { |
image/delete: { |
||||
method: DELETE |
Method: DELETE |
||||
}, |
}, |
||||
image/upload: { |
image/upload: { |
||||
method: POST |
Method: POST |
||||
}, |
}, |
||||
languages: { |
languages: { |
||||
method: GET |
Method: GET |
||||
}, |
}, |
||||
ping: { |
ping: { |
||||
method: GET |
Method: GET |
||||
}, |
}, |
||||
plans: { |
plans: { |
||||
method: GET |
Method: GET |
||||
}, |
}, |
||||
roles: { |
roles: { |
||||
method: GET |
Method: GET |
||||
}, |
}, |
||||
rules: { |
rules: { |
||||
method: GET |
Method: GET |
||||
}, |
}, |
||||
schemas: { |
schemas: { |
||||
method: GET |
Method: GET |
||||
}, |
}, |
||||
schemas/create: { |
schemas/create: { |
||||
method: POST |
Method: POST |
||||
}, |
}, |
||||
settings: { |
settings: { |
||||
method: GET |
Method: GET |
||||
}, |
}, |
||||
transfer: { |
transfer: { |
||||
method: PUT |
Method: PUT |
||||
}, |
}, |
||||
update: { |
update: { |
||||
method: PUT |
Method: PUT |
||||
}, |
}, |
||||
workflows: { |
workflows: { |
||||
method: GET |
Method: GET |
||||
} |
} |
||||
} |
} |
||||
} |
} |
||||
@ -1,46 +1,46 @@ |
|||||
{ |
{ |
||||
items: [ |
Items: [ |
||||
{ |
{ |
||||
iso2Code: en, |
Iso2Code: en, |
||||
englishName: English, |
EnglishName: English, |
||||
isMaster: true, |
IsMaster: true, |
||||
isOptional: false |
IsOptional: false |
||||
}, |
}, |
||||
{ |
{ |
||||
iso2Code: abc, |
Iso2Code: abc, |
||||
englishName: , |
EnglishName: , |
||||
isMaster: false, |
IsMaster: false, |
||||
isOptional: false, |
IsOptional: false, |
||||
_links: { |
_links: { |
||||
delete: { |
delete: { |
||||
method: DELETE |
Method: DELETE |
||||
}, |
}, |
||||
update: { |
update: { |
||||
method: PUT |
Method: PUT |
||||
} |
} |
||||
} |
} |
||||
}, |
}, |
||||
{ |
{ |
||||
iso2Code: xyz, |
Iso2Code: xyz, |
||||
englishName: , |
EnglishName: , |
||||
isMaster: false, |
IsMaster: false, |
||||
isOptional: false, |
IsOptional: false, |
||||
_links: { |
_links: { |
||||
delete: { |
delete: { |
||||
method: DELETE |
Method: DELETE |
||||
}, |
}, |
||||
update: { |
update: { |
||||
method: PUT |
Method: PUT |
||||
} |
} |
||||
} |
} |
||||
} |
} |
||||
], |
], |
||||
_links: { |
_links: { |
||||
create: { |
create: { |
||||
method: POST |
Method: POST |
||||
}, |
}, |
||||
self: { |
self: { |
||||
method: GET |
Method: GET |
||||
} |
} |
||||
} |
} |
||||
} |
} |
||||
@ -1,46 +1,46 @@ |
|||||
{ |
{ |
||||
items: [ |
Items: [ |
||||
{ |
{ |
||||
iso2Code: en, |
Iso2Code: en, |
||||
englishName: English, |
EnglishName: English, |
||||
isMaster: true, |
IsMaster: true, |
||||
isOptional: false |
IsOptional: false |
||||
}, |
}, |
||||
{ |
{ |
||||
iso2Code: de, |
Iso2Code: de, |
||||
englishName: German, |
EnglishName: German, |
||||
isMaster: false, |
IsMaster: false, |
||||
isOptional: false, |
IsOptional: false, |
||||
_links: { |
_links: { |
||||
delete: { |
delete: { |
||||
method: DELETE |
Method: DELETE |
||||
}, |
}, |
||||
update: { |
update: { |
||||
method: PUT |
Method: PUT |
||||
} |
} |
||||
} |
} |
||||
}, |
}, |
||||
{ |
{ |
||||
iso2Code: it, |
Iso2Code: it, |
||||
englishName: Italian, |
EnglishName: Italian, |
||||
isMaster: false, |
IsMaster: false, |
||||
isOptional: false, |
IsOptional: false, |
||||
_links: { |
_links: { |
||||
delete: { |
delete: { |
||||
method: DELETE |
Method: DELETE |
||||
}, |
}, |
||||
update: { |
update: { |
||||
method: PUT |
Method: PUT |
||||
} |
} |
||||
} |
} |
||||
} |
} |
||||
], |
], |
||||
_links: { |
_links: { |
||||
create: { |
create: { |
||||
method: POST |
Method: POST |
||||
}, |
}, |
||||
self: { |
self: { |
||||
method: GET |
Method: GET |
||||
} |
} |
||||
} |
} |
||||
} |
} |
||||
@ -1,32 +1,32 @@ |
|||||
{ |
{ |
||||
items: [ |
Items: [ |
||||
{ |
{ |
||||
iso2Code: en, |
Iso2Code: en, |
||||
englishName: English, |
EnglishName: English, |
||||
isMaster: true, |
IsMaster: true, |
||||
isOptional: false |
IsOptional: false |
||||
}, |
}, |
||||
{ |
{ |
||||
iso2Code: it, |
Iso2Code: it, |
||||
englishName: Italian, |
EnglishName: Italian, |
||||
isMaster: false, |
IsMaster: false, |
||||
isOptional: true, |
IsOptional: true, |
||||
_links: { |
_links: { |
||||
delete: { |
delete: { |
||||
method: DELETE |
Method: DELETE |
||||
}, |
}, |
||||
update: { |
update: { |
||||
method: PUT |
Method: PUT |
||||
} |
} |
||||
} |
} |
||||
} |
} |
||||
], |
], |
||||
_links: { |
_links: { |
||||
create: { |
create: { |
||||
method: POST |
Method: POST |
||||
}, |
}, |
||||
self: { |
self: { |
||||
method: GET |
Method: GET |
||||
} |
} |
||||
} |
} |
||||
} |
} |
||||
@ -1,49 +1,49 @@ |
|||||
{ |
{ |
||||
items: [ |
Items: [ |
||||
{ |
{ |
||||
iso2Code: en, |
Iso2Code: en, |
||||
englishName: English, |
EnglishName: English, |
||||
isMaster: true, |
IsMaster: true, |
||||
isOptional: false |
IsOptional: false |
||||
}, |
}, |
||||
{ |
{ |
||||
iso2Code: de, |
Iso2Code: de, |
||||
englishName: German, |
EnglishName: German, |
||||
fallback: [ |
Fallback: [ |
||||
it |
it |
||||
], |
], |
||||
isMaster: false, |
IsMaster: false, |
||||
isOptional: true, |
IsOptional: true, |
||||
_links: { |
_links: { |
||||
delete: { |
delete: { |
||||
method: DELETE |
Method: DELETE |
||||
}, |
}, |
||||
update: { |
update: { |
||||
method: PUT |
Method: PUT |
||||
} |
} |
||||
} |
} |
||||
}, |
}, |
||||
{ |
{ |
||||
iso2Code: it, |
Iso2Code: it, |
||||
englishName: Italian, |
EnglishName: Italian, |
||||
isMaster: false, |
IsMaster: false, |
||||
isOptional: false, |
IsOptional: false, |
||||
_links: { |
_links: { |
||||
delete: { |
delete: { |
||||
method: DELETE |
Method: DELETE |
||||
}, |
}, |
||||
update: { |
update: { |
||||
method: PUT |
Method: PUT |
||||
} |
} |
||||
} |
} |
||||
} |
} |
||||
], |
], |
||||
_links: { |
_links: { |
||||
create: { |
create: { |
||||
method: POST |
Method: POST |
||||
}, |
}, |
||||
self: { |
self: { |
||||
method: GET |
Method: GET |
||||
} |
} |
||||
} |
} |
||||
} |
} |
||||
@ -1,46 +1,46 @@ |
|||||
{ |
{ |
||||
items: [ |
Items: [ |
||||
{ |
{ |
||||
iso2Code: it, |
Iso2Code: it, |
||||
englishName: Italian, |
EnglishName: Italian, |
||||
isMaster: true, |
IsMaster: true, |
||||
isOptional: false |
IsOptional: false |
||||
}, |
}, |
||||
{ |
{ |
||||
iso2Code: de, |
Iso2Code: de, |
||||
englishName: German, |
EnglishName: German, |
||||
isMaster: false, |
IsMaster: false, |
||||
isOptional: false, |
IsOptional: false, |
||||
_links: { |
_links: { |
||||
delete: { |
delete: { |
||||
method: DELETE |
Method: DELETE |
||||
}, |
}, |
||||
update: { |
update: { |
||||
method: PUT |
Method: PUT |
||||
} |
} |
||||
} |
} |
||||
}, |
}, |
||||
{ |
{ |
||||
iso2Code: en, |
Iso2Code: en, |
||||
englishName: English, |
EnglishName: English, |
||||
isMaster: false, |
IsMaster: false, |
||||
isOptional: false, |
IsOptional: false, |
||||
_links: { |
_links: { |
||||
delete: { |
delete: { |
||||
method: DELETE |
Method: DELETE |
||||
}, |
}, |
||||
update: { |
update: { |
||||
method: PUT |
Method: PUT |
||||
} |
} |
||||
} |
} |
||||
} |
} |
||||
], |
], |
||||
_links: { |
_links: { |
||||
create: { |
create: { |
||||
method: POST |
Method: POST |
||||
}, |
}, |
||||
self: { |
self: { |
||||
method: GET |
Method: GET |
||||
} |
} |
||||
} |
} |
||||
} |
} |
||||
@ -1,11 +1,11 @@ |
|||||
{ |
{ |
||||
isDefaultRole: false, |
IsDefaultRole: false, |
||||
_links: { |
_links: { |
||||
delete: { |
delete: { |
||||
method: DELETE |
Method: DELETE |
||||
}, |
}, |
||||
update: { |
update: { |
||||
method: PUT |
Method: PUT |
||||
} |
} |
||||
} |
} |
||||
} |
} |
||||
@ -1,11 +1,11 @@ |
|||||
{ |
{ |
||||
isDefaultRole: false, |
IsDefaultRole: false, |
||||
_links: { |
_links: { |
||||
delete: { |
delete: { |
||||
method: DELETE |
Method: DELETE |
||||
}, |
}, |
||||
update: { |
update: { |
||||
method: PUT |
Method: PUT |
||||
} |
} |
||||
} |
} |
||||
} |
} |
||||
@ -1,15 +1,15 @@ |
|||||
{ |
{ |
||||
isDefaultRole: false, |
IsDefaultRole: false, |
||||
permissions: [ |
Permissions: [ |
||||
a, |
a, |
||||
b |
b |
||||
], |
], |
||||
_links: { |
_links: { |
||||
delete: { |
delete: { |
||||
method: DELETE |
Method: DELETE |
||||
}, |
}, |
||||
update: { |
update: { |
||||
method: PUT |
Method: PUT |
||||
} |
} |
||||
} |
} |
||||
} |
} |
||||
@ -1,24 +1,24 @@ |
|||||
{ |
{ |
||||
patterns: [ |
Patterns: [ |
||||
{ |
{ |
||||
name: pattern, |
Name: pattern, |
||||
regex: .* |
Regex: .* |
||||
} |
} |
||||
], |
], |
||||
editors: [ |
Editors: [ |
||||
{ |
{ |
||||
name: editor, |
Name: editor, |
||||
url: http://squidex.io/path/to/editor |
Url: http://squidex.io/path/to/editor |
||||
} |
} |
||||
], |
], |
||||
hideScheduler: false, |
HideScheduler: false, |
||||
hideDateTimeModeButton: false, |
HideDateTimeModeButton: false, |
||||
_links: { |
_links: { |
||||
self: { |
self: { |
||||
method: GET |
Method: GET |
||||
}, |
}, |
||||
update: { |
update: { |
||||
method: PUT |
Method: PUT |
||||
} |
} |
||||
} |
} |
||||
} |
} |
||||
@ -1,41 +1,41 @@ |
|||||
{ |
{ |
||||
id: Guid_1, |
Id: Guid_1, |
||||
name: Guid_2, |
Name: Guid_2, |
||||
steps: { |
Steps: { |
||||
Archived: { |
Archived: { |
||||
transitions: { |
Transitions: { |
||||
Draft: {} |
Draft: {} |
||||
}, |
}, |
||||
color: #eb3142, |
Color: #eb3142, |
||||
validate: false, |
Validate: false, |
||||
noUpdate: true |
NoUpdate: true |
||||
}, |
}, |
||||
Draft: { |
Draft: { |
||||
transitions: { |
Transitions: { |
||||
Archived: {}, |
Archived: {}, |
||||
Published: {} |
Published: {} |
||||
}, |
}, |
||||
color: #8091a5, |
Color: #8091a5, |
||||
validate: false, |
Validate: false, |
||||
noUpdate: false |
NoUpdate: false |
||||
}, |
}, |
||||
Published: { |
Published: { |
||||
transitions: { |
Transitions: { |
||||
Archived: {}, |
Archived: {}, |
||||
Draft: {} |
Draft: {} |
||||
}, |
}, |
||||
color: #4bb958, |
Color: #4bb958, |
||||
validate: false, |
Validate: false, |
||||
noUpdate: false |
NoUpdate: false |
||||
} |
} |
||||
}, |
}, |
||||
initial: Draft, |
Initial: Draft, |
||||
_links: { |
_links: { |
||||
delete: { |
delete: { |
||||
method: DELETE |
Method: DELETE |
||||
}, |
}, |
||||
update: { |
update: { |
||||
method: PUT |
Method: PUT |
||||
} |
} |
||||
} |
} |
||||
} |
} |
||||
@ -1,10 +1,10 @@ |
|||||
{ |
{ |
||||
_links: { |
_links: { |
||||
create: { |
create: { |
||||
method: POST |
Method: POST |
||||
}, |
}, |
||||
self: { |
self: { |
||||
method: GET |
Method: GET |
||||
} |
} |
||||
} |
} |
||||
} |
} |
||||
@ -1,38 +1,38 @@ |
|||||
{ |
{ |
||||
items: [ |
Items: [ |
||||
{ |
{ |
||||
id: Guid_1, |
Id: Guid_1, |
||||
name: Guid_2, |
Name: Guid_2, |
||||
steps: { |
Steps: { |
||||
Draft: { |
Draft: { |
||||
transitions: { |
Transitions: { |
||||
Published: {} |
Published: {} |
||||
}, |
}, |
||||
validate: false, |
Validate: false, |
||||
noUpdate: false |
NoUpdate: false |
||||
}, |
}, |
||||
Published: { |
Published: { |
||||
validate: false, |
Validate: false, |
||||
noUpdate: false |
NoUpdate: false |
||||
} |
} |
||||
}, |
}, |
||||
initial: Draft, |
Initial: Draft, |
||||
_links: { |
_links: { |
||||
delete: { |
delete: { |
||||
method: DELETE |
Method: DELETE |
||||
}, |
}, |
||||
update: { |
update: { |
||||
method: PUT |
Method: PUT |
||||
} |
} |
||||
} |
} |
||||
} |
} |
||||
], |
], |
||||
_links: { |
_links: { |
||||
create: { |
create: { |
||||
method: POST |
Method: POST |
||||
}, |
}, |
||||
self: { |
self: { |
||||
method: GET |
Method: GET |
||||
} |
} |
||||
} |
} |
||||
} |
} |
||||
@ -1,47 +1,47 @@ |
|||||
{ |
{ |
||||
id: Guid_1, |
Id: Guid_1, |
||||
parentId: Guid_Empty, |
ParentId: Guid_Empty, |
||||
fileName: logo-wide-rotated.jpg, |
FileName: logo-wide-rotated.jpg, |
||||
fileHash: TLNAlI4UM3i8O4IF/O7ZuH3PrI3+bsz4AsBt9NrEydI=, |
FileHash: TLNAlI4UM3i8O4IF/O7ZuH3PrI3+bsz4AsBt9NrEydI=, |
||||
isProtected: false, |
IsProtected: false, |
||||
slug: logo-wide-rotated.jpg, |
Slug: logo-wide-rotated.jpg, |
||||
mimeType: image/jpg, |
MimeType: image/jpg, |
||||
fileType: jpg, |
FileType: jpg, |
||||
metadataText: 600x135px, 15.1 kB, |
MetadataText: 600x135px, 15.1 kB, |
||||
metadata: { |
Metadata: { |
||||
description: JFIF File, |
description: JFIF File, |
||||
imageQuality: 79, |
imageQuality: 79, |
||||
pixelHeight: 135, |
pixelHeight: 135, |
||||
pixelWidth: 600 |
pixelWidth: 600 |
||||
}, |
}, |
||||
tags: [ |
Tags: [ |
||||
type/jpg, |
type/jpg, |
||||
image, |
image, |
||||
image/medium |
image/medium |
||||
], |
], |
||||
fileSize: 15425, |
FileSize: 15425, |
||||
type: Image, |
Type: Image, |
||||
_links: { |
_links: { |
||||
content: { |
content: { |
||||
method: GET |
Method: GET |
||||
}, |
}, |
||||
content/slug: { |
content/slug: { |
||||
method: GET |
Method: GET |
||||
}, |
}, |
||||
delete: { |
delete: { |
||||
method: DELETE |
Method: DELETE |
||||
}, |
}, |
||||
move: { |
move: { |
||||
method: PUT |
Method: PUT |
||||
}, |
}, |
||||
self: { |
self: { |
||||
method: GET |
Method: GET |
||||
}, |
}, |
||||
update: { |
update: { |
||||
method: PUT |
Method: PUT |
||||
}, |
}, |
||||
upload: { |
upload: { |
||||
method: PUT |
Method: PUT |
||||
} |
} |
||||
} |
} |
||||
} |
} |
||||
@ -1,46 +1,46 @@ |
|||||
{ |
{ |
||||
id: Guid_1, |
Id: Guid_1, |
||||
parentId: Guid_Empty, |
ParentId: Guid_Empty, |
||||
fileName: SampleAudio_0.4mb.mp3, |
FileName: SampleAudio_0.4mb.mp3, |
||||
fileHash: 0pbi5CFhQWqqSVy37vaw8bUOg3k1tDrlK1ySXxDrmNE=, |
FileHash: 0pbi5CFhQWqqSVy37vaw8bUOg3k1tDrlK1ySXxDrmNE=, |
||||
isProtected: false, |
IsProtected: false, |
||||
slug: sampleaudio-0.4mb.mp3, |
Slug: sampleaudio-0.4mb.mp3, |
||||
mimeType: audio/mp3, |
MimeType: audio/mp3, |
||||
fileType: mp3, |
FileType: mp3, |
||||
metadataText: 00:00:28.2708750, 433.5 kB, |
MetadataText: 00:00:28.2708750, 433.5 kB, |
||||
metadata: { |
Metadata: { |
||||
audioBitrate: 128, |
audioBitrate: 128, |
||||
audioChannels: 2, |
audioChannels: 2, |
||||
audioSampleRate: 44100, |
audioSampleRate: 44100, |
||||
description: MPEG Version 1 Audio, Layer 3, |
description: MPEG Version 1 Audio, Layer 3, |
||||
duration: 00:00:28.2708750 |
duration: 00:00:28.2708750 |
||||
}, |
}, |
||||
tags: [ |
Tags: [ |
||||
type/mp3 |
type/mp3 |
||||
], |
], |
||||
fileSize: 443926, |
FileSize: 443926, |
||||
type: Audio, |
Type: Audio, |
||||
_links: { |
_links: { |
||||
content: { |
content: { |
||||
method: GET |
Method: GET |
||||
}, |
}, |
||||
content/slug: { |
content/slug: { |
||||
method: GET |
Method: GET |
||||
}, |
}, |
||||
delete: { |
delete: { |
||||
method: DELETE |
Method: DELETE |
||||
}, |
}, |
||||
move: { |
move: { |
||||
method: PUT |
Method: PUT |
||||
}, |
}, |
||||
self: { |
self: { |
||||
method: GET |
Method: GET |
||||
}, |
}, |
||||
update: { |
update: { |
||||
method: PUT |
Method: PUT |
||||
}, |
}, |
||||
upload: { |
upload: { |
||||
method: PUT |
Method: PUT |
||||
} |
} |
||||
} |
} |
||||
} |
} |
||||
@ -1,45 +1,45 @@ |
|||||
{ |
{ |
||||
id: Guid_1, |
Id: Guid_1, |
||||
parentId: Guid_Empty, |
ParentId: Guid_Empty, |
||||
fileName: SampleImage_700kb.bmp, |
FileName: SampleImage_700kb.bmp, |
||||
fileHash: LNQGH33R2ShAFTo54UlxKOKzBg8a+yjVaFgzwiHw2LQ=, |
FileHash: LNQGH33R2ShAFTo54UlxKOKzBg8a+yjVaFgzwiHw2LQ=, |
||||
isProtected: false, |
IsProtected: false, |
||||
slug: sampleimage-700kb.bmp, |
Slug: sampleimage-700kb.bmp, |
||||
mimeType: image/bmp, |
MimeType: image/bmp, |
||||
fileType: bmp, |
FileType: bmp, |
||||
metadataText: 600x400px, 703.2 kB, |
MetadataText: 600x400px, 703.2 kB, |
||||
metadata: { |
Metadata: { |
||||
pixelHeight: 400, |
pixelHeight: 400, |
||||
pixelWidth: 600 |
pixelWidth: 600 |
||||
}, |
}, |
||||
tags: [ |
Tags: [ |
||||
type/bmp, |
type/bmp, |
||||
image, |
image, |
||||
image/medium |
image/medium |
||||
], |
], |
||||
fileSize: 720054, |
FileSize: 720054, |
||||
type: Image, |
Type: Image, |
||||
_links: { |
_links: { |
||||
content: { |
content: { |
||||
method: GET |
Method: GET |
||||
}, |
}, |
||||
content/slug: { |
content/slug: { |
||||
method: GET |
Method: GET |
||||
}, |
}, |
||||
delete: { |
delete: { |
||||
method: DELETE |
Method: DELETE |
||||
}, |
}, |
||||
move: { |
move: { |
||||
method: PUT |
Method: PUT |
||||
}, |
}, |
||||
self: { |
self: { |
||||
method: GET |
Method: GET |
||||
}, |
}, |
||||
update: { |
update: { |
||||
method: PUT |
Method: PUT |
||||
}, |
}, |
||||
upload: { |
upload: { |
||||
method: PUT |
Method: PUT |
||||
} |
} |
||||
} |
} |
||||
} |
} |
||||
@ -1,45 +1,45 @@ |
|||||
{ |
{ |
||||
id: Guid_1, |
Id: Guid_1, |
||||
parentId: Guid_Empty, |
ParentId: Guid_Empty, |
||||
fileName: SampleImage_700kb.bmp, |
FileName: SampleImage_700kb.bmp, |
||||
fileHash: LNQGH33R2ShAFTo54UlxKOKzBg8a+yjVaFgzwiHw2LQ=, |
FileHash: LNQGH33R2ShAFTo54UlxKOKzBg8a+yjVaFgzwiHw2LQ=, |
||||
isProtected: false, |
IsProtected: false, |
||||
slug: sampleimage-700kb.bmp, |
Slug: sampleimage-700kb.bmp, |
||||
mimeType: image/bmp, |
MimeType: image/bmp, |
||||
fileType: bmp, |
FileType: bmp, |
||||
metadataText: 600x400px, 703.2 kB, |
MetadataText: 600x400px, 703.2 kB, |
||||
metadata: { |
Metadata: { |
||||
pixelHeight: 400, |
pixelHeight: 400, |
||||
pixelWidth: 600 |
pixelWidth: 600 |
||||
}, |
}, |
||||
tags: [ |
Tags: [ |
||||
type/bmp, |
type/bmp, |
||||
image, |
image, |
||||
image/medium |
image/medium |
||||
], |
], |
||||
fileSize: 720054, |
FileSize: 720054, |
||||
type: Image, |
Type: Image, |
||||
_links: { |
_links: { |
||||
content: { |
content: { |
||||
method: GET |
Method: GET |
||||
}, |
}, |
||||
content/slug: { |
content/slug: { |
||||
method: GET |
Method: GET |
||||
}, |
}, |
||||
delete: { |
delete: { |
||||
method: DELETE |
Method: DELETE |
||||
}, |
}, |
||||
move: { |
move: { |
||||
method: PUT |
Method: PUT |
||||
}, |
}, |
||||
self: { |
self: { |
||||
method: GET |
Method: GET |
||||
}, |
}, |
||||
update: { |
update: { |
||||
method: PUT |
Method: PUT |
||||
}, |
}, |
||||
upload: { |
upload: { |
||||
method: PUT |
Method: PUT |
||||
} |
} |
||||
} |
} |
||||
} |
} |
||||
@ -1,46 +1,46 @@ |
|||||
{ |
{ |
||||
id: Guid_1, |
Id: Guid_1, |
||||
parentId: Guid_Empty, |
ParentId: Guid_Empty, |
||||
fileName: SampleImage_150kb.gif, |
FileName: SampleImage_150kb.gif, |
||||
fileHash: j+n9HuQJ0F4n5z0G29NfFlWJTuaGIW+eqw3NDOYCtU8=, |
FileHash: j+n9HuQJ0F4n5z0G29NfFlWJTuaGIW+eqw3NDOYCtU8=, |
||||
isProtected: false, |
IsProtected: false, |
||||
slug: sampleimage-150kb.gif, |
Slug: sampleimage-150kb.gif, |
||||
mimeType: image/gif, |
MimeType: image/gif, |
||||
fileType: gif, |
FileType: gif, |
||||
metadataText: 600x400px, 154.2 kB, |
MetadataText: 600x400px, 154.2 kB, |
||||
metadata: { |
Metadata: { |
||||
description: GIF File, |
description: GIF File, |
||||
pixelHeight: 400, |
pixelHeight: 400, |
||||
pixelWidth: 600 |
pixelWidth: 600 |
||||
}, |
}, |
||||
tags: [ |
Tags: [ |
||||
type/gif, |
type/gif, |
||||
image, |
image, |
||||
image/medium |
image/medium |
||||
], |
], |
||||
fileSize: 157934, |
FileSize: 157934, |
||||
type: Image, |
Type: Image, |
||||
_links: { |
_links: { |
||||
content: { |
content: { |
||||
method: GET |
Method: GET |
||||
}, |
}, |
||||
content/slug: { |
content/slug: { |
||||
method: GET |
Method: GET |
||||
}, |
}, |
||||
delete: { |
delete: { |
||||
method: DELETE |
Method: DELETE |
||||
}, |
}, |
||||
move: { |
move: { |
||||
method: PUT |
Method: PUT |
||||
}, |
}, |
||||
self: { |
self: { |
||||
method: GET |
Method: GET |
||||
}, |
}, |
||||
update: { |
update: { |
||||
method: PUT |
Method: PUT |
||||
}, |
}, |
||||
upload: { |
upload: { |
||||
method: PUT |
Method: PUT |
||||
} |
} |
||||
} |
} |
||||
} |
} |
||||
@ -1,42 +1,42 @@ |
|||||
{ |
{ |
||||
id: Guid_1, |
Id: Guid_1, |
||||
parentId: Guid_Empty, |
ParentId: Guid_Empty, |
||||
isProtected: false, |
IsProtected: false, |
||||
mimeType: image/gif, |
MimeType: image/gif, |
||||
fileType: blob, |
FileType: blob, |
||||
metadataText: 600x400px, 154.2 kB, |
MetadataText: 600x400px, 154.2 kB, |
||||
metadata: { |
Metadata: { |
||||
pixelHeight: 400, |
pixelHeight: 400, |
||||
pixelWidth: 600 |
pixelWidth: 600 |
||||
}, |
}, |
||||
tags: [ |
Tags: [ |
||||
type/blob, |
type/blob, |
||||
image, |
image, |
||||
image/medium |
image/medium |
||||
], |
], |
||||
fileSize: 157934, |
FileSize: 157934, |
||||
type: Image, |
Type: Image, |
||||
_links: { |
_links: { |
||||
content: { |
content: { |
||||
method: GET |
Method: GET |
||||
}, |
}, |
||||
content/slug: { |
content/slug: { |
||||
method: GET |
Method: GET |
||||
}, |
}, |
||||
delete: { |
delete: { |
||||
method: DELETE |
Method: DELETE |
||||
}, |
}, |
||||
move: { |
move: { |
||||
method: PUT |
Method: PUT |
||||
}, |
}, |
||||
self: { |
self: { |
||||
method: GET |
Method: GET |
||||
}, |
}, |
||||
update: { |
update: { |
||||
method: PUT |
Method: PUT |
||||
}, |
}, |
||||
upload: { |
upload: { |
||||
method: PUT |
Method: PUT |
||||
} |
} |
||||
} |
} |
||||
} |
} |
||||
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue