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

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.

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

スクリーンショット 2021-11-03 23 22 05

## 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"
}]
}'
```