How do I expose a collection via REST for CRUD operation from 3rd party app?

I have a Wix collection named ‘myData’ I want to be able to perform CRUD operation against this collection from my 3rd party mobile app? How do I espouse the collection for REST access? Do I need to create a separate http function for each of the CRUD operations, or can I create a main module with all four functionality in it?

Anyone has sample code I can see? I want to see how to:

  1. add new user profile data to the collection

  2. update/delete/ any of the user’s profile records

  3. update/delete multiple user records from the collectiuon at the same time

Bonus: can I save and retrieve geopoint type data into the collection?

Thanks

Michael

See this example to get you started:

Expose and Access Site APIs
Use MyApi and MyApiClient to expose and access external APIs.

What I meant to ask was: How do I expose my Wix collection via rest so that I can access from a 3rd party app; outside Wix? For example, from my AngulaJS app, I want to perform CRUD operations against my Wix’ collection. What code/functions do I use?

Would all the CRUD login be part of a single http-functions.js file, or will I have to create one of these files for each CRUD operation?

Thanks

You access your Wix collections by exposing an API as demonstrated in the example that I linked to . See the article Corvid: Exposing a Site API with HTTP Functions for more information about exposing an API in Wix.