{"id":16480539,"url":"https://github.com/uscneps/graphql-go-onepieceapi","last_synced_at":"2025-04-13T08:15:57.593Z","repository":{"id":43058465,"uuid":"471441107","full_name":"uscneps/GraphQL-Go-onepieceAPI","owner":"uscneps","description":"Basic One Piece (famous manga) API developed in Go \u0026 GraphQL, returns the Strawhats crew information, and give you the possibility to create new pirates \u0026 crews. ","archived":false,"fork":false,"pushed_at":"2025-01-26T10:52:11.000Z","size":43,"stargazers_count":63,"open_issues_count":0,"forks_count":3,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-27T00:07:33.803Z","etag":null,"topics":["api","backend","frontend","go","golang","golang-application","golang-examples","google","graphql","graphql-api","graphql-client","graphql-server","manga","onepiece"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/uscneps.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-03-18T16:31:13.000Z","updated_at":"2025-03-15T14:28:36.000Z","dependencies_parsed_at":"2025-02-12T18:35:38.614Z","dependency_job_id":"26887963-24f3-4dab-aa00-d58e05d4fe1b","html_url":"https://github.com/uscneps/GraphQL-Go-onepieceAPI","commit_stats":null,"previous_names":["uscneps/graphql-go-onepieceapi","mattforgh/graphql-go-onepieceapi"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uscneps%2FGraphQL-Go-onepieceAPI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uscneps%2FGraphQL-Go-onepieceAPI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uscneps%2FGraphQL-Go-onepieceAPI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uscneps%2FGraphQL-Go-onepieceAPI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uscneps","download_url":"https://codeload.github.com/uscneps/GraphQL-Go-onepieceAPI/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245755667,"owners_count":20667027,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","backend","frontend","go","golang","golang-application","golang-examples","google","graphql","graphql-api","graphql-client","graphql-server","manga","onepiece"],"created_at":"2024-10-11T13:03:33.168Z","updated_at":"2025-03-27T00:07:44.643Z","avatar_url":"https://github.com/uscneps.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n  \u003ch1\u003eOne Piece Api\u003c/h1\u003e\n   \u003csub\u003e Basic API developed in Go \u0026 GraphQL\u003c/sub\u003e\n\u003cbr /\u003e\n\u003cbr /\u003e\n\u003cdiv align=\"center\"\u003e\n  \u003ca\u003e\n  \n  ![One_Piece_Anime_Logo](https://user-images.githubusercontent.com/38867931/178217876-43b54feb-15f1-4709-9f81-15d836e62f18.png)\n\n  \u003c/a\u003e\n\u003c/div\u003e\n\n\n\n## About The Project\nbasic One Piece (famous manga) API that returns the Strawhats crew information, and give you the possibility to create new crews. \n\n\n### Built With\n* [Go](https://go.dev/)\n* [GraphQL](https://graphql.org/)\n\n\u003c!-- GETTING STARTED --\u003e\n## Getting Started\nStart the server : \n  ```sh\n  go run .\n  ```\n\n## Usage\n\nUsing GraphQL playground in http://localhost:8080/ (in my case) you can try this Queries and Mutations\n\n* Get all the strawhats crew \n```graphql\n  query findPirates{\n  strawhats{\n    name\n    image\n    bounty\n    crew\n    id\n  }\n}\n  ```\n  \n  \n\u003cdetails\u003e\n  \u003csummary\u003eOutput :\u003c/summary\u003e\n  \n  ```graphql\n {\n  \"data\": {\n    \"strawhats\": [\n      {\n        \"name\": \"Monkey D. Luffy\",\n        \"image\": \"https://rb.gy/xz0x9h\",\n        \"bounty\": \"1,500,000,000\",\n        \"crew\": \"Strawhats\",\n        \"id\": \"01\"\n      },\n      {\n        \"name\": \"Roronoa Zoro\",\n        \"image\": \"https://rb.gy/imkdhx\",\n        \"bounty\": \"320,000,000\",\n        \"crew\": \"Strawhats\",\n        \"id\": \"02\"\n      },\n      {\n        \"name\": \"Nami\",\n        \"image\": \"https://rb.gy/dncyia\",\n        \"bounty\": \"66,000,000\",\n        \"crew\": \"Strawhats\",\n        \"id\": \"03\"\n      },\n      {\n        \"name\": \"God Usop\",\n        \"image\": \"https://rb.gy/xa68o1\",\n        \"bounty\": \"200,000,000\",\n        \"crew\": \"Strawhats\",\n        \"id\": \"04\"\n      },\n      {\n        \"name\": \"Vinsmoke Sanji \",\n        \"image\": \"https://rb.gy/sofr7o\",\n        \"bounty\": \"330,000,000\",\n        \"crew\": \"Strawhats\",\n        \"id\": \"05\"\n      },\n      {\n        \"name\": \"Tony Tony Chopper\",\n        \"image\": \"https://rb.gy/oh2nmv\",\n        \"bounty\": \"100\",\n        \"crew\": \"Strawhats\",\n        \"id\": \"06\"\n      },\n      {\n        \"name\": \"Nico Robin\",\n        \"image\": \"https://rb.gy/5puvys\",\n        \"bounty\": \"130,000,000\",\n        \"crew\": \"Strawhats\",\n        \"id\": \"07\"\n      },\n      {\n        \"name\": \"Brook\",\n        \"image\": \"https://rb.gy/5kelik\",\n        \"bounty\": \"83,000,000\",\n        \"crew\": \"Strawhats\",\n        \"id\": \"08\"\n      },\n      {\n        \"name\": \"Jimbei\",\n        \"image\": \"https://rb.gy/mafbmm\",\n        \"bounty\": \"83,000,000\",\n        \"crew\": \"Strawhats\",\n        \"id\": \"09\"\n      },\n      {\n        \"name\": \"Neferutari Bibi\",\n        \"image\": \"https://rb.gy/zddixu\",\n        \"bounty\": \"0\",\n        \"crew\": \"Strawhats\",\n        \"id\": \"11\"\n      }\n    ]\n  }\n}\n  ```\n\u003c/details\u003e\n\n---\n\n\n* Create your crew, adding new pirates \n```graphql\n mutation createPirate {\n  createPirate(input: { name: \"Marco\", pirateId: \"1\",bounty:\" 1.374.000.000\",crew:\"Whitebeard crew\",image:\"null\"}) {\n\t  name\n\t  id\n  }\n}\n  ```\n\u003cdetails\u003e\n  \u003csummary\u003eOutput :\u003c/summary\u003e\n  \n  ```graphql\n {\n  \"data\": {\n    \"createPirate\": {\n      \"name\": \"Marco\",\n      \"id\": \"T8674665223082153551\",\n    }\n  }\n}\n  ```\n\u003c/details\u003e\n\n---\n\n* Return the created pirates \n```graphql\n query findPirates{\n  pirates{\n    name\n    id\n    bounty\n    crew\n    image //optional\n  }\n}\n  ```\n\u003cdetails\u003e\n  \u003csummary\u003eOutput :\u003c/summary\u003e\n  \n  ```graphql\n {\n  \"data\": {\n    \"pirates\": [\n      {\n        \"name\": \"Edward Newgate\",\n        \"id\": \"T5577006791947779410\",\n        \"bounty\": \"5,046,000,000\",\n        \"crew\": \"Whitebeard crew\",\n        \"image\": null\n      },\n      {\n        \"name\": \"Marco\",\n        \"id\": \"T8674665223082153551\",\n        \"bounty\": \"1.374.000.000\",\n        \"crew\": \"Whitebeard crew\",\n        \"image\": \"null\" \n      }\n    ]\n  }\n}\n  ```\n\u003c/details\u003e\n\n---\n\n## Contributing\n\nContributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are **greatly appreciated**. \n\nIf you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag \"enhancement\".\nDon't forget to give the project a star! Thanks again! ❤️\n\n1. Fork the Project\n2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)\n3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)\n4. Push to the Branch (`git push origin feature/AmazingFeature`)\n5. Open a Pull Request\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuscneps%2Fgraphql-go-onepieceapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuscneps%2Fgraphql-go-onepieceapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuscneps%2Fgraphql-go-onepieceapi/lists"}