Skip to content

Instantly share code, notes, and snippets.

@doilio
Last active December 15, 2020 07:00
Show Gist options
  • Save doilio/456c9d7d2a96ede75e1cb9f98d0d90a1 to your computer and use it in GitHub Desktop.
Save doilio/456c9d7d2a96ede75e1cb9f98d0d90a1 to your computer and use it in GitHub Desktop.
Superheroes REST API

Superheroes REST-API 🦸‍♂️

Restfull API that returns a paginated list of superheroes.

Base Url: https://superheroesapi.herokuapp.com/superheroes

Endpoints

Examples

Click on the example hyperlinks below to view the formatted url and the JSON response.

  • example1 - Returns 10 characters from the 1st page from all sexes, all races, all alignments, and all publishers.
  • example2 - Returns 10 characters from the 1st page, who are male, humans, with bad alignment, from the DC Universe.
  • example3 - Returns 10 characters from the 1st page, who are female, human, bad alignment, all publishers.
  • example4 - Returns 10 characters from the 2nd page, who are female, human, good alignment, from Marvel Universe.
  • example5 - Returns 10 characters from the 3rd page, from any race, any alignment, any publisher.

Implemented on a Mobile App: Video Demonstration

Author

  • Doilio A. Matsinhe

License

  Copyright 2020 Doilio Abel Matsinhe

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment