Skip to content

Commit

Permalink
Merge pull request #364 from openkfw/update-postman-collection
Browse files Browse the repository at this point in the history
update postman collection and environment
  • Loading branch information
Stezido authored Jul 31, 2019
2 parents 0c3203c + 4eb77fc commit 7980cb1
Show file tree
Hide file tree
Showing 4 changed files with 1,162 additions and 96 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- Organizations and currencies for projected budgets of subprojects can only be selected from values of the parent project [#228](https://github.com/openkfw/TruBudget/issues/228)
- Global permissions can only be granted/revoked to/from users within the same organizations [#340](https://github.com/openkfw/TruBudget/issues/340)
- Don't display edit/permission/close button if the user does not have the permissions for the action [#235](https://github.com/openkfw/TruBudget/issues/235)
- Updated postman collection including a postman environment[#199](https://github.com/openkfw/TruBudget/issues/199)

<!-- ### Deprecated -->

Expand Down
27 changes: 27 additions & 0 deletions api/postman/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# TruBudget

## Postman

Once you have Postman up and running you will need these two files to set it up.

* TruBudget.postman_collection.json

* TruBudget.postman_environment.json



### Environment

Environments in postman are a couple of variables and variable values that can be used in a command. To import the environment click on "Settings" in the upper right corner right next to the eye. Click the import-button, select the file in the dialog box and you are done! You can see all the environment variables by clicking the eye-icon in the upper right corner.

### Collection

A collection generally lets you organize requests by creating folders and grouping them together. In the collection you can find all of the API's endpoints and additionally a "RunnerScripts"-folder. To import the collection click on import in the upper left corner and drag the file into the dialog box.
The TruBudget-collection should have appeared on the left side. Click to expand and view requests.

If you want to create a subproject, workflowitem or a notification you can open postmans Runner in the upper left corner and start it.
Under "All Collections" click on the TruBudget-folder, then RunnerScripts and choose one of the three options listed there.
Set "Environment" from "noEnvironment" to "TruBudget" and hit "Run [CreateSubproject | CreateWorkflowitem | CreateNotification ]"

The generic projects, subprojects and users that are created in RunnerScripts can be modified like any request, but don't forget to save all
changes before starting the runner. Be aware that projectIds and userIds have to be unique! If you want to use the runner more than once you will have to change those Ids in the createUser and createProject requests.
Loading

0 comments on commit 7980cb1

Please sign in to comment.