Post #14545

748aa4e8b8e9495590bf7d709fe521791ee7b48c018a031d68162de854cc1626
15e771f7c76f426dc383748e9afecd522735826a544ccfbaaa9d930a7ebe466b
Signature not verified

This entry might be using an old signature, or it was signed by a key that does not exist on the server.

{"entry_date":1556553594,"post_data":{"edit_count":3,"last_edit_date":1556553554,"last_edit_user_id":35,"message_sha512":"8dcf5a8665e18972cf21759cfc932de354473a032f06824192ba787e996485ce81a0ae5e5e6612fbbbc5e68cb5d46a0340e9d6dac2dec2f35f9ffb7bb0324ba3","node_id":59,"post_date":1556551598,"thread_id":1900,"title_sha512":"297818b803c02fee2481ddbabfd365b60aaf2a3b4fb1c0afb67b41bed5db5617361390ed35d45b4ed687157606b53b391bdf5598396cd2fae3e84694a95da958","user_id":35},"post_link":"https:\/\/factomize.com\/forums\/index.php?threads\/1900#post-14545"}
The entry content as it exists in the database. This should be verified against the blockchain entry.
GRANTS | Factom Open API 1.0.0 released
[B][SIZE=7][COLOR=rgb(0, 0, 0)]We are proud to release the first version of [/COLOR][COLOR=rgb(44, 130, 201)]Factom Open API![/COLOR][/SIZE][/B]

Factom Open API is a lightweight REST API for the Factom blockchain. It connects to an existing factomd node and has a built-in Factom wallet that will handle signing data before writing it to the Factom blockchain.

[B]GitHub: [/B][URL]https://github.com/DeFacto-Team/Factom-Open-API[/URL]
[B]Documentation:[/B] [URL]https://docs.openapi.de-facto.pro[/URL]

[ATTACH=full]1334[/ATTACH]

--
[SIZE=6][B]Main features[/B][/SIZE]
[LIST]
[*][B]Instant start:[/B] use Open API immediately after installation
[*][B]Write data[/B] to the blockchain at a [B]fixed cost[/B] ([B]$1 for 1000 entries[/B] of 1 KB)
[*][B]BaaS-ready:[/B] user-based API access, counting usage, limits
[*][B]Read all chain entries at once [/B]using a single request (no need to read all entry blocks of chain one by one)
[*][B]Search chains & entries[/B] by tags (external IDs)
[*][B]Pagination, sorting, filtering[/B] results with query params
[*][B]Generic factomd interface:[/B] all factomd API requests are supported via special REST path
[/LIST]

--
[SIZE=6][B]API Reference[/B][/SIZE]

[SIZE=5][B]Documentation[/B][/SIZE]
[LIST]
[*]Documentation on Gitbook: [URL='https://docs.openapi.de-facto.pro/']https://docs.openapi.de-facto.pro[/URL]
[*]Built-in Swagger specification: http://<factom_open_api_server_ip_and_port>/docs/index.html
[/LIST]
[SIZE=5][B]Methods[/B][/SIZE]
[LIST]
[*]Chains
[LIST]
[*][URL='https://docs.openapi.de-facto.pro/chains/create-chain']POST /chains[/URL] – [I]Create chain[/I]
[*][URL='https://docs.openapi.de-facto.pro/chains/get-chains']GET /chains[/URL] – [I]Get user's chains[/I]
[*][URL='https://docs.openapi.de-facto.pro/chains/search-chains']POST /chains/search[/URL] – [I]Search user's chains by ExtIDs[/I]
[*][URL='https://docs.openapi.de-facto.pro/chains/get-chain']GET /chains/:chainId[/URL] – [I]Get chain by ChainID[/I]
[*][URL='https://docs.openapi.de-facto.pro/chains/get-chain-entries']GET /chains/:chainId/entries[/URL] – [I]Get chain entries[/I]
[*][URL='https://docs.openapi.de-facto.pro/chains/get-chain-first-entry']GET /chains/:chainId/entries/first[/URL] – [I]Get first entry of chain[/I]
[*][URL='https://docs.openapi.de-facto.pro/chains/get-chain-last-entry']GET /chains/:chainId/entries/last[/URL] – [I]Get last entry of chain[/I]
[*][URL='https://docs.openapi.de-facto.pro/chains/search-chain-entries']POST /chains/:chainId/entries/search[/URL] – [I]Search entries in chain by ExtIDs[/I]
[/LIST]
[*]Entries
[LIST]
[*][URL='https://docs.openapi.de-facto.pro/entries/create-entry']POST /entries[/URL] – [I]Create entry in chain[/I]
[*][URL='https://docs.openapi.de-facto.pro/entries/get-entry']GET /entries/:entryHash[/URL] – [I]Get entry by EntryHash[/I]
[/LIST]
[*]Generic
[LIST]
[*][URL='https://docs.openapi.de-facto.pro/factomd/factomd-method']POST /factomd/:method[/URL] – [I]Generic factomd interface[/I]
[/LIST]
[*]Info
[LIST]
[*][URL='https://docs.openapi.de-facto.pro/user/get-user']GET /user[/URL] – [I]Get user info[/I]
[*][URL='https://docs.openapi.de-facto.pro/api/api-info']GET /[/URL] – [I]Get API info[/I]
[/LIST]
[/LIST]

--
[SIZE=6][B]Installation[/B][/SIZE]
[SIZE=4]You can run Factom Open API in 2 different ways:[/SIZE]
[LIST]
[*]as Docker container
[*]download binary and run it manually
[/LIST]

--
[SIZE=6][B]Factom Open API design[/B][/SIZE]

[SIZE=5][B]1. Background fetching[/B][/SIZE]
Factom Open API does not store [I]all chains[/I] of the Factom blockchain in its local database. Instead, when you start working with a chain using any request (get entry of chain, get chain info, write entry into chain, etc...), the chain is fetched from Factom in the background.

All fetched chains are stored in the local DB, and new entries are added automatically in minute 0-1 of each block.

This allows Factom Open API to be used immediately after installing without a long syncing period with Factom blockchain. It is not designed for applications which require [I]all[/I] chains, blocks and entries - e.g. a Factom Explorer.

[SIZE=5][B]2. User's chains[/B][/SIZE]
A great advantage of Factom Open API is binding chains to API users. This binding is stored locally in the Open API database. It's possible to show users [I]their chains[/I], including ones the user created and all chains that the user has worked with (write, read or search).

This way API users may search their specific chains by External ID(s) instead of searching the entire blockchain.

--
[SIZE=6][B]Swagger support[/B][/SIZE]
Following of the Swagger spec was not be a part of the initial grant proposal, but we decided to develop it in order to provide more clients in different languages, using Swagger auto-generated clients.
Right now Open API follows [URL='https://swagger.io/docs/specification/2-0/basic-structure/']Swagger 2.0 specification[/URL].

--
[SIZE=6][B]Auto-generated clients[/B][/SIZE]
Auto-generated clients are in [B]beta[/B] and don't support base64 auto-encoding/decoding.
We are going to upgrade from Swagger 2.0 to Open API 3.0 specification in the next minor version and improve auto-generated clients.

--
[SIZE=6][B]Support[/B][/SIZE]
Factom Open API is open-source project.
Support available @ De Facto's Discord: [URL]https://discord.gg/zgq78Bc[/URL]

--
[SIZE=6][B]A few words about sponsors[/B][/SIZE]
Jay, David & Alex from Bedrock Solutions were not just sponsors of this grant project – they actively participated in all discussions of Factom Open API design solutions, suggested a lot of ideas and improvements to design and helped us with testing and Docker packaging. De Facto highly rated Bedrock Solutions as a sponsor and a contributor and we will continue to work together on further Open API updates.

[COLOR=rgb(65, 168, 95)]--[/COLOR]
[SIZE=6][B][COLOR=rgb(65, 168, 95)]What's next?[/COLOR][/B][/SIZE]
We are going to further improve Factom Open API, add new functions and clients.
Here is the roadmap of the project development:
[LIST]
[*][B]Swagger upgrade[/B]
[LIST]
[*]Upgrade support of Swagger 2.0 → Open API (Swagger) 3.0
[*]Improve auto-generated clients (add base64 auto-encoding/decoding inside clients)
[*]Create, test and publish more auto-generated clients (Swagger 3.0 required)
[/LIST]
[*][B]New endpoints[/B]
[LIST]
[*]Multiple /admin endpoints to manage Open API instance, settings and API users
[*]/queue endpoint to check Open API write-queue via API endpoint
[/LIST]
[*][B]Admin WebUI[/B]
[LIST]
[*]A web-interface for managing Factom Open API
[*]Change Factom Open API server settings
[*]Manage API users, limits
[*]Queue, Chains, Entryblocks, Entries viewer
[*]Logs viewer
[*]Auto-generation of Es/EC keypair (no need to generate EC via wallet)
[/LIST]
[*][B]Callbacks[/B]
[LIST]
[*]Allow API users to create and receive callbacks for different actions endings (e.g. receive callback, when new entry processed on blockchain)
[*]Admin's permanent callbacks / notifications (e.g. when EC balance is lower than X)
[/LIST]
[*][B]Factom Identities[/B]
[LIST]
[*]Factom Identities support (2nd layer)
[*]/identity endpoints inside Open API to work with Factom Identities
[/LIST]
[*][B]GraphQL API[/B]
[*][B]Websockets[/B]
[*][B]Security[/B]
[LIST]
[*]Auto-SSL with Lets Encrypt
[/LIST]
[*][B]Test coverage[/B]
[*][B]Factom Open API marketplace[/B]
[LIST]
[*]A directory of apps using Factom Open API
[/LIST]
[/LIST]
This is the raw content, without BBCode parsing.
Top