Skip to content

Every day: send and get changes

A normal day for Ann and Bob.

Bob starts by getting what the others sent.

  1. Click the Git bar at the bottom of the sidebar. It shows the branch and the changes, such as main · No changes.
  2. Choose Pull.

The new and changed requests appear in the tree right away. Requests you have open and did not change are reloaded. korAPI never checks the server by itself. To see whether others sent something before you Pull it, choose Check for Changes: the bar then counts what is waiting, such as main · No changes · ↓2.

Bob adds a request Users › Delete user and changes the URL of Login, and saves both (⌘S (Ctrl+S), or turn on Auto Save).

The Git view lists what changed since the last Commit & Push, in the app’s own words:

  • New Request “Users / Delete user”
  • Changed Request “Login”

The list shows saved changes only. A request with unsaved edits is not in it yet.

Click a Changed item to see what changed in it, field by field. For Login, korAPI shows URL with Before: and After: values. Headers, query parameters, auth, body and checks show the same way, such as Header “Accept” or Check 1. Click the item again to close it.

Bob also changed Me by accident. He chooses Discard next to it. korAPI asks first, then puts it back as it was at the last Commit & Push. A request he added and does not want moves to the Trash. Discard All… under the list does the same for every change at once.

Discard works on saved changes. Edits you have not saved stay in the editor. While a Pull waits on a conflict, settle it or choose Cancel Pull first.

  1. In What changed? (optional), write a short note for the team, such as “Delete user, new login URL”. Leave it empty and korAPI uses the names of the changes.
  2. Choose Commit & Push.

If something is not saved, korAPI offers to save it first. When it is done, the list says No changes, and the team gets your changes with their next Pull.

Ann sent her changes after Bob’s last Pull. When Bob chooses Commit & Push, korAPI says Someone else sent changes first. Nothing is lost: Bob’s changes are kept on his computer.

  1. Choose Pull. korAPI brings Ann’s changes together with Bob’s.
  2. Choose Commit & Push again.

If Ann and Bob changed different requests, that is all. If they changed the same request, see When you both changed the same request.

If the Git view says that some changes are saved in Git but not sent yet, Commit & Push sends them.

  • Pull when you start, and before a bigger change.
  • Commit & Push when a piece of work is done, not once a week. Small changes rarely clash.
  • Agree on who changes shared things, such as the environments, so two people do not change the same thing at once.