Skip to content
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
Show all changes
122 commits
Select commit Hold shift + click to select a range
a09d3fb
Add OAS
connorwinston Sep 20, 2024
2385355
Change Bundle
connorwinston Sep 20, 2024
e8d1287
Fix Capitalization
connorwinston Sep 20, 2024
c3579fb
Try Fixing Action/Build Again
connorwinston Sep 20, 2024
b7b8287
Change Caps
connorwinston Sep 20, 2024
4d2d84f
Merge branch 'main' into oas-fixed
connorwinston Sep 20, 2024
6741fcb
Converting OAS Json to YAML, creating nested folder structure, adjus…
Oct 6, 2024
3d06b07
Adding all paths to api-spec/index.yaml
Oct 18, 2024
d4bc5ba
fixing malformed paths
Oct 29, 2024
5ad5b6a
Update api-spec/paths/assets/_id/getAsset.yaml
hola-soy-milk Nov 5, 2024
90ede79
Update api-spec/paths/assets/_id/getAsset.yaml
hola-soy-milk Nov 5, 2024
5482b90
Update api-spec/paths/auth/login/login.yaml
hola-soy-milk Nov 5, 2024
c581f65
Update api-spec/paths/auth/login/login.yaml
hola-soy-milk Nov 5, 2024
29501d4
Update api-spec/components/schemas/permissions.yaml
hola-soy-milk Nov 5, 2024
44403a4
Update api-spec/components/schemas/settings.yaml
hola-soy-milk Nov 5, 2024
c56dc76
Update api-spec/components/schemas/settings.yaml
hola-soy-milk Nov 5, 2024
5bbb7bd
Update api-spec/components/schemas/settings.yaml
hola-soy-milk Nov 5, 2024
ffee3a5
Update api-spec/components/schemas/users.yaml
hola-soy-milk Nov 5, 2024
5b46fac
Update api-spec/paths/auth/login/login.yaml
hola-soy-milk Nov 5, 2024
21c833c
Update api-spec/paths/auth/login/login.yaml
hola-soy-milk Nov 5, 2024
7d4ea0a
Update api-spec/paths/auth/logout/logout.yaml
hola-soy-milk Nov 5, 2024
fec1c61
Update api-spec/paths/auth/logout/logout.yaml
hola-soy-milk Nov 5, 2024
73748ed
Update api-spec/paths/auth/oauth/oauth.yaml
hola-soy-milk Nov 5, 2024
a626d55
Update api-spec/paths/auth/oauth/oauth.yaml
hola-soy-milk Nov 5, 2024
74d08a3
Update api-spec/paths/auth/oauth/_provider/oauthProvider.yaml
hola-soy-milk Nov 5, 2024
408aec0
Update api-spec/paths/auth/oauth/_provider/oauthProvider.yaml
hola-soy-milk Nov 5, 2024
59ccbde
Update api-spec/paths/auth/password/request/passwordRequest.yaml
hola-soy-milk Nov 5, 2024
a485c3c
Update api-spec/paths/auth/login/login.yaml
hola-soy-milk Nov 5, 2024
630a070
Update api-spec/paths/utils/cache/clear/clear-cache.yaml
hola-soy-milk Nov 5, 2024
c4a96d9
Update api-spec/paths/utils/export/_collection/export.yaml
hola-soy-milk Nov 5, 2024
058cb88
Update api-spec/paths/utils/export/_collection/export.yaml
hola-soy-milk Nov 5, 2024
906f779
Update api-spec/paths/utils/cache/clear/clear-cache.yaml
hola-soy-milk Nov 5, 2024
b0cfb07
Update api-spec/paths/utils/hash/generate/hash-generate.yaml
hola-soy-milk Nov 5, 2024
404909f
Update api-spec/paths/utils/hash/verify/hash-verify.yaml
hola-soy-milk Nov 5, 2024
52f2635
Update api-spec/paths/utils/sort/_collection/sort.yaml
hola-soy-milk Nov 5, 2024
b6b2672
Update api-spec/paths/utils/export/_collection/export.yaml
hola-soy-milk Nov 5, 2024
8525904
Update api-spec/paths/utils/import/_collection/import.yaml
hola-soy-milk Nov 5, 2024
7faa6c8
Update api-spec/paths/auth/refresh/refresh.yaml
hola-soy-milk Nov 5, 2024
a268ae0
Update api-spec/paths/auth/refresh/refresh.yaml
hola-soy-milk Nov 5, 2024
da257d9
Update api-spec/paths/schema/diff/schemaDiff.yaml
hola-soy-milk Nov 5, 2024
97e695e
Update api-spec/components/parameters.yaml
hola-soy-milk Nov 5, 2024
02abfd1
Update api-spec/paths/server/info/serverInfo.yaml
hola-soy-milk Nov 5, 2024
727fb23
Update api-spec/index.yaml
hola-soy-milk Nov 5, 2024
ca74f1c
Update api-spec/paths/operations/_id/updateOperation.yaml
hola-soy-milk Nov 5, 2024
a5fda09
Update api-spec/paths/versions/getContentVersions.yaml
hola-soy-milk Nov 5, 2024
434623f
Update api-spec/paths/versions/createContentVersion.yaml
hola-soy-milk Nov 5, 2024
d4fd81b
Update api-spec/paths/folders/getFolders.yaml
hola-soy-milk Nov 5, 2024
e21a858
Update api-spec/paths/folders/createFolder.yaml
hola-soy-milk Nov 5, 2024
4daeecb
Update api-spec/paths/folders/_id/getFolder.yaml
hola-soy-milk Nov 5, 2024
ecca66b
Update api-spec/paths/folders/_id/updateFolder.yaml
hola-soy-milk Nov 5, 2024
8638989
Update api-spec/paths/folders/_id/deleteFolder.yaml
hola-soy-milk Nov 5, 2024
95def41
Update api-spec/paths/relations/getRelations.yaml
hola-soy-milk Nov 5, 2024
342e333
Update api-spec/index.yaml
hola-soy-milk Nov 5, 2024
806e3eb
Update api-spec/paths/files/getFiles.yaml
hola-soy-milk Nov 5, 2024
a5dee70
Update api-spec/paths/files/deleteFiles.yaml
hola-soy-milk Nov 5, 2024
ca9d097
Update api-spec/paths/files/_id/getFile.yaml
hola-soy-milk Nov 5, 2024
3ff540c
Update api-spec/paths/files/_id/deleteFile.yaml
hola-soy-milk Nov 5, 2024
383be42
Update api-spec/paths/fields/_collection/_id/deleteField.yaml
hola-soy-milk Nov 5, 2024
29ed94c
Update api-spec/paths/operations/getOperations.yaml
hola-soy-milk Nov 5, 2024
081be53
Update api-spec/paths/operations/_id/getOperation.yaml
hola-soy-milk Nov 5, 2024
ca91e37
Update api-spec/components/schemas/flows.yaml
hola-soy-milk Nov 5, 2024
f87bd06
Update api-spec/paths/versions/_id/promote/promoteContentVersion.yaml
hola-soy-milk Nov 5, 2024
4f21f33
Update api-spec/paths/revisions/_id/getRevision.yaml
hola-soy-milk Nov 5, 2024
7205e6e
Update api-spec/index.yaml
hola-soy-milk Nov 5, 2024
874f373
Update api-spec/paths/users/getUsers.yaml
hola-soy-milk Nov 5, 2024
86ea1b9
Update api-spec/paths/users/_id/getUser.yaml
hola-soy-milk Nov 5, 2024
7915f8e
Update api-spec/paths/users/invite/accept/acceptInvite.yaml
hola-soy-milk Nov 5, 2024
0bae303
Update api-spec/paths/users/me/tfa/disable/meTfaDisable.yaml
hola-soy-milk Nov 5, 2024
58a1bfd
Update api-spec/paths/permissions/createPermission.yaml
hola-soy-milk Nov 5, 2024
3171f3b
Update api-spec/paths/permissions/createPermission.yaml
hola-soy-milk Nov 5, 2024
e8c8604
Update api-spec/paths/permissions/updatePermissions.yaml
hola-soy-milk Nov 5, 2024
c0b67f2
Update api-spec/paths/permissions/_id/updatePermission.yaml
hola-soy-milk Nov 5, 2024
85899cc
Update api-spec/paths/collections/_id/updateCollection.yaml
hola-soy-milk Nov 5, 2024
1dfb1bf
Update api-spec/paths/flows/_id/updateFlow.yaml
hola-soy-milk Nov 5, 2024
caec869
Update api-spec/paths/presets/getPresets.yaml
hola-soy-milk Nov 5, 2024
0467fa0
Update api-spec/components/schemas/activity.yaml
hola-soy-milk Nov 5, 2024
7cb4b81
Update api-spec/paths/permissions/getPermissions.yaml
hola-soy-milk Nov 5, 2024
770072d
Making all code snippet urls directus_project_url instead of directus…
Nov 12, 2024
14e34ef
Added more missing endpoints and small fixes
Nov 24, 2024
423206c
some more endpoints and fixes
Dec 4, 2024
b9b84ed
last of the endpoints
Dec 4, 2024
8c8197d
Fixes, primarily schema files
Dec 4, 2024
903e5c9
removed single create endpoints to endforce restfulness, removed webh…
Dec 5, 2024
2b37400
added missing parameters, requestBody and Responses
Dec 5, 2024
d6aaea7
some more missing responses
Dec 5, 2024
813122e
Add missing 204 responses
hola-soy-milk Dec 6, 2024
4257cd7
Fix running errors
hola-soy-milk Dec 6, 2024
ac977e8
fixed security oas issue
Dec 6, 2024
d8c59e7
Fix linting errors
hola-soy-milk Dec 9, 2024
6f5759f
Fix auth params
hola-soy-milk Dec 9, 2024
e5a41f4
Fix code samples/descriptions
hola-soy-milk Dec 9, 2024
2db0b7e
Fix server spec
hola-soy-milk Dec 9, 2024
8434621
Mark params as required
hola-soy-milk Dec 10, 2024
c5cce76
Add description
hola-soy-milk Dec 10, 2024
0e3e78a
Update required fields
hola-soy-milk Dec 10, 2024
0e0e1b2
Fix operation params
hola-soy-milk Dec 10, 2024
bb8e7e5
Fix content version params
hola-soy-milk Dec 10, 2024
6bbbf32
Fix user params
hola-soy-milk Dec 10, 2024
4bf9f96
Rename action
hola-soy-milk Dec 11, 2024
74e7f02
Update descriptions
hola-soy-milk Dec 11, 2024
4fd7d6a
Fix permission params
hola-soy-milk Dec 11, 2024
c958d4a
Fix missing info
hola-soy-milk Dec 11, 2024
94aaf0f
Remove capitalisation
hola-soy-milk Dec 11, 2024
d3f1cd7
Improve collection spec
hola-soy-milk Dec 11, 2024
698763a
Fix flow endpoints
hola-soy-milk Dec 12, 2024
63c0ca0
Add missing required params
hola-soy-milk Dec 12, 2024
bf19634
Fix role params
hola-soy-milk Dec 12, 2024
ec8f4a3
items, dashboards
hola-soy-milk Dec 12, 2024
16ac40a
Update notifications
hola-soy-milk Dec 12, 2024
0ca73a3
Fix panel spec
hola-soy-milk Dec 12, 2024
217f0a0
Policy reference fixes
hola-soy-milk Dec 12, 2024
fcf70b9
Fix delete params
hola-soy-milk Dec 12, 2024
f300924
Fix shares params
hola-soy-milk Dec 12, 2024
9085628
Fix translations
hola-soy-milk Dec 12, 2024
96e243e
Remove models
hola-soy-milk Dec 12, 2024
af18a51
Add missing descriptions, consolidate
hola-soy-milk Dec 12, 2024
3f04809
Add revisions text
hola-soy-milk Dec 13, 2024
55b5ce5
Fix big with schema duplication
hola-soy-milk Dec 13, 2024
cd7278b
Integrate comments
hola-soy-milk Dec 13, 2024
8370b98
Fix linting errors
hola-soy-milk Dec 13, 2024
4210c9f
Merge branch 'main' into oas-fixed
hola-soy-milk Dec 13, 2024
1ed52cb
Merge branch 'main' into oas-fixed
phazonoverload Dec 16, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
110 changes: 110 additions & 0 deletions api-spec/components/parameters.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
Id:
description: Index
name: id
in: path
required: true
schema:
type: integer
UUId:
description: Unique identifier for the object.
name: id
in: path
required: true
schema:
example: 8cbb43fe-4cdf-4991-8352-c461779cec02
type: string
Collection:
description: Collection of which you want to retrieve the items from.
name: collection
in: path
required: true
schema:
type: string
Search:
description: Filter by items that contain the given search query in one of their fields.
in: query
name: search
required: false
schema:
type: string
Page:
description: Cursor for use in pagination. Often used in combination with limit.
in: query
name: page
required: false
schema:
type: integer
Offset:
description: How many items to skip when fetching data.
in: query
name: offset
required: false
schema:
type: integer
Sort:
description: >-
How to sort the returned items. `sort` is a CSV of fields used to sort the fetched items. Sorting defaults to ascending (ASC) order but a minus sign (` - `) can be used to reverse this to descending (DESC) order. Fields are prioritized by their order in the CSV. You can also use a ` ? ` to sort randomly.
in: query
name: sort
required: false
explode: false
schema:
type: array
items:
type: string
Meta:
description: What metadata to return in the response.
in: query
name: meta
required: false
schema:
type: string
Limit:
description: A limit on the number of objects that are returned.
in: query
name: limit
required: false
schema:
type: integer
Filter:
description: Select items in collection by given conditions.
in: query
name: filter
required: false
content:
application/json:
schema:
type: object
example:
<field>:
<operator>: <value>
Fields:
description: Control what fields are being returned in the object.
in: query
name: fields
required: false
explode: false
schema:
type: array
items:
type: string
Export:
name: export
description: Saves the API response to a file. Accepts one of "csv", "json", "xml", "yaml".
in: query
required: false
schema:
type: string
enum:
- csv
- json
- xml
- yaml
Version:
name: version
description: >-
Retrieve an item's state from a specific Content Version. The value corresponds to the "key" of the Content Version.
in: query
required: false
schema:
type: string
30 changes: 30 additions & 0 deletions api-spec/components/responses.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
NotFoundError:
description: "Error: Not found."
content:
application/json:
schema:
type: object
properties:
error:
type: object
properties:
code:
type: integer
format: int64
message:
type: string
UnauthorizedError:
description: "Error: Unauthorized request"
content:
application/json:
schema:
type: object
properties:
error:
type: object
properties:
code:
type: integer
format: int64
message:
type: string
43 changes: 43 additions & 0 deletions api-spec/components/schemas/_index.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
Diff:
$ref: diff.yaml
Query:
$ref: query.yaml
Schema:
$ref: schema.yaml
x-metadata:
$ref: x-metadata.yaml

Activity:
$ref: activity.yaml
Collections:
$ref: collections.yaml
Extensions:
$ref: extensions.yaml
Fields:
$ref: fields.yaml
Files:
$ref: files.yaml
Flows:
$ref: flows.yaml
Folders:
$ref: folders.yaml
Operations:
$ref: operations.yaml
Permissions:
$ref: permissions.yaml
Presets:
$ref: presets.yaml
Relations:
$ref: relations.yaml
Revisions:
$ref: revisions.yaml
Roles:
$ref: roles.yaml
Settings:
$ref: settings.yaml
Users:
$ref: users.yaml
Versions:
$ref: versions.yaml
Webhooks:
$ref: webhooks.yaml
62 changes: 62 additions & 0 deletions api-spec/components/schemas/activity.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
type: object
properties:
id:
description: Unique identifier for the object.
example: 2
type: integer
action:
description: Action that was performed.
example: update
type: string
enum:
- create
- update
- delete
- login
user:
description: The user who performed this action.
oneOf:
- type: string
- $ref: users.yaml
nullable: true
timestamp:
description: When the action happened.
example: '2019-12-05T22:52:09Z'
type: string
format: date-time
ip:
description: The IP address of the user at the time the action took place.
example: 127.0.0.1
oneOf:
- type: string
format: ipv4
user_agent:
description: User agent string of the browser the user used when the action took place.
example: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_1) AppleWebKit/537.36 (KHTML,like Gecko) Chrome/78.0.3904.108 Safari/537.36
type: string
collection:
description: Collection identifier in which the item resides.
oneOf:
- type: string
- $ref: collections.yaml
item:
description: Unique identifier for the item the action applied to. This is always a string, even for integer primary keys.
example: '328'
type: string
comment:
description: User comment. This will store the comments that show up in the right sidebar of the item edit page in the admin app.
example: null
type: string
nullable: true
origin:
description: Origin of the request when the action took place.
example: https://directus.io
type: string
revisions:
nullable: true
type: array
items:
oneOf:
- type: integer
- $ref: revisions.yaml
x-collection: directus_activity
64 changes: 64 additions & 0 deletions api-spec/components/schemas/collections.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
type: object
properties:
collection:
description: The collection key.
example: customers
type: string
icon:
nullable: true
type: string
note:
nullable: true
type: string
display_template:
nullable: true
type: string
hidden:
nullable: false
type: boolean
singleton:
nullable: false
type: boolean
translations:
nullable: true
archive_field:
nullable: true
type: string
archive_app_filter:
nullable: false
type: boolean
archive_value:
nullable: true
type: string
unarchive_value:
nullable: true
type: string
sort_field:
nullable: true
type: string
accountability:
nullable: true
type: string
color:
nullable: true
type: string
item_duplication_fields:
nullable: true
sort:
nullable: true
type: integer
group:
nullable: true
oneOf:
- type: string
- $ref: collections.yaml
collapse:
nullable: false
type: string
preview_url:
nullable: true
type: string
versioning:
nullable: false
type: boolean
x-collection: directus_collections
46 changes: 46 additions & 0 deletions api-spec/components/schemas/diff.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
type: object
properties:
hash:
type: string
diff:
type: object
properties:
collections:
type: array
items:
type: object
properties:
collection:
type: string
diff:
type: array
items:
type: object
fields:
type: array
items:
type: object
properties:
collection:
type: string
field:
type: string
diff:
type: array
items:
type: object
relations:
type: array
items:
type: object
properties:
collection:
type: string
field:
type: string
related_collection:
type: string
diff:
type: array
items:
type: object
21 changes: 21 additions & 0 deletions api-spec/components/schemas/extensions.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
type: object
properties:
enabled:
nullable: false
type: boolean
id:
nullable: false
type: string
format: uuid
folder:
nullable: false
type: string
source:
nullable: false
type: string
bundle:
description: Name of the bundle the extension is in.
example: my-bundle
type: string
nullable: true
x-collection: directus_extensions
Loading