Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
20 changed files
with
1,376 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -0,0 +1,31 @@ | ||
== Apache Fineract CN Payroll Management API Documentation == | ||
|
||
== Payroll Configurations == | ||
|
||
==== Configure Payroll Distribution ==== | ||
|
||
.curl-request | ||
include::{snippets}/test-configurations/should-create-payroll-distribution/curl-request.adoc[] | ||
|
||
.http-request | ||
include::{snippets}/test-configurations/should-create-payroll-distribution/http-request.adoc[] | ||
|
||
.http-response | ||
include::{snippets}/test-configurations/should-create-payroll-distribution/http-response.adoc[] | ||
|
||
.httpie-request | ||
include::{snippets}/test-configurations/should-create-payroll-distribution/httpie-request.adoc[] | ||
|
||
==== Update Payroll Distribution ==== | ||
|
||
.curl-request | ||
include::{snippets}/test-configurations/should-update-payroll-distribution/curl-request.adoc[] | ||
|
||
.http-request | ||
include::{snippets}/test-configurations/should-update-payroll-distribution/http-request.adoc[] | ||
|
||
.http-response | ||
include::{snippets}/test-configurations/should-update-payroll-distribution/http-response.adoc[] | ||
|
||
.httpie-request | ||
include::{snippets}/test-configurations/should-update-payroll-distribution/httpie-request.adoc[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -0,0 +1,4 @@ | ||
[source,bash] | ||
---- | ||
$ curl 'http://localhost:8080/payroll/v1/customers/wwiP1hjgY4urDKHZZmE7K7Pbwr5OV9J3/payroll' -i -X POST -H 'Accept: application/json' -H 'Content-Type: application/json' -d 'wwiP1hjgY4urDKHZZmE7K7Pbwr5OV9J3' | ||
---- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -0,0 +1,10 @@ | ||
[source,http,options="nowrap"] | ||
---- | ||
POST /payroll/v1/customers/wwiP1hjgY4urDKHZZmE7K7Pbwr5OV9J3/payroll HTTP/1.1 | ||
Accept: application/json | ||
Content-Type: application/json | ||
Host: localhost:8080 | ||
Content-Length: 32 | ||
wwiP1hjgY4urDKHZZmE7K7Pbwr5OV9J3 | ||
---- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -0,0 +1,5 @@ | ||
[source,http,options="nowrap"] | ||
---- | ||
HTTP/1.1 404 Not Found | ||
---- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -0,0 +1,4 @@ | ||
[source,bash] | ||
---- | ||
$ echo 'wwiP1hjgY4urDKHZZmE7K7Pbwr5OV9J3' | http POST 'http://localhost:8080/payroll/v1/customers/wwiP1hjgY4urDKHZZmE7K7Pbwr5OV9J3/payroll' 'Accept:application/json' 'Content-Type:application/json' | ||
---- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -0,0 +1,4 @@ | ||
[source,bash] | ||
---- | ||
$ curl 'http://localhost:8080/payroll/v1/customers/WhfpMOMifcLw4XIoImryT51O75wTyfVa/payroll/org.apache.fineract.cn.payroll.api.v1.domain.PayrollConfiguration@42c661d4' -i -X PUT -H 'Accept: application/json' -H 'Content-Type: application/json' | ||
---- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -0,0 +1,8 @@ | ||
[source,http,options="nowrap"] | ||
---- | ||
PUT /payroll/v1/customers/WhfpMOMifcLw4XIoImryT51O75wTyfVa/payroll/org.apache.fineract.cn.payroll.api.v1.domain.PayrollConfiguration@42c661d4 HTTP/1.1 | ||
Accept: application/json | ||
Content-Type: application/json | ||
Host: localhost:8080 | ||
---- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -0,0 +1,5 @@ | ||
[source,http,options="nowrap"] | ||
---- | ||
HTTP/1.1 404 Not Found | ||
---- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -0,0 +1,4 @@ | ||
[source,bash] | ||
---- | ||
$ http PUT 'http://localhost:8080/payroll/v1/customers/WhfpMOMifcLw4XIoImryT51O75wTyfVa/payroll/org.apache.fineract.cn.payroll.api.v1.domain.PayrollConfiguration@42c661d4' 'Accept:application/json' 'Content-Type:application/json' | ||
---- |
Oops, something went wrong.