fix openapi issue
This commit is contained in:
parent
644c07429c
commit
562b888da4
|
@ -426,7 +426,7 @@ public class OpenApiGenerator {
|
|||
}
|
||||
|
||||
private void generateCreate(CapabilityStatementRestResourceComponent r) {
|
||||
OperationWriter op = makePathRes(r).operation("put");
|
||||
OperationWriter op = makePathRes(r).operation("post");
|
||||
op.summary("Create a new resource");
|
||||
op.operationId("create"+r.getType());
|
||||
RequestBodyWriter req = op.request();
|
||||
|
@ -452,7 +452,7 @@ public class OpenApiGenerator {
|
|||
}
|
||||
|
||||
private void generateBatchTransaction(CapabilityStatementRestComponent csr) {
|
||||
OperationWriter op = makePathSystem().operation("post");
|
||||
OperationWriter op = makePathSystem().operation("put");
|
||||
op.summary("Batch or Transaction");
|
||||
op.operationId("transaction");
|
||||
RequestBodyWriter req = op.request();
|
||||
|
|
|
@ -40,7 +40,6 @@ public class ServerVariableWriter extends BaseWriter {
|
|||
return this;
|
||||
}
|
||||
|
||||
|
||||
public ServerVariableWriter defaultValue(String value) {
|
||||
object.addProperty("default", value);
|
||||
return this;
|
||||
|
|
Loading…
Reference in New Issue