uploadcare-ruby icon indicating copy to clipboard operation
uploadcare-ruby copied to clipboard

Prepare api-refs x-codeExamples for Ruby

Open rsedykh opened this issue 2 years ago • 2 comments

Example — https://github.com/uploadcare/uploadcare-php/tree/master/api-samples.

It will be used in https://uploadcare.com/api-refs/upload-api/ and https://uploadcare.com/api-refs/rest-api/ respectively.

rsedykh avatar Nov 28 '23 14:11 rsedykh

Where are current examples coming in from on these pages- https://uploadcare.com/api-refs/rest-api/v0.7.0/#tag/File/operation/filesList ?

vipulnsward avatar Apr 27 '24 17:04 vipulnsward

They are generated by ReDoc from our OpenAPI specs. I added them manually as the x-codeSamples.

If you can do something like this https://github.com/uploadcare/uploadcare-php/tree/master/api-samples, I'll copy-n-paste them into our private repo.

rsedykh avatar Apr 28 '24 12:04 rsedykh

@rsedykh Added in https://github.com/uploadcare/uploadcare-ruby/pull/169, I will be updating these in follow up as more API changes are being made.

vipulnsward avatar May 11 '24 18:05 vipulnsward

Maybe I'm not looking at the right place, where it's there?

rsedykh avatar May 11 '24 20:05 rsedykh

These are here: https://github.com/uploadcare/uploadcare-ruby/tree/main/api_examples

vipulnsward avatar May 13 '24 15:05 vipulnsward