Skip to content

yosa12978/STAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Star Trek API

Open Source REST API for Star Trek


Usage

Host

Global host name : https://star-trek-api.herokuapp.com


Authentication

Currently app supports only jwt authentication

To sign up send POST request to

POST https://star-trek-api.herokuapp.com/api/v1/account/signup

With body

{
  "username": "username",
  "password": "password"
}

Soon you should send POST request to get token

https://star-trek-api.herokuapp.com/api/v1/account/login

With body

{
  "username": "username",
  "password": "password"
}

Routes

GET https://star-trek-api.herokuapp.com/api/v1/characters
GET https://star-trek-api.herokuapp.com/api/v1/characters/{id}
GET https://star-trek-api.herokuapp.com/api/v1/characters/search?q={search query}
GET https://star-trek-api.herokuapp.com/api/v1/series
GET https://star-trek-api.herokuapp.com/api/v1/series/{id}
GET https://star-trek-api.herokuapp.com/api/v1/series/search?q={search query}
GET https://star-trek-api.herokuapp.com/api/v1/starships
GET https://star-trek-api.herokuapp.com/api/v1/starships/{id}
GET https://star-trek-api.herokuapp.com/api/v1/starships/search?q={search query}
GET https://star-trek-api.herokuapp.com/api/v1/planets
GET https://star-trek-api.herokuapp.com/api/v1/planets/{id}
GET https://star-trek-api.herokuapp.com/api/v1/planets/search?q={search query}
GET https://star-trek-api.herokuapp.com/api/v1/races
GET https://star-trek-api.herokuapp.com/api/v1/races/{id}
GET https://star-trek-api.herokuapp.com/api/v1/races/search?q={search query}