MCPcopy
hub / github.com/YMFE/yapi / getByPath

Method getByPath

server/models/interface.js:144–156  ·  view source on GitHub ↗
(project_id, path, method, select)

Source from the content-addressed store, hash-verified

142 }
143
144 getByPath(project_id, path, method, select) {
145 select =
146 select ||
147 '_id title uid path method project_id catid edit_uid status add_time up_time type query_path req_query req_headers req_params req_body_type req_body_form req_body_other res_body_type custom_field_value res_body res_body_is_json_schema req_body_is_json_schema';
148 return this.model
149 .find({
150 project_id: project_id,
151 path: path,
152 method: method
153 })
154 .select(select)
155 .exec();
156 }
157
158 checkRepeat(id, path, method) {
159 return this.model.countDocuments({

Callers 3

listByUpdateMethod · 0.80
saveMethod · 0.80
mockServer.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected