https://github.com/codingki/sehatnegeriku-graphql
Graphql server for Sehat Negeriku app
https://github.com/codingki/sehatnegeriku-graphql
Last synced: 11 months ago
JSON representation
Graphql server for Sehat Negeriku app
- Host: GitHub
- URL: https://github.com/codingki/sehatnegeriku-graphql
- Owner: codingki
- Created: 2020-09-10T10:11:06.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-09-16T05:54:39.000Z (over 5 years ago)
- Last Synced: 2025-01-05T02:12:11.313Z (about 1 year ago)
- Language: JavaScript
- Homepage: https://play.google.com/store/apps/details?id=com.kikiding.sehatnegerikurebuild
- Size: 20.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Graphql server for "Sehat Negeriku"
I used graphql to get the data from the API endpoint. Beacause the data I got, some of them are unnecessary so I think its better to use graphql on this project.
### API endpoint that I used :
- get recent posts
[http://sehatnegeriku.kemkes.go.id/api/get_recent_posts/?count=${args.count}&page=${args.page}](http://sehatnegeriku.kemkes.go.id/api/get_recent_posts/?count=$%7Bargs.count%7D&page=$%7Bargs.page%7D)
- get category posts
[http://sehatnegeriku.kemkes.go.id/api/get_category_posts/?category_slug=${args.slug}&count=${args.count}&page=${args.page}](http://sehatnegeriku.kemkes.go.id/api/get_category_posts/?category_slug=$%7Bargs.slug%7D&count=$%7Bargs.count%7D&page=$%7Bargs.page%7D)
- get post detail
[http://sehatnegeriku.kemkes.go.id/api/get_post/?post_id=${args.id}](http://sehatnegeriku.kemkes.go.id/api/get_post/?post_id=$%7Bargs.id%7D)
- search
[http://sehatnegeriku.kemkes.go.id/api/get_search_results/?search=${args.search}&count=${args.count}&page=${args.page}/](http://sehatnegeriku.kemkes.go.id/api/get_search_results/?search=$%7Bargs.search%7D&count=$%7Bargs.count%7D&page=$%7Bargs.page%7D/)
### Category slug :
- rilis-media
- blog
- infografis
- daerah
- video
- foto
Try this graphiql playground : [https://obscure-ridge-07773.herokuapp.com/graphql](https://obscure-ridge-07773.herokuapp.com/graphql)