InterImm / marsapi-serverless

Move MarsAPI to Serverless

Home Page:https://marsapi.interimm.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mars Clock as Serverless API

We use zeit now as our serverless platform.

What does it do

This API provides several endpoints to help Martians with their daily life.

Endpoints

  1. /: meta data of the api including descriptions of endpoints
  2. /now: get the martian time for now
  3. /epoch/(epoch_time): calculate martian time based on the unix eopch time input

Examples:

  1. https://marsapi.interimm.org/now
  2. https://marsapi.interimm.org/epoch/1562018066

Development

  1. Write your function and add routes to now.json.
  2. Deplow with now.

References

  1. Barebone Serverless Python JSON API on Zeit Now
  2. visini/barebone-serverless-api-zeit-now

About

Move MarsAPI to Serverless

https://marsapi.interimm.org/

License:MIT License


Languages

Language:Python 100.0%