File tree Expand file tree Collapse file tree 4 files changed +50
-1
lines changed Expand file tree Collapse file tree 4 files changed +50
-1
lines changed Original file line number Diff line number Diff line change 1+ merger : bare
12sources :
23 - name : Swapi
34 handler :
45 openapi :
56 source : ./swagger/pets.json
67 endpoint : >-
78 http://localhost:4001
9+ selectQueryOrMutationField :
10+ - fieldName : post_pet_by_petId
11+ type : query
12+ transforms :
13+ - filterSchema :
14+ mode : bare
15+ filters :
16+ - Mutation.!*
17+ - extend :
18+ typeDefs : ./src/extensions/typeDefs.graphql
19+ resolvers : ./src/extensions/resolvers
Original file line number Diff line number Diff line change 1+ const resolvers = {
2+ Pet : {
3+ fullName : ( ) => "full name"
4+ }
5+ }
6+
7+ export default resolvers ;
Original file line number Diff line number Diff line change 1+ extend type Pet {
2+ fullName : String
3+ }
Original file line number Diff line number Diff line change 22 "openapi" : " 3.0.3" ,
33 "paths" : {
44 "/pet/{petId}" : {
5- "get" : {
5+ "post" : {
6+ "parameters" : [
7+ {
8+ "name" : " petId" ,
9+ "in" : " path" ,
10+ "description" : " ID of pet to return" ,
11+ "required" : true ,
12+ "schema" : {
13+ "type" : " string"
14+ }
15+ }
16+ ],
17+ "responses" : {
18+ "200" : {
19+ "description" : " successful operation" ,
20+ "content" : {
21+ "application/json" : {
22+ "schema" : {
23+ "$ref" : " #/components/schemas/Pet"
24+ }
25+ }
26+ }
27+ }
28+ }
29+ }
30+ },
31+ "/pet2/{petId}" : {
32+ "post" : {
633 "parameters" : [
734 {
835 "name" : " petId" ,
You can’t perform that action at this time.
0 commit comments