Code Monkey home page Code Monkey logo

psbookstack's People

Contributors

my-random-thoughts avatar

Stargazers

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

Watchers

 avatar  avatar

psbookstack's Issues

Shelf ID's included in Get-BsBook, Get-BsChapter, and Get-BsPage

Hello,

First, thanks for creating the BookStack PowerShell Module. I think this is a fantastic way to create exports/backups of anyone's BookStack instance.

I'm creating a PowerShell script to export pages into a directory that has the same structure as my BookStack instance. For example, MyPage located in

  • Shelf
    • Book
      • Chapter
        • MyPage

Unfortunately, through the bs cmdlets I can't pull the Shelf information and the best I can do is

  • Book
    • Chapter
      • MyPage

Is it possible to add the Shelf ID to the Get-BsBook, Get-BsChapter, and Get-BsPage cmdlets or am I missing something?

Example of a Get-BsBook

id          : 2
name        : Book
slug        : book
description :
created_at  : 2023-06-25T02:56:56.000000Z
updated_at  : 2023-06-25T02:56:56.000000Z
created_by  : 1
updated_by  : 1
owned_by    : 1

Exmple of a Get-BsChapter

id          : 1
book_id     : 2
slug        : chapter
name        : Chapter
description :
priority    : 3
created_at  : 2023-06-25T02:57:29.000000Z
updated_at  : 2023-07-14T11:29:01.000000Z
created_by  : 1
updated_by  : 1
owned_by    : 1
book_slug   : home-lab

Example of a Get-BsPage

id             : 2
book_id        : 2
chapter_id     : 1
name           : Page
slug           : page
priority       : 3
created_at     : 2023-06-25T02:57:37.000000Z
updated_at     : 2023-07-14T11:28:45.000000Z
created_by     : 1
updated_by     : 1
draft          : False
revision_count : 1
template       : False
owned_by       : 1
editor         :
book_slug      : home-lab

Thanks for any help/advice!

-a70coupe

Connecting to bookstack instance

Hi,

I'm new to power shell and I'm trying to get your module to run however when I enter the 'Connect-BookStackAPI -Url '' -Credential ' command with my domain name inserted, I get:

At line:1 char:62

  • ... onnect-BookStackAPI -Url 'xxxx.xxxxxxxxxx.xxx' -Credential <PSCreden ...
  •                                                             ~
    

The '<' operator is reserved for future use.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : RedirectionNotSupported

Do I need to replace PSCredential with a value?

Thank you,
Andrew.

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.