File tree 1 file changed +19
-0
lines changed
docs/content/doc/developers
1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -24,3 +24,22 @@ If you are looking for [CI/CD](https://gitea.com/gitea/awesome-gitea#user-conten
24
24
an [ SDK] ( https://gitea.com/gitea/awesome-gitea#user-content-sdk ) ,
25
25
or even some extra [ themes] ( https://gitea.com/gitea/awesome-gitea#user-content-themes ) ,
26
26
you can find them listed in the [ awesome-gitea] ( https://gitea.com/gitea/awesome-gitea ) repository!
27
+
28
+ ## Pre-Fill New File name and contents
29
+
30
+ If you'd like to open a new file with a given name and contents,
31
+ you can do so with query parameters:
32
+
33
+ ``` txt
34
+ GET /{{org}}/{{repo}}/_new/{{filepath}}
35
+ ?filename={{filename}}
36
+ &value={{content}}
37
+ ```
38
+
39
+ For example:
40
+
41
+ ``` txt
42
+ GET https://git.example.com/johndoe/bliss/_new/articles/
43
+ ?filename=hello-world.md
44
+ &value=Hello%2C%20World!
45
+ ```
You can’t perform that action at this time.
0 commit comments