Forum Discussion

Inactive User's avatar
Inactive User
8 years ago

REST API V1 get a list of items?

New to V1. What's the proper way to get, for example, a list of boards, or a list of users, or what have you? 

 

In V2 / LiQL, it'd be SELECT id FROM boards (for example)

 

http://community.mysite.com/restapi/vc/boards/      // doesn't work, just shows one (discussions)

5 Replies

  • DougS's avatar
    DougS
    Khoros Oracle
    8 years ago

    I would recommend sticking with v2 (unless there is something in v1 that v2 doesn't support) , but v1 has a boards/nested call to get all the boards in the community (the /boards call just returns the boards that are directly under the node you are in -- so /categories/id/[:categoryId]/boards would return just the boards that are directly under the given category).

     

    Just curious (so we can improve upon v2), why do you want to use the v1 /boards call instead of using a v2 LiQL query? Is there a field or fields you need that is missing in v2 that v1 has?

     

    -Doug

  • Inactive User's avatar
    Inactive User
    8 years ago

    DougS

    Thanks for the response (pun intended).

     

    I was mostly just curious. :smileyhappy:

  • Inactive User's avatar
    Inactive User
    8 years ago
    DougS While we're here, can you give me any insight on the real world use of visibility_scope in V1 to get draft messages only? i.e., how would I use this to get all say, blog posts, that are draft status?
  • Inactive User's avatar
    Inactive User
    7 years ago

    DougS hadn't heard back from you on this, asking again :)

     

    Can you give me any insight on the real world use of visibility_scope in V1 to get draft messages only? i.e., how would I use this to get all say, blog posts, that are draft status?

  • DougS's avatar
    DougS
    Khoros Oracle
    7 years ago

    I don't think there is currently a way to get draft blog messages via the API.