Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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)