Giter Site home page Giter Site logo

contentstack / contentstack-openapi Goto Github PK

View Code? Open in Web Editor NEW
3.0 14.0 1.0 84 KB

Contentstack provides OpenAPI JSON files for its Content Delivery and Content Management REST APIs. They are a set of preconfigured requests that will make it easy for you to automatically generate the API documentation and try out our API requests using Swagger Editor.

License: MIT License

contentstack api openapi swagger cda cma

contentstack-openapi's Introduction


Contentstack provides OpenAPI files for its Content Delivery and Content Management REST APIs. These files are in JSON format. Using these JSON files, you can automatically generate API documentation, test API, and do a lot more.

This tutorial will walk you through the process of using Contentstack APIs (Content Delivery and Content Management APIs) with Swagger.


Content Delivery API (CDA)

Version: 3.0.0 [Download]

Last Updated: Feb 06, 2023

Note: To use the latest version, download the CDA file on your system.

To use Contentstack Content Delivery API (CDA) with Swagger, perform the following steps:

  1. Download the CDA file and go to the Swagger Editor.
  2. On the “Swagger Editor” page, click on File, and select the Import file option.

Alternatively, if you want to use the Import URL option, you can upload the CDA file as an asset in Contentstack, and then paste the asset’s URL in the prompt.

  1. Open any API request and click on the Try it out button. Clicking this button will unlock the fields, so you can either run the API request on our demo stack or can use your own values.
  2. Click on Execute.

In the Responses section, you can see the following details:

  • API request in CURL format
  • Response body
  • Status code

Content Management API

Version: 3.0.0 [Download]

Last Updated: Feb 06, 2023

Note: To use the latest version, download the CMA file on your system.

To use Contentstack Content Management API (CMA) with Swagger, perform the following steps:

  1. Download the CMA file and go to the Swagger Editor.
  2. On the “Swagger Editor” page, click on File, and select the Import file option.
  3. Alternatively, you can upload the CMA file as an asset in Contentstack. Then, you can use the Import URL option and paste the asset’s URL in the prompt.
  4. To run any API request for CMA, make sure you have either the Management token or Auth token in hand.
    1. To use a management token, refer to the Generate Management token guide.
    2. To use Auth token, run the Login API request, located under the User Session section.
  5. Open any API request and click on the Try it out button. Clicking this button will unlock the fields for you to use your enter the values.
  6. Click Execute.

In the Responses section, you can see the following details:

  • API request in CURL format
  • Response body
  • Status code

Points to note:

  • We recommend using the Management token for executing CMA requests rather than Auth token.
  • For any DELETE request that has a request body in it, you won’t be able to run it in Swagger. In such scenarios, refer to the documentation link provided in the call for more details.

contentstack-openapi's People

Contributors

aravindbuilt avatar contentstack-admin avatar nandeesh-gajula avatar priyadarshankhadtale avatar sunilnadar avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

vgamb1

contentstack-openapi's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.