Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yannick-cw/contenful-scala
Providing scala binding for contentful
https://github.com/yannick-cw/contenful-scala
Last synced: about 1 month ago
JSON representation
Providing scala binding for contentful
- Host: GitHub
- URL: https://github.com/yannick-cw/contenful-scala
- Owner: yannick-cw
- Created: 2019-02-13T17:49:47.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-02-15T15:14:24.000Z (almost 6 years ago)
- Last Synced: 2024-03-15T16:12:10.221Z (10 months ago)
- Language: Scala
- Size: 14.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# contentful-scala
# Generic CMAEntry reader
```scala
import com.contentful.java.cma.model.CMAEntry
import io.yannick_cw.contenful.parser.MetaInfo._
import io.yannick_cw.contenful.parser.syntax._
import io.yannick_cw.contenful.parser.auto._case class Person(
name: String,
age: Int,
more: Option[String],
results: List[Int],
// meta-info
createdAt: CreatedAt,
updatedAt: Option[UpdatedAt],
firstPublishedAt: Option[FirstPublishedAt],
publishedAt: Option[PublishedAt],
status: Status
)val entry: CmaEntry = ???
println(entry.as[Person])
```