Intégration avec CI/CD
Apprenez comment automatiser la mise à jour de votre spécification OpenAPI dans GitBook
Télécharger un fichier de spécification
# Définissez votre jeton API GitBook comme variable d’environnement
export GITBOOK_TOKEN=<api-token>
gitbook openapi publish \
--spec spec_name \
--organization organization_id \
example.openapi.yamlDéfinir une nouvelle URL source ou déclencher une actualisation
# Définissez votre jeton API GitBook comme variable d’environnement
export GITBOOK_TOKEN=<api-token>
gitbook openapi publish \
--spec spec_name \
--organization organization_id \
https://api.example.com/openapi.yamlMettre à jour votre spec avec GitHub Actions
Mis à jour
Ce contenu vous a-t-il été utile ?