You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+32-9Lines changed: 32 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,3 @@
1
-
2
1
# **Ruby SDK for Contentstack**
3
2
4
3
Contentstack is a headless CMS with an API-first approach. It is a CMS that developers can use to build powerful cross-platform applications in their favorite languages. Build your application frontend, and Contentstack will take care of the rest. [Read More](https://www.contentstack.com/).
@@ -22,16 +21,13 @@ Or you can run this command in your terminal (you might need administrator privi
22
21
To start using the SDK in your application, you will need to initialize the stack by providing the values for the keys given in the code snippet below.
To get the API credentials mentioned above, log in to your Contentstack account and then in your top panel navigation, go to Settings > Stack to view the API Key and Access Token.
67
63
@@ -75,12 +71,39 @@ To fetch a specific entry from a content type, use the following query:
> Note: Currently, the above query works in case of retrieving localized versions of multiple entries only.
89
+
78
90
## **Advanced Queries**
79
91
80
92
You can query for content types, entries, assets and more using our Ruby API Reference.
81
93
82
94
[Ruby API Reference Doc](http://www.rubydoc.info/gems/contentstack)
83
95
96
+
### Paginating Responses
97
+
In a single instance, the [Get Multiple Entries](https://www.contentstack.com/docs/developers/ruby/get-started-with-ruby-sdk/#get-multiple-entries) query will retrieve only the first 100 items of the specified content type. You can paginate and retrieve the rest of the items in batches using the [skip](https://www.rubydoc.info/gems/contentstack/Contentstack/Query#skip-instance_method) and [limit](https://www.rubydoc.info/gems/contentstack/Contentstack/Query#limit-instance_method) parameters in subsequent requests.
> Note: Currently, the Ruby SDK does not support multiple content types referencing in a single query. For more information on how to query entries and assets, refer the Queries section of our Content Delivery API documentation.
106
+
84
107
## **Working with Images**
85
108
86
109
We have introduced Image Delivery APIs that let you retrieve images and then manipulate and optimize them for your digital properties. It lets you perform a host of other actions such as crop, trim, resize, rotate, overlay, and so on.
0 commit comments