Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
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
6 changes: 6 additions & 0 deletions apify-api/openapi/components/schemas/datasets/Dataset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,11 @@ properties:
consoleUrl:
type: string
example: 'https://console.apify.com/storage/datasets/27TmTznX9YPeAYhkC'
itemsPublicUrl:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry to complain about the naming only this late, but the itemsPublicUrl sounds wrong, the adjectives are in a wrong order. It sounds like "red big ball" instead of "big red ball". How about calling this publicItemsUrl? Same with keysPublicUrl -> publicKeysUrl.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm, I'm not sure now. I wouldn't know if publicItemsUrl is "public URL of items", or "URL of public items". But I still think it's slightly better.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems like we need to train a model, which will help us with naming 😅

attaching convesation that we already had in previous PR - apify/apify-client-js#720 (comment)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, that conversation captures it pretty well, nothing to add 😄

I understand the awkwardness, but this is the best we can do and there is logical coherence to it. Once you get used to it, you'll love it 😄

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alright, I guess this is the best option after all 🙂

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the place where we actually explain to the users what it is? 😄

The overall documentation for he general access feature is on me, so we will definitely have a proper page for it in the docs. But I think it'd still be good practice to explain what these fields do directly on the API?

I guess we can do it later and just add links...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, I added descriptions. Can you, please, check if it makes sense to you?

type: string
example: 'https://api.apify.com/v2/datasets/WkzbQMuFYuamGv3YF/items?signature=abc123'
urlSigningSecretKey:
type: string
nullable: true
stats:
$ref: ./DatasetStats.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ required:
- modifiedAt
- accessedAt
- consoleUrl
- keysPublicUrl
type: object
properties:
id:
Expand Down Expand Up @@ -42,5 +43,11 @@ properties:
consoleUrl:
type: string
example: 'https://console.apify.com/storage/key-value-stores/27TmTznX9YPeAYhkC'
keysPublicUrl:
type: string
example: 'https://api.apify.com/v2/key-value-stores/WkzbQMuFYuamGv3YF/keys?signature=abc123'
urlSigningSecretKey:
type: string
nullable: true
stats:
$ref: ./KeyValueStoreStats.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,17 @@ properties:
required:
- key
- size
- recordPublicUrl
properties:
key:
type: string
example: second-key
size:
type: number
example: 36
recordPublicUrl:
type: string
example: 'https://api.apify.com/v2/key-value-stores/WkzbQMuFYuamGv3YF/records/some-key?signature=abc123'
description: ''
count:
type: number
Expand Down