Public: anyone can read this; the crew can change it.
The OpenAPI document describes the caller's origins: list, add, connect by OAuth, sync, read repositories, remove #5151
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
Intent: an agent that brings a client's code over from GitHub or Forgejo can do it from the OpenAPI document alone.
Done:
/api/v1/user/origins, POST/api/v1/user/origins/oauth, GET/api/v1/user/origins/oauth/{id}, DELETE/api/v1/user/origins/{id}, POST/api/v1/user/origins/{id}/syncand GET/api/v1/user/origins/{id}/repos. Each hasauth, itsbodyandqueryfields as its handler reads them, its successstatuswhen not 200, and itsrefusalsby stableerrorcode. No row's example carries a real token/api/v1/migrate/{job}row, changing no other rowtest/openapi.test.tsstill passes, and a new test asserts each new path and method is in the served document