https://github.com/akihokurino/works-server
invoice app. create by rust and actix-web, graphql. create supplier and create invoices in every month. can delete invoice if need. authenticate by firebase.
https://github.com/akihokurino/works-server
actix-web cloud-sql cloudbuild dataloader diesel firebase-auth gcp gke graphql juniper juniper-from-schema k8s rust
Last synced: about 1 month ago
JSON representation
invoice app. create by rust and actix-web, graphql. create supplier and create invoices in every month. can delete invoice if need. authenticate by firebase.
- Host: GitHub
- URL: https://github.com/akihokurino/works-server
- Owner: akihokurino
- Created: 2021-07-14T08:44:28.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-05-04T05:50:47.000Z (about 3 years ago)
- Last Synced: 2025-02-01T13:21:30.344Z (over 1 year ago)
- Topics: actix-web, cloud-sql, cloudbuild, dataloader, diesel, firebase-auth, gcp, gke, graphql, juniper, juniper-from-schema, k8s, rust
- Language: Rust
- Homepage:
- Size: 7.23 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Used, Dependency
- rust 1.53.0
- juniper( https://github.com/graphql-rust/juniper )
- juniper from schema( https://github.com/davidpdrsn/juniper-from-schema )
- dataloader( https://github.com/cksac/dataloader-rs )
- diesel( https://github.com/diesel-rs/diesel )
- k8s
- cloud sql
- firebase auth
- misoca api

## Misoca API
```
https://app.misoca.jp/oauth2/authorize?client_id=jGKRHV2hW_t4kn0w4Ma1Jxo_XkZxUA37rqFPRiYT61k&redirect_uri=https://works-prod.web.app&response_type=code&scope=write
curl --location --request POST 'https://app.misoca.jp/oauth2/token' \
--header 'Content-Type: application/json' \
--data '{
"client_id": "jGKRHV2hW_t4kn0w4Ma1Jxo_XkZxUA37rqFPRiYT61k",
"client_secret": "",
"redirect_uri": "https://works-prod.web.app",
"grant_type": "authorization_code",
"code": ""
}'
curl --location --request POST 'https://app.misoca.jp/oauth2/token' \
--header 'Content-Type: application/json' \
--data '{
"client_id": "jGKRHV2hW_t4kn0w4Ma1Jxo_XkZxUA37rqFPRiYT61k",
"client_secret": "",
"redirect_uri": "https://works-prod.web.app",
"grant_type": "refresh_token",
"refresh_token": "MGFqzUdlBRWl-WmyfevZcctHiSTkT-SAmlQty4EUBLs"
}'
curl --location --request GET 'https://app.misoca.jp/api/v3/contacts' \
--header 'Content-Type: application/json' \
--header 'Authorization: bearer '
curl --location --request GET 'https://app.misoca.jp/api/v3/invoices' \
--header 'Content-Type: application/json' \
--header 'Authorization: bearer '
curl --location --request POST 'https://app.misoca.jp/api/v3/invoice' \
--header 'Content-Type: application/json' \
--header 'Authorization: bearer ' \
--data '{
"issue_date":"2021-08-01",
"subject":"システム開発委託 (8月分)",
"payment_due_on":"2021-08-31",
"contact_id":2200514,
"items":[{
"name":"システム開発委託",
"quantity":1,
"unit_price":200000,
"tax_type":"STANDARD_TAX_10"
}]
}'
```