Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zztkm/microcms-v-sdk
microCMS sdk for v
https://github.com/zztkm/microcms-v-sdk
microcms
Last synced: 10 days ago
JSON representation
microCMS sdk for v
- Host: GitHub
- URL: https://github.com/zztkm/microcms-v-sdk
- Owner: zztkm
- License: mit
- Created: 2022-09-27T00:48:38.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-10-16T08:55:29.000Z (about 2 years ago)
- Last Synced: 2024-12-20T23:29:51.590Z (14 days ago)
- Topics: microcms
- Language: V
- Homepage: https://zztkm.github.io/microcms-v-sdk/
- Size: 27.3 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# microCMS sdk for v
[microCMS](https://microcms.io/) sdk for v language.
repo: https://github.com/zztkm/microcms-v-sdk
## Installation and Import
### Using vpm
Install / Update module:
```shell
v install zztkm.microcms
```Import
```v
import zztkm.microcms
```### Directly from GitHub
```shell
v install --git https://github.com/zztkm/microcms-v-sdk
```## Usage
TODO: 使い方をがんばって記載する
NOTE
Until the following bugs are fixed, please be careful with structure definitions during create and update.
Zero values are also included in Body.
- `[omitempty]` for strings causes compilation error
- https://github.com/vlang/v/issues/12570## APIs
Content API
- [x] [GET /api/v1/{endpoint}](https://document.microcms.io/content-api/get-list-contents)
- [x] [GET /api/v1/{endpoint}/{content_id}](https://document.microcms.io/content-api/get-content)
- [x] [POST /api/v1/{endpoint}](https://document.microcms.io/content-api/post-content)
- [x] [PUT /api/v1/{endpoint}/{content_id}](https://document.microcms.io/content-api/put-content)
- [x] [PATCH /api/v1/{endpoint}/{content_id}](https://document.microcms.io/content-api/patch-content)
- [x] [DELETE /api/v1/{endpoint}/{content_id}](https://document.microcms.io/content-api/delete-content)Management API
- [ ] [GET /api/v1/contents/{endpoint}](https://document.microcms.io/management-api/get-list-contents-management)
- [ ] [GET /api/v1/contents/{endpoint}/{content_id}](https://document.microcms.io/management-api/get-content)
- [ ] [PATCH /api/v1/contents/{endpoint}/{content_id}/status](https://document.microcms.io/management-api/patch-contents-status)
- [ ] [GET /api/v1/media](https://document.microcms.io/management-api/get-media)